Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-13 10:33:51

newbie
New Member
From: USA
Registered: 2004-04-29
Posts: 9
Website

Warning: Cannot modify header information...

Hi,

This is really strange. It’s the second time I’ve received this error message in about 60 days. Nothing has changed in my Database and I did go in and check it through phpmyadmin and it says everything is okay.

The last time I got it, I went to sleep on it and when I got up in the morning, it was fine. But it’s disturbing to be down for even a minute of time that’s unnecessary.

Does anyone else have any idea what could be the problem here? Here’s the message:

Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/tmp/mysql.sock’ (2) in /home/newbie/public_html/scgi-bin/txp/textpattern/lib/txplib_db.php on line 15

Warning: mysql_select_db(): Can’t connect to local MySQL server through socket ‘/var/tmp/mysql.sock’ (2) in /home/newbie/public_html/scgi-bin/txp/textpattern/lib/txplib_db.php on line 19

Warning: mysql_select_db(): A link to the server could not be established in /home/newbie/public_html/scgi-bin/txp/textpattern/lib/txplib_db.php on line 19

Warning: Cannot modify header information – headers already sent by (output started at /home/newbie/public_html/scgi-bin/txp/textpattern/lib/txplib_db.php:15) in /home/newbie/public_html/scgi-bin/txp/textpattern/lib/txplib_db.php on line 315


Darla

Offline

#2 2005-08-13 10:39:12

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Warning: Cannot modify header information...

THe important error is almost always the first one, the rest is just cascading side-effects.

It says: “Warning: mysql_connect(): Can’t connect to local MySQL server through socket”

What this means is, that it is warning you, that it could not connect to MySQL. Usually this happens when the Database is unavailable for some reason.

Offline

#3 2005-08-13 11:05:05

newbie
New Member
From: USA
Registered: 2004-04-29
Posts: 9
Website

Re: Warning: Cannot modify header information...

Hi sense,

Thanks for the quick reply.

Yeah, I thought that …. but when I went into phpMyAdmin and checked the database, it didn’t return any errors, yet the site is still down?

Do you have any idea why or what could cause that?

It’s a new error …. I’ve had Txp for over a year now and just received this message twice in the last couple months?

Thanks again.


Darla

Offline

#4 2005-08-13 11:06:50

newbie
New Member
From: USA
Registered: 2004-04-29
Posts: 9
Website

Re: Warning: Cannot modify header information...

Oh,

I almost forgot …. I’ve got 8 other databases on this particular server … and they’re all working fine?

Thanks.


Darla

Offline

#5 2005-08-13 11:14:12

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Warning: Cannot modify header information...

mysql_connect is a standard php function. Either it returns a connection or it returns an error. There’s really not much any php-script can do about it.

Offline

#6 2005-08-13 11:24:54

newbie
New Member
From: USA
Registered: 2004-04-29
Posts: 9
Website

Re: Warning: Cannot modify header information...

Thanks again Sencer,

Well, the site is back up. Weird.

I just was worried there might be an “underlying problem” that was causing this intermittently and I wanted to try and nip it in the bud ;o)

I appreciate your quick replies.

take care,


Darla

Offline

#7 2005-10-26 03:22:14

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: Warning: Cannot modify header information...

I realize that there seems to be nothing that can be done about this problem on the txp side. I just wanted to say that I have just started to have these exact same connect errors. I check the database and everything is fine, I try my other databases and they work — It’s just strange and disconcerting. If anyone else has these errors often as well… speak up — just to be sure it isn’t a txp issue.

Offline

#8 2005-10-26 03:35:50

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Warning: Cannot modify header information...

Most likely, it’s the MySQL server temporarily running out of sockets or other resources. That’s unfortunately common on shared hosts – all it takes is one user with a runaway script.

If there is some other cause (doubtful – there’s not much a PHP script could do to cause this), “me too” reports won’t get us any closer to finding it.


Alex

Offline

Board footer

Powered by FluxBB