[open] Template error after upgrade
[open] Template error after upgrade
I got the attached template error after upgrading a fully working site to 2.0. There were no reported errors during the upgrade process.
In Content Manager, all pages had "** ERROR **" in the template column.
Error messages pasted below (same as screenshot).
----------------------
ERROR: at line 127 in file /var/www/html/lib/smarty/sysplugins/smarty_internal_templatebase.php:
Unable to load template tpl_top '24'
#0 /var/www/html/lib/classes/internal/class.Smarty_CMS.php(306): Smarty_Internal_TemplateBase->fetch('tpl_top:24', 'p15', NULL, NULL, false, false, false)
#1 /var/www/html/index.php(169): Smarty_CMS->fetch('tpl_top:24')
#2 {main}
In Content Manager, all pages had "** ERROR **" in the template column.
Error messages pasted below (same as screenshot).
----------------------
ERROR: at line 127 in file /var/www/html/lib/smarty/sysplugins/smarty_internal_templatebase.php:
Unable to load template tpl_top '24'
#0 /var/www/html/lib/classes/internal/class.Smarty_CMS.php(306): Smarty_Internal_TemplateBase->fetch('tpl_top:24', 'p15', NULL, NULL, false, false, false)
#1 /var/www/html/index.php(169): Smarty_CMS->fetch('tpl_top:24')
#2 {main}
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Template error after upgrade
Care to share the template?
Note: We are aware that not all sites will upgrade cleanly. But for simple sites, there should be few problems.
Note: We are aware that not all sites will upgrade cleanly. But for simple sites, there should be few problems.
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.
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.
Re: Template error after upgrade
How do I share the template? Go into Edit Template and copy/paste everything in the Content box?
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: Template error after upgrade
Yes, inside [ code ] code forum tags [ /code ].
Re: Template error after upgrade
Could you please re-test this issue in the Beta 3 release?
Thanks, Rolf
Thanks, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Template error after upgrade
Hi again.
I installed the beta3 upgrade using the phar. There were no reported issues by the installer during upgrade.
However, post-upgrade when I attempted to load the site, I got a blank white page.
Error log reported:
I installed the beta3 upgrade using the phar. There were no reported issues by the installer during upgrade.
However, post-upgrade when I attempted to load the site, I got a blank white page.
Error log reported:
Code: Select all
[Tue Jan 13 15:55:10 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49152 bytes) in /var/www/modules/MenuManager/action.default.php on line 94
Re: Template error after upgrade
I just noticed there is a new CMSMS version, I am on 1.11.11. I'll upgrade and re-test.
Re: Template error after upgrade
Same error as before when upgrading from 1.11.12.
Code: Select all
[Tue Jan 13 17:50:42 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49152 bytes) in /var/www/modules/MenuManager/action.default.php on line 94
Re: Template error after upgrade
There may be a relationship with the post ?
http://forum.cmsmadesimple.org/viewtopi ... 84&t=70686
http://forum.cmsmadesimple.org/viewtopi ... 84&t=70686
Jean-Claude Etiemble
Re: Template error after upgrade
Maybe. Certainly it's MenuManager related, as the error would suggest. Uninstalling the MenuManager module breaks the {menu} tag.
Is there a solution for this?
Is there a solution for this?
Re: [open] Template error after upgrade
so replace the tag {menu ... by {Navigator ...Uninstalling the MenuManager module breaks the {menu} tag.
Note : "A new module for building navigations (Navigator)"
Jean-Claude Etiemble
Re: [open] Template error after upgrade
Thanks, I have swapped out {menu} for {Navigator}.
New error though:
The second and subsequent refresh give this:
New error though:
Code: Select all
[Tue Jan 13 20:39:24 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /var/www/lib/classes/class.cms_config.php on line 496
Code: Select all
[Tue Jan 13 20:40:41 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 174
Re: [open] Template error after upgrade
And now I'm getting this.
Code: Select all
[Tue Jan 13 21:09:19 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49152 bytes) in /var/www/modules/Navigator/action.default.php on line 168
Re: [open] Template error after upgrade
A problem of Allowed memory in PHP
Try to delete some modules if possible
Try to delete some modules if possible
Jean-Claude Etiemble
Re: [open] Template error after upgrade
I don't think that's the reason. I have a modest selection of modules and no issues at all on 1.11.12. I even boosted the memory limit to 256 MB and got this.
Module list.
Code: Select all
[Wed Jan 14 18:03:31 2015] [error] [client 192.168.1.64] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 178
Code: Select all
----------------------------------------------
Cms Version: 2.0-beta3
Installed Modules:
CMSMailer: 5.2.4
FileManager: 1.5
MenuManager: 1.50
ModuleManager: 2.0
News: 2.50
Search: 1.50
ThemeManager: 1.1.8
Captcha: 0.5.0
FormBuilder: 0.8
MicroTiny: 2.0
AdminSearch: 1.0
CGExtensions: 1.44.5
CGJobMgr: 1.3.4
NMS: 2.9.5
Banners: 2.6.1
CGSimpleSmarty: 1.7.4
CGFeedback: 1.6.8
ExtendedTools: 1.3.3
RSSSimplePie: 1.0
JQueryTools: 1.3.4
CGBlog: 1.12.9
CMSContentManager: 1.0
DesignManager: 1.0
Navigator: 1.0
Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
timezone: Europe/London
Php Information:
phpversion: 5.4.36-0+deb7u3
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 256M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.40
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No file system time difference found
----------------------------------------------