Problem with website only showing home page

21 views
Skip to first unread message

olivierb

unread,
Mar 23, 2013, 10:25:09 AM3/23/13
to model...@googlegroups.com
Hi,

We've just set up a new server and I migrated a model-glue application that is working fine. The current server is running Windows Server 2008 and CF 8. The new one is running IIS7 and CF 10.

I have a test website set up at: http://teppr.tailbase.com/
Any page I go to in the navigation, the URL changes but the home page is always shown.
For example, you can click on Our Story: http://teppr.tailbase.com/en/aboutus

This is very strange and I can't even figure out where to start with this. How can I see what is happening with the request to figure out why this is occurring?

--
Olivier Bridgeman

Dan Wilson

unread,
Mar 23, 2013, 10:35:58 AM3/23/13
to model...@googlegroups.com

Turn on model Glue debugging and see how the request is being processed.

It's in your ColdSpring.xml file.

--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Muhammad Amir

unread,
Mar 26, 2013, 3:16:23 AM3/26/13
to model...@googlegroups.com, sipa...@gmail.com

 

 

 

Hi dear,

 

I just started again  learning modelglue I having little issue here  on tutorial im on this step :

 

 

I created secondary file in view folder pasted code there but still im not getting same result :

 

 

 

 

My XML file

 

 

 

 

Please guys can you tell me what im missing its seems coldfusion redirect page primary.cfm to secondary.cfm

 

Regards,

M.A

------------------------------------------------------------------------------------------------------

image003.png
image004.png
image005.jpg

Dan Skaggs

unread,
Mar 26, 2013, 9:24:24 AM3/26/13
to model...@googlegroups.com
It looks as though something isn't configured correctly with respect to your event-type.  In one of the steps above the "What about Two Columns" section, you were supposed to insert the following XML:
 
<event-type name="templatedPage">
  <after>
    <views> 
      <include name="navigation" template="layout/Layout.Navigation.cfm">
        <value name="xe_ShipmentList" value="Shipment.List" />
      </include>
      <include name="message" template="layout/Layout.MessageBox.cfm" />
      <include name="footer" template="layout/Layout.Footer.cfm" />
      <include name="main" template="layout/Master.Layout.cfm" />
    </views>
  </after>      
</event-type> 
Can you verify that this is in your ModelGlue.xml file?  In this example, the layout and styles are being applied to the page via views that are defined in the event-type. Not having the event-type definition in your XML file would cause the "unskinned" result that you're seeing.
 
Check that and report back.
 
Dan


For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mailto:model-glue%2Bunsu...@googlegroups.com.

Muhammad Amir

unread,
Mar 27, 2013, 1:08:08 AM3/27/13
to model...@googlegroups.com

please find the attached my xml file

image001.jpg
image002.png
image003.png
ModelGlue.xml

Dan Skaggs

unread,
Mar 27, 2013, 2:38:24 PM3/27/13
to model...@googlegroups.com
Super...that looks fine. Somewhere along the way we're missing some styles it appears.
 
Can do you do a view source on your rendered page and make sure that our <head> tag code exists? The view cfm files seem to exist in the correct place or CF would be throwing an exception. What we need to verify now is that a) the final rendered HTML has the link to the css file in it (<link rel="stylesheet" type="text/css" href="www/css/style.css" media="screen" />) and b) that the CSS file is in the correct location.
 
You should be able to browse to the CSS file directly by going to http://10.0.0.23/PlantOMatic/www/css/style.css  If that doesn't work, then we have some files in a place other than where the view files are expecting to see them.
 
You might also check your console to see if there are any errors reported as the browser tries to load resources.
 

Muhammad Amir

unread,
Mar 27, 2013, 2:53:05 PM3/27/13
to model...@googlegroups.com

 

Please find attached screens shoots

Thanks for helping ....

 

 

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Skaggs


Sent: Wednesday, March 27, 2013 10:38 PM
To: model...@googlegroups.com

--

image001.png
image002.png

Dan Skaggs

unread,
Mar 27, 2013, 3:07:43 PM3/27/13
to model...@googlegroups.com
Ah okay...those screenshots help a bunch. We now know that our files are in the right place and the source code view screenshot that you provided tells me that our event type isn't getting fired for some reason since the views in the event type are what are responsible for putting the "skin" or layout items around our content views.
 
Let's turn on ModelGlue debugging so we can tell exactly what's going on.
 
In your PlantOMatic/config/ColdSpring.xml file, look for a line that says (should be on about line 7) :
 
<property name="debug"><value>false</value></property>
 
Change that false value to true. 
 
While we're here, let's verify that the reload property right above it is set to true as well.  If it is not, change it to true and add ?init=true to the end of the URL in your browser.
 
Adding the debugging info will show us exactly what ModelGlue is doing through the request process.
 
If you are familiar with using IRC, we could move this discussion to the #coldfusion channel on irc.freenode.net. My nickname there is TNTechnoHermit.
 
 
------ Original Message ------
From: "Muhammad Amir" <onlya...@gmail.com>

