[solved] Fresh install of CMSM 2.0 - blank page for frontend

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
maetmar
Forum Members
Forum Members
Posts: 36
Joined: Wed Oct 25, 2006 7:48 pm

[solved] Fresh install of CMSM 2.0 - blank page for frontend

Post by maetmar »

Just wanted to report the following bug.
after a complete fresh installation of CMSMS 2.0, I got a blank frontend page with a 500 error.
the backend was working.

after checking the log files it turned out that the following

PHP Fatal error: Call to a member function encoding() on null in /home/...../tmp/templates_c/64060443164a9839c71c34206331731aaeeac788.tpl_head.1.php on line 35

and this was linie 35:
<meta charset='<?php echo $_smarty_tpl->tpl_vars['nls']->value->encoding();?>

after removing the <meta charset...> from the template the frontend worked again.
So, I guess this is a bug in the default template which I guess should be fixed in the next release.
Last edited by maetmar on Thu Sep 24, 2015 6:25 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Fresh install of CMSM 2.0 - blank page for frontend

Post by Rolf »

Afaik this is already fixed for 2.0.1

Thanks Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: [solved] Fresh install of CMSM 2.0 - blank page for fron

Post by paulbaker »

Just wanted to say I got the same error. Here's a guide for clearing the error, so it might help first-time users:

In the admin area go to Content -> Content Manager.
Click on "Simplex" (under "Template").
About 26 lines down is "<meta charset='{$nls->encoding()}' />" - remove that line.
Click Submit.
Refresh live site - it should show the home page of the default template without errors.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Locked

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