Warning in "editcontent.php" after PHP-Upgrade to 5.3

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.
Locked
Skatol

Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by Skatol »

Hello!

After my web host upgraded PHP to version 5.3, I can't edit my pages anymore. I've two CMS MS running there (1.5.3 and 1.6.3) and both are showing (nearly the same) warning when I want to edit a page.

cms ms 1.5.3:

Code: Select all

Warning: get_class() expects parameter 1 to be object, string given in /users/kb03/www/admin/editcontent.php on line 326

Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 178
Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 181
Warning: Cannot modify header information - headers already sent by (output started at /users/kb03/www/admin/editcontent.php:326) in /users/kb03/www/lib/classes/class.admintheme.inc.php on line 186
cms ms 1.6.3

Code: Select all

Warning: get_class() expects parameter 1 to be object, string given in /users/sb/www/admin/editcontent.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 178
Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 181
Warning: Cannot modify header information - headers already sent by (output started at /users/sb/www/admin/editcontent.php:165) in /users/sb/www/lib/classes/class.admintheme.inc.php on line 186
I've read in some other threads with related problems here to unistall and reinstall TinyMCE, but it didn't help.

The only thing I changed in the cms-code at both installations was the bug which was reported here: http://forum.cmsmadesimple.org/index.ph ... 764.0.html


System information:

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

Cms Version: 1.6.3

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 1.0
    * MenuManager: 1.6.1
    * FormBuilder: 0.5.11
    * Captcha: 0.4


Config Information:

    * php_memory_limit:
    * process_whole_template: false
    * max_upload_size: 2000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * phpversion: 5.3.0
    * md5_function: An (Ja)
    * gd_version: 2
    * tempnam_function: An (Ja)
    * magic_quotes_runtime: Aus (Nein)
    * memory_limit: 64M
    * max_execution_time: 12
    * safe_mode: Aus (Nein)
    * session_save_path: Keine Prüfung, da eine "open basedir"-Beschränkung aktiviert ist


Server Information:

    * Server Api: cgi-fcgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.83


----------------------------------------------
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by RonnyK »

PHP 5.3.0 will be supported from 1.7 on..... Current versions dont handle the changes that are done in PHP 5.3.0....

Ronny
Skatol

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by Skatol »

Thanks for your reply Ronny.

Hmm... that's bad... I don't want to change my web host only because of php version or rather it's not easy for me to change my web host...

What can I do? Is it possible to get a patch for this problem, because I can't edit my content anymore? :-\

You don't release 1.7 next week, do you?  ;)
Skatol

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by Skatol »

Hello again!

Short question: Is it possible to replace editcontent.php (version 1.6.3) with the file from current repository branch (version 1.7) so that I can edit my content again? Or will it crash the whole CMS or database?

Can you say when CMS MS 1.7 will be released? I know, it's done when it's done, but editing my pages with phpMyAdmin is quite uncomfortable...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by calguy1000 »

* CMSMS 1.6 does not support PHP 5.3.... there are a number of reasons for this, none of them 'easy' to fix.

* CMSMS 1.7 WILL support PHP 5.3, I'm already working in PHP 5.3.  However, not every piece of functionality has been tested, there may be more to fix. we don't expect 1.7 out for a few months yet... probably in to the new year.

* CMSMS 1.7 is in no way, shape, or form ready for a production environment, and we will not support you using it.

* Until CMSMS 1.7 gets all of the changes required, and goes through an extensive testing period, We recommend that you contact your hosting provider and downgrade to PHP 5.2.x. 
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.
petermeuris
New Member
New Member
Posts: 3
Joined: Sat Jan 30, 2010 10:33 am

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by petermeuris »

I have the same problem.
Do you have any indication when we will have a fix ?
Otherwise I need to find another solution for the website.

With kind regards,

Peter
resistem
Forum Members
Forum Members
Posts: 28
Joined: Thu Oct 25, 2007 6:41 pm

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by resistem »

Hello all,
I have just upgraded to version 1.7 since my host updated their PHP, but I still get the same error message regarding editcontent.php

"Warning: get_class() expects parameter 1 to be object, string given in /xxx/xxx.se/xxx.se/httpd.www/cms/admin/editcontent.php  on line 326"

Did I miss something regarding my update or are the more people still having the same problem after upgrading to 1.7?

UPDATE:

I tried to upload only the editcontent.php file that was included with the 1.7 release and this resolved the problem. If this was a bad move, please let me know.
Last edited by resistem on Sun Mar 21, 2010 6:26 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Warning in "editcontent.php" after PHP-Upgrade to 5.3

Post by RonnyK »

What is your error_reporting level?

It should be:

error_reporting = E_ALL &  ~E_DEPRECATED

or even

error_reporting = E_ALL &  ~E_DEPRECATED & ~E_STRICT

Ronny
Locked

Return to “CMSMS Core”