Helpful Information
 
 
Category: vBgarage
Tried to install: Durring install getting: cannot modify header information error!!!

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!)

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.

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!

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.

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?

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.

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

Hang tight.

Awesome! Thanks alot!

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.

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

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.










privacy (GDPR)