Page 1 of 1

debug gives errors - edit pages from admin suddenly gives error

Posted: Wed Sep 30, 2009 1:31 pm
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 :)

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

Posted: Fri Nov 13, 2009 11:54 am
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.

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

Posted: Tue Nov 17, 2009 9:09 am
by Rolf
Hi chinboy

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

Thx, Rolf

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

Posted: Sun Nov 22, 2009 5:30 pm
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!!