PDA

View Full Version : Tried to install: Durring install getting: cannot modify header information error!!!


Rick Sample
12 Feb 2005, 23:46
Ok, I tried to upgrade to 4.0.3, but I ran into a few problems on the installer. When I click the 3rd installer button, it returns this message:

Warning: Cannot modify header information - headers already sent by (output started at /home/muscleh/public_html/forums/includes/adminfunctions.php:222) in /home/muscleh/public_html/forums/admincp/upgrade_vbgarage.php on line 250


Also, I got everything done including the upload of vbgarage.php and it won't display any images, I'm not sure if thats because of the failed step above or not: http://www.muscle-mustangs.com/forums/vbgarage.php

thanks for any and all help :) (if it makes any difference, I'm still leaving the images in the DB rather than filesytem and I'm upgrading from magnuses orriginal version to 4.0!)

noppid
13 Feb 2005, 01:43
It seems to me there is white space in adminfunctions.php from an edit. Just a guess though. There should be nothing output from that file.

Rick Sample
13 Feb 2005, 01:49
ah ok, you wouldn't happen to know where I can get that orriginal adminfunctions.php file from do you? I've tried downloading pretty much all the garage releases on here, none of the zips seem to have that file!

noppid
13 Feb 2005, 01:54
ah ok, you wouldn't happen to know where I can get that orriginal adminfunctions.php file from do you? I've tried downloading pretty much all the garage releases on here, none of the zips seem to have that file!


That is a vB file, we can't distribute it.

Go to the very last line that has ?> and make sure there is no white space after it. I believe it's /forums/includes/adminfunctions.php.

Rick Sample
13 Feb 2005, 01:57
That is a vB file, we can't distribute it.

Go to the very last line that has ?> and make sure there is no white space after it. I believe it's /forums/includes/adminfunctions.php.

Yep, their are no spaces at the end or beggining of the forums/includes/adminfunctions.php file. I actually checked that first! Is their any way around it?

noppid
13 Feb 2005, 02:03
Yep, their are no spaces at the end or beggining of the forums/includes/adminfunctions.php file. I actually checked that first! Is their any way around it?

I just got home, let me settle in and I'll look for more possiblilties.

Hang tight.

Rick Sample
13 Feb 2005, 02:04
I just got home, let me settle in and I'll look for more possiblilties.

Hang tight.

Awesome! Thanks alot!

noppid
13 Feb 2005, 02:20
Awesome! Thanks alot!

In upgrade_vbgarage.php at about line 248 find...

header("Location: http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/" . $relative_url);

exit;


Replace with...


header("Location: " . $relative_url );
exit;


I'm guessing here. There is an exit after the redirect. Why it's thowing that error I just aint sure. But try that just to get feedback.

Rick Sample
13 Feb 2005, 02:26
hmmm, doesn't make any sense, still getting that error:

Warning: Cannot modify header information - headers already sent by (output started at /home/muscleh/public_html/forums/includes/adminfunctions.php:222) in /home/muscleh/public_html/forums/admincp/upgrade_vbgarage.php on line 248

noppid
13 Feb 2005, 02:38
hmmm, doesn't make any sense, still getting that error:

Warning: Cannot modify header information - headers already sent by (output started at /home/muscleh/public_html/forums/includes/adminfunctions.php:222) in /home/muscleh/public_html/forums/admincp/upgrade_vbgarage.php on line 248

As best I can see, we aint even requesting that file near there or using a function from it.


Yep I'm lost. Anyone got a map?

EDIT: Problem solved.