Page 1 of 1
Re: Errors: please help me
Posted: Fri Sep 16, 2011 6:36 am
by fredp
Hi David,
My guess is that while you were on holiday, your host upgraded your site's version of PHP to 5.3.

...But that's just a guess. Check your PHP version and see if it is what you expect.
If you are on PHP 5.3, you might try to disable the E_DEPRECATED messages with something like what I put in my php.ini:
Code: Select all
error_reporting = E_ALL & ~(E_NOTICE | E_DEPRECATED)
Hope this helps,
fredp
Re: Errors: please help me
Posted: Sat Sep 17, 2011 9:05 am
by dagmar
I've the same problem. Grrr. By reading al the posts I also think it has to do whith the PHP version.
In which file and where exactly I've to change the code? (I'm not that technical)
Re: Errors: please help me
Posted: Sat Sep 17, 2011 3:29 pm
by Rolf
Re: Errors: please help me
Posted: Mon Sep 19, 2011 1:34 pm
by dagmar
I read it but no succes.
CMS version 1.9.4.1
PHP version 5.2.17
Server API cgi-fcgi
MySQL 5.0.91
I tried to put error_reporting(E_ALL); in config.php file but no changes.
Other sites have also PHP 5.2.17 and work fine???
Something must be wrong in index.php (and class.admintheme.inc.php) on following lines
// Here we adjust headers for non cachable pages
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Re: Errors: please help me
Posted: Mon Sep 19, 2011 5:31 pm
by Rolf
dagmar wrote:I tried to put error_reporting(E_ALL); in config.php file but no changes.
And with:
.htaccess settings for PHP 5.3.x
The error reporting value in a .htaccess file has to be specified as an integer.
php_value error_reporting 22527
error_reporting set directly in PHP
If none of these options work, you may have luck with this line in your config.php:
error_reporting(E_ALL & ~E_DEPRECATED);
Re: Errors: please help me
Posted: Tue Sep 20, 2011 7:32 am
by dagmar
Hmm.. What am I doing wrong?
First I made a htaccess.txt with only:
php_value error_reporting 22527
uploaded in subfolder where cms was installed. Then changed name in .htaccess
The site didn't appaer at all, only an error.
Than I tried to put the error reporting in config.php at the top:
<?php
error_reporting(E_ALL & ~E_DEPRECATED);
etc.etc.
The site didn't change and begins with:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/23/72/51990572/htdocs/cms/lib/html_entity_decode_php4.php:629) in /mnt/web5/23/72/51990572/htdocs/cms/index.php on line 168
Strange Only on the homepage?? where the header is blue and on the other pages the header is grey...
But now something strange!!
In Safari and Explorer it looks good at first but when I open pages in the admin this appears:
Output has already been sent to the browser at /mnt/web5/23/72/51990572/htdocs/cms/lib/html_entity_decode_php4.php:629. Please make sure the command $xajax->processRequest() is placed before this.
Re: Errors: please help me
Posted: Tue Sep 20, 2011 7:40 am
by dagmar
Ok I reinstalled firefox and now only the page admin login looks strange and when clicking the error:
Output has already been sent to the browser at /mnt/web5/23/72/51990572/htdocs/cms/lib/html_entity_decode_php4.php:629. Please make sure the command $xajax->processRequest() is placed before this.
appears.
But... it's one step further...
Re: Errors: please help me
Posted: Tue Sep 20, 2011 7:50 am
by dagmar
strange, the default language Nederlands or Dutch isn't in the list?
Re: Errors: please help me
Posted: Tue Sep 20, 2011 10:08 am
by fredp
dagmar wrote:...
PHP version 5.2.17
...
Do I understand correctly: 5.2.17 is the PHP version that the CMSMS admin console reports when you go to the
Site Admin » System Information page?
Re: Errors: please help me
Posted: Tue Sep 20, 2011 1:36 pm
by dagmar
Yes, strange because the hoster (strato.nl) says PHP 5
Re: Errors: please help me
Posted: Tue Sep 20, 2011 1:39 pm
by dagmar
sorry, that's not strange...