Errors: please help me

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
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Errors: please help me

Post 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. :o ...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
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post 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)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Errors: please help me

Post by Rolf »

You will find more info in this topic
http://forum.cmsmadesimple.org/viewtopic.php?t=42573

®olf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post 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");
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Errors: please help me

Post 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);
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post 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.
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post 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...
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post by dagmar »

strange, the default language Nederlands or Dutch isn't in the list?
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Errors: please help me

Post 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?
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post by dagmar »

Yes, strange because the hoster (strato.nl) says PHP 5
User avatar
dagmar
Forum Members
Forum Members
Posts: 11
Joined: Thu Mar 20, 2008 7:49 pm

Re: Errors: please help me

Post by dagmar »

sorry, that's not strange...
Post Reply

Return to “CMSMS Core”