Page 1 of 1

file editing causes multiple problems

Posted: Sat Mar 01, 2008 1:40 pm
by samplist
I'm running version 1.2.3 on linux and xammp 1.5.4a.
I did a clean install and then copied some templates and css settings from an old cms install so far so good. The site run smoothly when i realized that the data i put in the admin text areas don't appear as utf-8 in phpmyadmin, i new how to solve this, i uncommented the line in include.php and saved it. What a disaster! I tried to log on admin and on the login screen i see these errors:
Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/admin/login.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/admin/login.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/admin/login.php on line 185

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/admin/login.php on line 186

I logged in and some more errors:
Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/admin/lang.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/page.functions.php on line 160

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/page.functions.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/stonetechnew/config.php:1) in /opt/lampp/htdocs/stonetechnew/lib/classes/class.admintheme.inc.php on line 176

I cleared the cache but that didn't help. Fortunately i had a backup of the whole site (database and files) and i reverted the changes. Everything was as before, errors disappeared! Now i tried editing the file (include.php) again just opened it and saved it again (no actual changes in any lines) and the problem appears again! Go back in the backup reverted it again, edit another file (config.php) same problems again! Anyone has an idea on whats happening i haven't had any issues with previous versions (1.03, 1.04) editing files, but this is crazy! Any help appreciated, thanks.


 

Re: file editing causes multiple problems

Posted: Sun Mar 02, 2008 2:11 pm
by reneh
a simple guess from me is that the editor you use is making errors in your file. This can i.e. be e empty line before or after the file content.
(That is the only thing I can think about, but me is not a dev either..)

Cannon Modify Header Errors

Posted: Sun Mar 02, 2008 7:49 pm
by carasmo

Code: Select all

[02-Mar-2008 12:28:03] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xx/public_html/gallery/modules/Cataloger/action.defaultcategory.php:8) in /home/xx/public_html/gallery/index.php on line 294

I was having those errors with the cataloger and I am clueless, but I had a feeling that unchecking the box:

If you have a huge number of items displayed
in a category, some PHP installs will fail to display the page
correctly. Check this box to solve this problem (test for side effects)


In the category page settings would fix it. It worked.

I noticed that when I removed the {metadata} tag from the template the errors didn't happen, but I need this for the site. So I put it back and went to the module in question and looked around in the settings. I don't know if this helps you narrow this down, but I really want to know how you fix this. I also got this with a new install and not the older version of CMSMS.

Re: file editing causes multiple problems (solved)

Posted: Mon Mar 03, 2008 7:01 am
by samplist
I use editplus2 to edit from my windows client on linux via samba, so far i haven't had any problems but i tried editing directly on linux with the same results. I have 2 developer platforms one at home and one at work, this only happened at work. So i narrowed down the problem in my "work" enviroment. I found an empty line at the bottom of my apache vhosts file and deleted it. That stopped the problem completely when i restored my site. So i think this was the problem, it's the only explanation that i have after a lot of searching and editing. Thank you for your help.