Muhammad Amir

unread,
Mar 27, 2013, 3:14:24 PM3/27/13
to model...@googlegroups.com

here is the debug html file, IRC :( i never used is there any other way or if i have to use IRC i can try but im on gtalk ,skype msn

 

Thanks

image001.png
image002.png
localhost.html

Dan Skaggs

unread,
Mar 27, 2013, 11:17:09 PM3/27/13
to model...@googlegroups.com
At this point I'm kind of out of ideas without being able to see the code. Can you zip up your PlantOMatic directory and either email it to me or put it on a file share somewhere I can grab it. I'll put it on my local machine and see if I can replicate the issue.
 
Thanks
Dan  dan.skaggs [at] web-meister [dot] com

Muhammad Amir

unread,
Mar 30, 2013, 8:11:34 AM3/30/13
to model...@googlegroups.com

hi dear,

 

did u get my zip file ??

 

Regards

MA

 

From: Muhammad Amir [mailto:onlya...@gmail.com]
Sent: Wednesday, March 27, 2013 11:14 PM
To: 'model...@googlegroups.com'
Subject: RE: Re[6]: [Model-Glue] Problem with website only showing home page

 

here is the debug html file, IRC :( i never used is there any other way or if i have to use IRC i can try but im on gtalk ,skype msn

 

Thanks

 

image001.png
image002.png

Dan Skaggs

unread,
Mar 30, 2013, 9:21:25 AM3/30/13
to model...@googlegroups.com
I did get your zip file. The last couple of days have been extremely busy. I'll try to look into it more this afternoon.
 
Thanks
Dan

Dan Skaggs

unread,
Mar 30, 2013, 6:44:55 PM3/30/13
to model...@googlegroups.com
I finally had a chance to install this locally and see what was going on.  Turns out you did nothing wrong. We had an issue with the documentation on the wiki, so thank you for bringing this to our attention and our apologies for the headache to get to this point.
 
Essentially, the script that we ran to convert the site content from Trac to a GitHub wiki a few months ago wasn't completely accurate. There was one key thing missing in the sentence that told you to add the event-type.
 
Before it said:
Our template runs after Events are processed. Open /PlantOMatic/config/ModelGlue.xml and insert the following code in between the tags.
 
It should have said (and indeed did but the browser didn't render it because the angle brackets weren't escaped correctly):
Our template runs after Events are processed. Open /PlantOMatic/config/ModelGlue.xml and insert the following code in between the <event-types></event-types> tags.
 
So, long story short, if you surround your <event-type name="templatedPage"> tag with a tag named <event-types></event-types> so that it looks like below, you'll be in business.
 
<event-types>

  <event-type name="templatedPage">
    <after>
   <views>
     <include name="navigation" template="layout/Layout.Navigation.cfm">
    <value name="xe_ShipmentList" value="Shipment.List" />
     </include>
     <include name="message" template="layout/Layout.MessageBox.cfm" />
     <include name="footer" template="layout/Layout.Footer.cfm" />
     <include name="main" template="layout/Master.Layout.cfm" />
   </views>
    </after>     
  </event-type>
</event-types>
 
Again, our apologies for the issue with the documentation. I've corrected this issue on the wiki and attempted to make sure that there aren't any more issues like this in the rest of the training documents, but if you have further issues, please let us know.
 
Thanks
Dan
 
------ Original Message ------
From: "Muhammad Amir" <onlya...@gmail.com>
Sent: 3/30/2013 7:11:34 AM

Xeondxb

unread,
Mar 31, 2013, 3:42:33 AM3/31/13
to model...@googlegroups.com

hi Dear,

 

anyone knows about WIKI links??  some Links are not working

Not Found

The requested URL /wiki/ReferenceMaterials/ViewApi was not found on this server.


Apache/2.2.22 (CentOS) Server at docs.model-glue.com Port 80

 

 

http://docs.model-glue.com/wiki/ReferenceMaterials/ViewApi

 

 

Regards,

MA

Dan Wilson

unread,
Mar 31, 2013, 7:30:08 AM3/31/13
to model...@googlegroups.com

How did you get to that link?

--

Xeondxb

unread,
Mar 31, 2013, 7:34:22 AM3/31/13
to model...@googlegroups.com

http://docs.model-glue.com/

 

 

training  link

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Wilson


Sent: Sunday, March 31, 2013 3:30 PM
To: model...@googlegroups.com

Xeondxb

unread,
Mar 31, 2013, 7:53:35 AM3/31/13
to model...@googlegroups.com

hi

 

 

https://github.com/modelglue/modelglue-framework/wiki/Training

 

-- >Section 1 ---> Section 2: Show Me Some Skinning ---->  View API ( After Section 2 Summary)

 

Regards,

MA

 

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Wilson


Sent: Sunday, March 31, 2013 3:30 PM
To: model...@googlegroups.com

Subject: Re: [Model-Glue] WIKI links are not working

 

How did you get to that link?

Dan Wilson

unread,
Mar 31, 2013, 7:57:43 AM3/31/13
to model...@googlegroups.com
When I click on the training link, I get directed to: http://docs.model-glue.com/training.cfm

>From there, both links ( Free self-paced training course  ) and (Get started! ) direct me to: https://github.com/modelglue/modelglue-framework/wiki/Training

>From https://github.com/modelglue/modelglue-framework/wiki/Training, I can click the Wiki page and then the Reference Material link and see the references you see.

It's possible we missed one of the links when we converted from Trac to Github, but I can't find any such thing based on what you have given me so far.

I want to fix any stray links to point to GitHub,  but I need to know exactly what page had a link to: http://docs.model-glue.com/wiki/ReferenceMaterials/ViewApi




DW



Subject:
RE: [Model-Glue] WIKI links are not working
From:
"Xeondxb" <xeo...@gmail.com>
Date:
Sun, 31 Mar 2013 15:34:22 +0400
To:
<model...@googlegroups.com>

http://docs.model-glue.com/

 

 

training  link


 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Wilson
Sent: Sunday, March 31, 2013 3:30 PM
To: model...@googlegroups.com
Subject: Re: [Model-Glue] WIKI links are not working

 

How did you get to that link?

On Mar 31, 2013 5:00 AM, "Xeondxb" <xeo...@gmail.com> wrote:

hi Dear,

 

anyone knows about WIKI links??  some Links are not working

Not Found

The requested URL /wiki/ReferenceMaterials/ViewApi was not found on this server.

Dan Wilson

unread,
Mar 31, 2013, 8:04:05 AM3/31/13
to model...@googlegroups.com
Thanks, that was helpful.

I fixed the page with the old links. You can see it here:

https://github.com/modelglue/modelglue-framework/wiki/Section-2


DW

Sunday, March 31, 2013 7:53 AM

hi

 

 

https://github.com/modelglue/modelglue-framework/wiki/Training

 

-- >Section 1 ---> Section 2: Show Me Some Skinning ---->  View API ( After Section 2 Summary)

 

Regards,

MA

 

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Wilson
Sent: Sunday, March 31, 2013 3:30 PM
To: model...@googlegroups.com
Subject: Re: [Model-Glue] WIKI links are not working

 

How did you get to that link?

--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Sunday, March 31, 2013 7:30 AM

How did you get to that link?

Sunday, March 31, 2013 3:42 AM

hi Dear,

 

anyone knows about WIKI links??  some Links are not working

Not Found

The requested URL /wiki/ReferenceMaterials/ViewApi was not found on this server.

--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Saturday, March 30, 2013 6:44 PM
--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Saturday, March 30, 2013 8:11 AM

hi dear,

 

did u get my zip file ??

 

Regards

MA

 

From: Muhammad Amir [mailto:onlya...@gmail.com]
Sent: Wednesday, March 27, 2013 11:14 PM
To: 'model...@googlegroups.com'
Subject: RE: Re[6]: [Model-Glue] Problem with website only showing home page

 

here is the debug html file, IRC :( i never used is there any other way or if i have to use IRC i can try but im on gtalk ,skype msn

 

Thanks

 


Sent: Wednesday, March 27, 2013 11:08 PM
To: model...@googlegroups.com

Subject: Re[6]: [Model-Glue] Problem with website only showing home page

 

Ah okay...those screenshots help a bunch. We now know that our files are in the right place and the source code view screenshot that you provided tells me that our event type isn't getting fired for some reason since the views in the event type are what are responsible for putting the "skin" or layout items around our content views.

 

Let's turn on ModelGlue debugging so we can tell exactly what's going on.

 

In your PlantOMatic/config/ColdSpring.xml file, look for a line that says (should be on about line 7) :

 

<property name="debug"><value>false</value></property>

 

Change that false value to true. 

 

While we're here, let's verify that the reload property right above it is set to true as well.  If it is not, change it to true and add ?init=true to the end of the URL in your browser.

 

Adding the debugging info will show us exactly what ModelGlue is doing through the request process.

 

If you are familiar with using IRC, we could move this discussion to the #coldfusion channel on irc.freenode.net. My nickname there is TNTechnoHermit.

 

 

------ Original Message ------

From: "Muhammad Amir" <onlya...@gmail.com>

Sent: 3/27/2013 1:53:05 PM

Subject: RE: Re[4]: [Model-Glue] Problem with website only showing home page

--

Xeondxb

unread,
Mar 31, 2013, 10:31:45 AM3/31/13
to model...@googlegroups.com

Thank you!! yea it is working

image001.jpg
image002.jpg
image003.jpg

Dan Wilson

unread,
Mar 31, 2013, 10:44:07 AM3/31/13
to model...@googlegroups.com

Enjoy!

Thanks for reporting the issue.

DW

image003.jpg
image002.jpg
image001.jpg
Reply all
Reply to author
Forward
0 new messages