My Control Panel. [Archive] - Volvo Performance Club UK Forums

PDA

View Full Version : My Control Panel.


TangoDeltaSierra3
Wednesday 23rd March 2005, 21:13
Hi. I cant do anything on my User CP as i get the following message everytime i try.

Unable to add cookies, header already sent.
File: /home/wwwvolv/public_html/forums/profile.php
Line: 1

Any ideas anyone ?

stevepud
Thursday 24th March 2005, 09:43
I have the same thing mate,

We could get the admins to try this.....
The 300zx forum had the same thing yeterday, and I asked their admin for the fix....
He said...

"get them to restart mysql, if that doesnt work get them to reboot the server, if that doesnt weork get them to repair the mysql database"

and then....

"a possiblity there is a filesystem error, a partition may be corrupt or have an aborted journal, those are fixable

fsck -AaCy
tune2fs -j /dev/screwedpartition

most linux OSs can recover journals without manual interaction these days, usually on a reboot"


Maybe that'll help, if anyone understands it!!!!!

I particullarly like the LINUX command lines, with "tune2fs -j /dev/screwedpartition"
LOL

Steve

TangoDeltaSierra3
Thursday 24th March 2005, 11:57
Cheers for that, are u watching Mr's Mopp lol, flick da switch love :thread:

Mrsmopp
Thursday 24th March 2005, 12:04
I think I may be being a bit blonde here but... :wtf: LOL

x

Kevin
Thursday 24th March 2005, 12:50
Hi Steve,

Thanks for the info you supplied.

The steps suggested would be the equivalent of refitting your engine when there's a banana stuck in your exhaust.

If there was a filesystem error, there would be considerable corruption which in reality would render Apache (the web server) knackered (technical term, that!). If MySQL was hosed (another technical term!) then this would affect all pages this forum serves, and not just profile.php.

Onto the actual error: Unable to add cookies, header already sent.

This forum uses PHP, and any cookie information must be sent prior to the header. If it isn't then it's not sent. This site uses cookies to log when you were last visiting the forum, and to record what you last did (updating your signature for example).

Now that we have ascertained that there was a problem recording cookies, why could that be? I've been working with PHP for some years now, and any blank whitespace at the beginning or the end of a PHP file can be interpreted literally by the PHP interpreter. I looked at the file profile.php and there was a great whacking tabbed area before the actual PHP code. I've removed that now - and cookies are being sent:

Before
======
HTTP/1.1 200 OK
Date: Thu, 24 Mar 2005 11:45:07 GMT
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
X-Powered-By: PHP/4.3.10
Connection: close
Content-Type: text/html

After
=====

HTTP/1.1 200 OK
Date: Thu, 24 Mar 2005 11:45:29 GMT
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
X-Powered-By: PHP/4.3.10
Set-Cookie: bblastvisit=1111664729; expires=Fri, 24-Mar-06 11:45:29 GMT; path=/
Set-Cookie: bblastactivity=1111664639; expires=Fri, 24-Mar-06 11:45:29 GMT; path=/
Cache-Control: private
Content-Length: 19826
Connection: close
Content-Type: text/html; charset=ISO-8859-1

The banana has now been removed, and the error won't affect updating your profile anymore :)

Kevin

stevepud
Thursday 24th March 2005, 12:58
Thanks for doing that Kevin, it has fixed the problem.

Thanks also for the explanation, I even managed to understand most of what you were saying (to a degree anyway!!)

Now I wont appear rude by not replying to any posts etc!!
One thing though, why would it only affect certain people....
Am I being singled out for NOT owning a volvo!! LOL

CHeers :B_thumb:

Steve

Wobbly Dave
Thursday 24th March 2005, 12:59
:banana: Look at that Banana go!


You know what happens if you have faulty cookies.














you get crumbs! :uglyhamme

Kevin
Thursday 24th March 2005, 13:01
Hi Steve,

Glad it's working again.

I couldn't replicate the error either. I presume (somewhat weakly) that this error would only occur with certain browsers.

I've not got a Volvo either - it's still a great community to be part of though :)

Kevin

stevepud
Thursday 24th March 2005, 13:02
you get crumbs! :uglyhamme


DOH - That was SO predicatable !! LOL

stevepud
Thursday 24th March 2005, 13:04
Kevin,
I tried on 3 PC's all running IE6 and also on one running IE6 AND Firefox, still didnt work, until you pulled that pesky banana out!! :funkybana

Cheers

Wobbly Dave
Thursday 24th March 2005, 13:08
DOH - That was SO predicatable !! LOL

No one said I was any good at jokes. Volvo's possibly? Humour - :pants:

TangoDeltaSierra3
Thursday 24th March 2005, 14:18
Thankyou for a speedy solution to the problem. How do i upload an avatar ? My pic is only 12kb but it still says too large.

Justin
Thursday 24th March 2005, 14:23
If you remove the banana out of the pic it may be smaller and upload :)

It needs to be 100x100 or it wont upload mate

mas
Friday 25th March 2005, 09:06
I for one would like to here the story of how you came to be admin of a Volvo forum when you havn't got one , so spill the beans please mr :B_censore

your Fellow admin, Mas
( mastiff forum but i've got several of those :B_blite: )