debug gives errors - edit pages from admin suddenly gives error

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
Chinboy
Forum Members
Forum Members
Posts: 10
Joined: Tue Apr 14, 2009 2:37 pm

debug gives errors - edit pages from admin suddenly gives error

Post by Chinboy »

Hi everyone..

I've searched the forum for this - even google where I can see some French dudes talking about this, but with no conclusion at all..

Suddenly I can't go to the pages-section in admin area for editing pages. It gives following error in top screen:
Output has already been sent to the browser at /customers/XXXX/XXXX/httpd.www/config.php:1. Please make sure the command $xajax->processRequest() is placed before this.
(XXXXX=my site)

So I ran into my config.php to switch on debug-mode. Here's the errors:

In mainsite (frontend):
Warning: Cannot modify header information - headers already sent by (output started at /customers/XXXX/XXXX/httpd.www/config.php:1) in /customers/XXXX/XXXX/httpd.www/index.php on line 371
In admin:
Warning: Cannot modify header information - headers already sent by (output started at /customers/XXXX/XXXX/httpd.www/config.php:1) in /customers/XXXXX.dk/XXXXXX.dk/httpd.www/lib/classes/class.admintheme.inc.php on line 171

I'm using the newest version of CMS available

Anyone got a clue what's going on ?? A bug in CMS?


Thanks for reading :)
Last edited by Chinboy on Sun Nov 22, 2009 5:31 pm, edited 1 time in total.
unobtrusivebooth
New Member
New Member
Posts: 5
Joined: Fri Nov 14, 2008 7:14 pm

Re: debug gives errors - edit pages from admin suddenly gives error

Post by unobtrusivebooth »

Hello Chinboy

If you navigate to the front end of your site with /config.php after the domain name do you get strange characters like 
If so there is an encoding or corruption problem with the config.php.

Remake the config.php in a text editor as plain text if you have encoding options save as utf-8, then upload and hopefully the message will go away :)

A friend sent me his cmsms site created on the pc and I'm on a mac but when I installed it locally to help him I had this problem the above worked for me.

Let me know if it solved it for you and hopefully this may help others.

Good luck.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: debug gives errors - edit pages from admin suddenly gives error

Post by Rolf »

Hi chinboy

Would you please put a copy of your System Information here?
Site Admin >> System Information

Thx, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Chinboy
Forum Members
Forum Members
Posts: 10
Joined: Tue Apr 14, 2009 2:37 pm

Re: debug gives errors - edit pages from admin suddenly gives error

Post by Chinboy »

Hi guys - sorry for not writing here for a while.

I figured it out, thanks to unobtrusivebooth (what a name  ;D )
You where right  - well almost. I did try your trick, but got a blank page only, revealing nothing at all.
It did however lead me to the root of the problem.

I installed another php-editor just to try it out - the other editor I had, must have been corrupt somehow.
So when I opened up my config.php in the new editor - very true to your experience unobtrusivebooth, there was at the first line, a wierd >><< thingy going on there.

I deleted it, saved my config.php to the server again - woila! All fine :)


Thanks!!
Post Reply

Return to “CMSMS Core”