Upgrade 1.5.2 to 1.11.2 = no main content.

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
broon
New Member
New Member
Posts: 4
Joined: Fri Apr 13, 2012 9:50 am

Upgrade 1.5.2 to 1.11.2 = no main content.

Post by broon »

I have just gone through a fairly smooth upgrade.
Though I do seem to have a syntax error on my templates that is preventing content from showing.
NOTE: If I use my modified templates this results in empty main content.
BUT If i use a default clean/new template then I can see my main content.

I am presuming front end users/ custom content or content blocks modules have the wrong syntax. I have been through the forums and tried a few different things but I can't work it out.
I am attaching system info and a copy of one of the broken templates.
Any guidance on where this is going wrong would be very much appreciated.


Template info is below.....

___________________________

{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

{if isset($detail_title)}
<title>{sitename} - {$detail_title}</title>
{else}
<title>{sitename} - {title}</title>
{/if}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{cms_stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{capture assign='captured_content'}{content}{/capture}
</head>
</__body>
<div id="pagewrapper">
{global_content name='topheader'}
<div id="headrest" class="clearfix">
<img class="headerleft" src="/uploads/images/misc/ll.gif" alt="change" width="272" height="93" />
{cms_module module=CustomContent}
{if $ccuser->loggedin() && $ccuser->memberof('Members')}
<div id="mheaderright">
<div class="logout">{cms_module module="FrontEndUsers" form="logout"}</div>
<div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{else}
<div id="headerright">call us <div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{/if}
</div>
{global_content name='bottomheader'}
{* Start Content *}
<div id="content" class="clearfix">
{* Start Sidebar *}
<div id="sidebar">
{* Start Sub Navigation *}
{menu loadprops=0 template='sidenav' collapse='1' start_level='2' excludeprefix="member"}
<hr class="accessibility" />
{* End Sub Navigation *}
</div>
{* End Sidebar *}
{* Start Content Area *}
{content block='rightcolumn' assign='rightcolumn'}
<div id="main">
<div id="mainleft">
<div class="breadcrumbs">
{breadcrumbs starttext='You are here' root='Home' delimiter='<img

src="images/caspari/chevron.gif" alt="" />'}
<hr class="accessibility" />
</div>
<a name="content"></a>
{if isset($detail_title)}
<h1>{$detail_title}</h1>
{else}
<h1>{title}</h1>
{/if}
{$content}
<div class="utilities">
<div class="printlink">{print showbutton="false" script="false" text="Print

this page" class="false"}</div>
<div class="top">{anchor anchor='top' text='Back to top'}</div>
</div>
</div>
<div id="mainright">
{global_content name='newsletter'}
{if !empty($rightcolumn)}
<div id="mainrightbg">
<div id="mainright1">
<div id="mainright2">
{$rightcolumn}
</div>
</div>
</div>
{/if}
</div>
{* End Content Area *}
</div>
</div>
{* End Content *}
{global_content name='footer'}
</div>
<__body>
</__html>
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Last edited by broon on Thu Oct 25, 2012 3:36 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Upgrade 1.5.2 to 1.11.2 = no main content.

Post by calguy1000 »

Syntax changed significantly in 1.11.x when we went to Smarty3. Smarty3 is much more particular about syntax than any previous version.

We will need to see any errors, and you may need to add some debug statements into your templates to see where things are messing up.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Upgrade 1.5.2 to 1.11.2 = no main content.

Post by calguy1000 »

The biggest problem is your {content} area is in the <head> section of the template.

I suggest you:

a: Move it to the absolute top of your template. Immediately after {process_pagedata}
b: change it to: {content assign='captured_content'} for preformance.

This is because CMSMS processes the <head> section of the template directly AFTER the body part is processed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
broon
New Member
New Member
Posts: 4
Joined: Fri Apr 13, 2012 9:50 am

Re: Upgrade 1.5.2 to 1.11.2 = no main content.

Post by broon »

Hi Calguy
Thank you for that tip, that has worked for a simpler template
but I am still having the same problem with the example tpl attached. I tried removing code bit by bit but only removing all of the extras seemed to fix it.
Seems to be a combination of things.
If anyone can see a glaring error I would be really grateful for guidance.. thanks again Calguy.. much appreciated.
thanks
broon
New Member
New Member
Posts: 4
Joined: Fri Apr 13, 2012 9:50 am

solved: Re: Upgrade 1.5.2 to 1.11.2 = no main content.

Post by broon »

I am not sure if this was the final fix but I changed
{$content}
{$captured_content}
It may be a combination of other edits too but now it works.
thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Upgrade 1.5.2 to 1.11.2 = no main content.

Post by Dr.CSS »

When you do an assign you have to use the assigned syntax, you had assign='captured_content' then used {$content} instead of {$captured_content}...
Locked

Return to “[locked] Installation, Setup and Upgrade”