[Solved] Template shows no content after 1.12.1 --> 2.1.1

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
pjb
Forum Members
Forum Members
Posts: 27
Joined: Wed Feb 02, 2011 11:04 pm

[Solved] Template shows no content after 1.12.1 --> 2.1.1

Post by pjb »

[Solution: Problem caused by the pair of single quotation marks improperly place around a variable name on line 7 of the template]

Please help me to solve an issue in upgrading from 1.12.1 to 2.1.1.

I've attached the system info and the complete template.

After the upgrade, I can enter the admin page, and see that all of my content has transferred.

When I attempt to view the site, however, I get a blank page.

When I view source from the site's home page, all I see is:
<!DOCTYPE html>

Viewing the web console, I see the message:
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

When I switch to another template just for testing purposes, content does appear without error, but the layout isn't something I can use.

So there's something amiss in the template, which I have included in full as an attachment.

I added line 5: {$maincontent=$maincontent scope=global};
line 7: {$mobileonly = "{content block = 'mobileonly'}" scope = global};
line 9: $mobiletemp=$mobiletemp scope=global};
and commented out line 6:
{*content block='mobileonly' assign='mobileonly' label='Mobile only Content'*}

in an attempt to follow the installation instructions concerning scope of variables differences in version 2.1.1

Please help me discover what I've done wrong.

Thank you,

Patrick
Attachments

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

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

pcp20us

Re: [Solved] Template shows no content after 1.12.1 --> 2.1.

Post by pcp20us »

Hi. I am having the same problem testing 2.x as well, But cannot get any assitance. Did you fix this problem, as i see your post is marked as Solved??
borutvel
Forum Members
Forum Members
Posts: 11
Joined: Sun Oct 24, 2010 7:45 pm

Re: [Solved] Template shows no content after 1.12.1 --> 2.1.

Post by borutvel »

"clear cache" is also the posible solution
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [Solved] Template shows no content after 1.12.1 --> 2.1.

Post by Rolf »

Solution posted in the top of the first post
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
borutvel
Forum Members
Forum Members
Posts: 11
Joined: Sun Oct 24, 2010 7:45 pm

Re: [Solved] Template shows no content after 1.12.1 --> 2.1.

Post by borutvel »

I've seen the solution in brackets at the top.

But I solved my exact same problem (blank page with only <!DOCTYPE html> in source) with "clear clear" about 30 minutes ago.
Locked

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