file editing causes multiple problems

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
samplist
Forum Members
Forum Members
Posts: 38
Joined: Fri Sep 08, 2006 7:42 am

file editing causes multiple problems

Post 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.


 
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm

Re: file editing causes multiple problems

Post 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..)
ReneH 8-)
A search will save you hours waiting for an answer! Image
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Cannon Modify Header Errors

Post 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.
samplist
Forum Members
Forum Members
Posts: 38
Joined: Fri Sep 08, 2006 7:42 am

Re: file editing causes multiple problems (solved)

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”