[SOLVED] Strange errors when saving content.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
thefrozen
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 07, 2013 5:04 pm

[SOLVED] Strange errors when saving content.

Post by thefrozen »

Hello,

I have a weird problem with at least one of my installs.

Whenever I press "Save" after editing content I get a white site with something like this:

Code: Select all

Debug: (0,0513) - (usage: 5067504) - (peak: 5292952)

88

Debug: (0,052113) - (usage: 5099000) - (peak: 5301728)

UPDATE mycms_content SET content_name = 'Erhaltene Auszeichnungen', owner_id = 3, type = 'content', template_id = '7', parent_id = '55', active = 1, default_content = 0, show_in_menu = 1, cachable = 1, secure = '0', page_url = '', menu_text = 'Erhaltene Auszeichnungen', content_alias = 'Erhaltene-Auszeichnungen', metadata = '', titleattribute = '', accesskey = '', tabindex = '', modified_date = '2015-10-29 18:00:01', item_order = '1', last_modified_by = 1 WHERE content_id = 88
The webserver logs in access.log:

Code: Select all

x.x.x.x - - [29/Oct/2015:18:00:00 +0100] "POST /admin/moduleinterface.php HTTP/1.1" 500 983 "http://mysite.de/admin/moduleinterface.php?mact=CMSContentManager,m1_,admin_editcontent,0&_sk_=241d5df8cbf2ba04&m1_content_id=88" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"
error.log:

Code: Select all

Oct 29 18:00:01 www apache2: PHP Warning:  array_merge(): Argument #2 is not an array in /var/www/cms/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 468
Oct 29 18:00:01 www apache2: PHP Notice:  Trying to get property of non-object in /var/www/cms/lib/classes/internal/module_support/modtemplates.inc.php on line 169
Oct 29 18:00:01 www apache2: PHP Notice:  Trying to get property of non-object in /var/www/cms/lib/classes/internal/module_support/modtemplates.inc.php on line 170
Oct 29 18:00:01 www apache2: PHP Fatal error:  Call to a member function fetch() on null in /var/www/cms/lib/classes/internal/module_support/modtemplates.inc.php on line 173
If I just click "Apply" everything works fine. Since I usually just apply first and Save when I go on with my work, I don't know for sure, if it actually saves..

Any ideas where could look for more clues? Couldn't find anything in the forum or the bugtracker.

Thanks!

Kind regards,

frozen



----------------------------------------------

Cms Version: 2.0.1.1

Installed Modules:

CMSMailer: 5.2.4
FileManager: 1.5.1
MenuManager: 1.50.1
ModuleManager: 2.0
News: 2.50.1
Search: 1.50.1
ThemeManager: 1.1.8
FormBuilder: 0.8.1.2
Captcha: 0.5.2
CGExtensions: 1.49.9
CGCalendar: 1.15.5
AdminSearch: 1.0
MicroTiny: 2.0
SiteMapMadeSimple: 1.2.8
CGSimpleSmarty: 2.0.2
CMSContentManager: 1.0.1
DesignManager: 1.0.1
Navigator: 1.0.1


Config Information:

php_memory_limit:
max_upload_size: 100000000
url_rewriting: internal
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: false
timezone: Europe/Berlin
permissive_smarty: false


Php Information:

phpversion: 5.6.14-0+deb8u1
md5_function: An (Ja)
json_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
file_uploads: An (Ja)
post_max_size: 16M
upload_max_filesize: 100M
session_save_path: /var/lib/php5/sessions (1733)
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)


Performance Information:

allow_browser_cache: An (Ja)
browser_cache_expiry: 60
php_opcache: An (Ja)
smarty_cache: An (Ja)
smarty_compilecheck: Aus (Nein)
smarty_cache_udt: An (Ja)
auto_clear_cache_age: An (Ja)

Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.46
Server Db Grants: „Alles gewähren“-Anweisung gefunden, die als geeignet scheint
Server Time Diff: Keine Abweichung der Zeit im Dateisystem gefunden


----------------------------------------------
Last edited by thefrozen on Fri Oct 30, 2015 1:41 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Strange errors when saving content.

Post by calguy1000 »

I think you are encountering a problem that has already been fixed in svn related to smarty.

Try disabling (temporarily) the SitemapMadeSimple module to see if that resolves the issue.
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.
thefrozen
Forum Members
Forum Members
Posts: 10
Joined: Sat Dec 07, 2013 5:04 pm

Re: Strange errors when saving content.

Post by thefrozen »

Unfortunately I can't disable that module, I can only uninstall it completely.

To test if you are right:
I cherrypicked revision 10250 by adding the line to lib/classes/internal/module_support/modtemplates.inc.php and afterwards it worked fine. I restored the file to the old version though. I will just wait for the next release and see if the problem goes away.

Thank you very much!
Post Reply

Return to “CMSMS Core”