[open] Template error after upgrade

Report, and discuss CMSMS 2.0 Beta issues here. This forum is for beta testers, and module developers. Please don't use a beta release for production use.
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

[open] Template error after upgrade

Post by oliver341 »

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}
Attachments
template.png
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Template error after upgrade

Post by calguy1000 »

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.
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.
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Template error after upgrade

Post by oliver341 »

How do I share the template? Go into Edit Template and copy/paste everything in the Content box?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Template error after upgrade

Post by paulbaker »

Yes, inside [ code ] code forum tags [ /code ].
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Template error after upgrade

Post by Rolf »

Could you please re-test this issue in the Beta 3 release?

Thanks, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Template error after upgrade

Post by oliver341 »

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:

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
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Template error after upgrade

Post by oliver341 »

I just noticed there is a new CMSMS version, I am on 1.11.11. I'll upgrade and re-test.
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Template error after upgrade

Post by oliver341 »

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
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Template error after upgrade

Post by jce76350 »

There may be a relationship with the post ?
http://forum.cmsmadesimple.org/viewtopi ... 84&t=70686
Jean-Claude Etiemble
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Template error after upgrade

Post by oliver341 »

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?
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [open] Template error after upgrade

Post by jce76350 »

Uninstalling the MenuManager module breaks the {menu} tag.
so replace the tag {menu ... by {Navigator ...

Note : "A new module for building navigations (Navigator)"
Jean-Claude Etiemble
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: [open] Template error after upgrade

Post by oliver341 »

Thanks, I have swapped out {menu} for {Navigator}.

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
The second and subsequent refresh give this:

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
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: [open] Template error after upgrade

Post by oliver341 »

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
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [open] Template error after upgrade

Post by jce76350 »

A problem of Allowed memory in PHP
Try to delete some modules if possible
Jean-Claude Etiemble
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: [open] Template error after upgrade

Post by oliver341 »

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.

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
Module list.

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

----------------------------------------------
Locked

Return to “[locked] CMSMS 2.0 Beta”