Page 1 of 1

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

Posted: Wed Sep 23, 2015 6:34 am
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.

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

Posted: Wed Sep 23, 2015 7:28 am
by Rolf
Afaik this is already fixed for 2.0.1

Thanks Rolf

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

Posted: Fri Sep 25, 2015 11:46 am
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.