Hello there,
i was asked to change hosting for someone.
I have done this and imported the database into new server. I uploaded all files and modified config.php to point to new database. This didn't work so I then reinstalled CMS (1.5.4) but did not create tables or install sample data. I used 1.5.4 as this was the version in use on old server.
Backend seems to work fine. i can see all the text for each page etc.
But when just going to domain (boylepm.ie) I see a badly formatted homepage with some correct images. Clicking on any of the links brings up a page not found error. I'm not sure what is wrong. Can anyone suggest something??
Looking at it again. It looks like the template is what is loading on its own without any of the content from the database. If that makes sense.
Thanks
R
Pages missing after move to different server
Re: Pages missing after move to different server
Ok. I changed all pages to a different standard template. Now all the pages work with index.php?page=our-services style links.
The other template was linking to the likes of 'home.html'.
So it looks like problems rewriting or converting from these links to the actual links. The template that doesn't work is shown below. Hopefully someone can help me as to what to do.
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="google-site-verification" content="ogzUZ1E0tdgryZK0l3Z-vkvAT2DBoU2pr43CgDql9Cg" />
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
</head>
</__body>
<div id="container">
<div id="header"><div id="loginform">{cms_module module=FrontEndUsers}</div>
<div class="menu3">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="our-services.html">Our Services</a></li>
<li><a href="request-quotation.html">Get A Quote</a></li>
<li class="smaller2"><a href="contact-us.html">Contact Us</a></li>
</ul>
</div>
</div>
<div id="image-header"><img src="images/image_header.jpg" width="979" height="180" alt=""></div>
<div id="title-header"><p>{title}</p></div>
<div id="content-area">
{if $cgsimple->has_children('',$has_children) eq 1 or $cgsimple->get_parent_alias() neq "" }
<div id="content_left">
<div id="menu_vert">
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area"}
{if $ccuser->loggedin() && $ccuser->memberof('Ard Cluain')}
{menu template='boylepm' start_page="downloads-ard-cluain"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Belarmine Hall')}
{menu template='boylepm' start_page="downloads-belarmine-hall"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Drumnigh Wood')}
{menu template='boylepm' start_page="downloads-drumnigh-wood"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Ferndale Court')}
{menu template='boylepm' start_page="downloads-ferndale-court"}
{else}
Menu disabled
{/if}
{else}
{menu template='boylepm' start_level="2"}
{/if}
</div>
</div>
<div id="content_right">
<div id="content">
{if $page_alias eq "home"}
<img style="float:right;margin-right:13px;" src="images/homepage_context_keys.jpg" alt="" />
{elseif $page_alias eq "request-quotation"}
<img style="float:right;margin-right:13px;" src="images/biz_card.jpg" alt="" />
{else}
<img style="float:right;margin-right:13px;" src="images/homepage_context.jpg" alt="" />
{/if}
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area" }
{if $ccuser->loggedin() && $ccuser->memberof('Ard Cluain')}
<p>Welcome to the private Ard Cluain area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Belarmine Hall')}
<p>Welcome to the private Belarmine Hall area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Drumnigh Wood')}
<p>Welcome to the private Drumnigh Wood area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Ferndale Court')}
<p>Welcome to the private Ferndale Court area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{else}
<p>You are not currently logged in...please login using the login area at the top of the page.</p>
{/if}
{else}
{if $login_error neq ""}<font color="red"><b>Client login error:</b> {$login_error}</font><br /><br />{/if}{content}
{/if}
</div>
<br style="clear:both;" />
</div>
{else}
<div id="content_fullwidth">
<div id="content">
{if $page_alias eq "home"}
<img style="float:right;margin-right:13px;" src="images/homepage_context_keys.jpg" alt="" />
{elseif $page_alias eq "request-quotation"}
<img style="float:right;margin-right:13px;" src="images/biz_card.jpg" alt="" />
{else}
<img style="float:right;margin-right:13px;" src="images/homepage_context.jpg" alt="" />
{/if}
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area" }
{if $customcontent_loggedin > 0}
Logged in: <b>{$customcontent_loginname}</b><br/>{content}
{else}
<h1>You are not authorized to view this data</h1>
{/if}
{else}
{if $login_error neq ""}<font color="red"><b>Client login error:</b> {$login_error}</font><br /><br />{/if}{content}
{/if}
</div>
<br style="clear:both;" />
</div>
{/if}
</div>
<div id="footer"></div>
</div>
{literal}
<__script__ type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</__script>
<__script__ type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8837820-1");
pageTracker._trackPageview();
} catch(err) {}</__script>
{/literal}
<__body>
</__html>
The other template was linking to the likes of 'home.html'.
So it looks like problems rewriting or converting from these links to the actual links. The template that doesn't work is shown below. Hopefully someone can help me as to what to do.
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="google-site-verification" content="ogzUZ1E0tdgryZK0l3Z-vkvAT2DBoU2pr43CgDql9Cg" />
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
</head>
</__body>
<div id="container">
<div id="header"><div id="loginform">{cms_module module=FrontEndUsers}</div>
<div class="menu3">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="our-services.html">Our Services</a></li>
<li><a href="request-quotation.html">Get A Quote</a></li>
<li class="smaller2"><a href="contact-us.html">Contact Us</a></li>
</ul>
</div>
</div>
<div id="image-header"><img src="images/image_header.jpg" width="979" height="180" alt=""></div>
<div id="title-header"><p>{title}</p></div>
<div id="content-area">
{if $cgsimple->has_children('',$has_children) eq 1 or $cgsimple->get_parent_alias() neq "" }
<div id="content_left">
<div id="menu_vert">
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area"}
{if $ccuser->loggedin() && $ccuser->memberof('Ard Cluain')}
{menu template='boylepm' start_page="downloads-ard-cluain"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Belarmine Hall')}
{menu template='boylepm' start_page="downloads-belarmine-hall"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Drumnigh Wood')}
{menu template='boylepm' start_page="downloads-drumnigh-wood"}
{elseif $ccuser->loggedin() && $ccuser->memberof('Ferndale Court')}
{menu template='boylepm' start_page="downloads-ferndale-court"}
{else}
Menu disabled
{/if}
{else}
{menu template='boylepm' start_level="2"}
{/if}
</div>
</div>
<div id="content_right">
<div id="content">
{if $page_alias eq "home"}
<img style="float:right;margin-right:13px;" src="images/homepage_context_keys.jpg" alt="" />
{elseif $page_alias eq "request-quotation"}
<img style="float:right;margin-right:13px;" src="images/biz_card.jpg" alt="" />
{else}
<img style="float:right;margin-right:13px;" src="images/homepage_context.jpg" alt="" />
{/if}
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area" }
{if $ccuser->loggedin() && $ccuser->memberof('Ard Cluain')}
<p>Welcome to the private Ard Cluain area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Belarmine Hall')}
<p>Welcome to the private Belarmine Hall area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Drumnigh Wood')}
<p>Welcome to the private Drumnigh Wood area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{elseif $ccuser->loggedin() && $ccuser->memberof('Ferndale Court')}
<p>Welcome to the private Ferndale Court area of boylepm.ie (choose from the menu on the left). You are currently logged in (don't forget to log out from top menu when you are finished).</p>{content}
{else}
<p>You are not currently logged in...please login using the login area at the top of the page.</p>
{/if}
{else}
{if $login_error neq ""}<font color="red"><b>Client login error:</b> {$login_error}</font><br /><br />{/if}{content}
{/if}
</div>
<br style="clear:both;" />
</div>
{else}
<div id="content_fullwidth">
<div id="content">
{if $page_alias eq "home"}
<img style="float:right;margin-right:13px;" src="images/homepage_context_keys.jpg" alt="" />
{elseif $page_alias eq "request-quotation"}
<img style="float:right;margin-right:13px;" src="images/biz_card.jpg" alt="" />
{else}
<img style="float:right;margin-right:13px;" src="images/homepage_context.jpg" alt="" />
{/if}
{if $page_alias eq "client-area" or $cgsimple->get_parent_alias() eq "client-area" }
{if $customcontent_loggedin > 0}
Logged in: <b>{$customcontent_loginname}</b><br/>{content}
{else}
<h1>You are not authorized to view this data</h1>
{/if}
{else}
{if $login_error neq ""}<font color="red"><b>Client login error:</b> {$login_error}</font><br /><br />{/if}{content}
{/if}
</div>
<br style="clear:both;" />
</div>
{/if}
</div>
<div id="footer"></div>
</div>
{literal}
<__script__ type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</__script>
<__script__ type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8837820-1");
pageTracker._trackPageview();
} catch(err) {}</__script>
{/literal}
<__body>
</__html>
Re: Pages missing after move to different server
You don't use the Menu Manager, as in {menu}?...
If what you posted is the actual template...
If what you posted is the actual template...
Re: Pages missing after move to different server
Thanks for your reply.
I didn't design this template. Someone else did. So I'm not sure how its actually designed. Does it seem strange??
Thanks
R
I didn't design this template. Someone else did. So I'm not sure how its actually designed. Does it seem strange??
Thanks
R