View Full Version : phpbb Installation and Upgrading Problems
shontrix
07-03-2009, 05:17 AM
I got this message while installing pbpbb3 here, I never got this error in any other hosts till now though.
[phpBB Debug] PHP Notice: in file /installs/index.php on line 440: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 441: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 442: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 443: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
Last time it was fixed by the staff... I got this reponse
"We apologize for the trouble you've been having, there was a function in this installer tool that was causing issues. On line 24 of includes/functions_install.php there was a function that checked to see if windows extensions could be loaded (they can't on our server). I commented it out and had it return false. It is now working fine, but I would actually recommend using the install in your cpanel -> software/services -> simple scripts. If you install using this tool it will make it much easier to keep track of it and make up-dates.
Thanks,
JM"
Now, Iam facing the same problem again while updating phpbb3.04 to 3.05... how do I change the codes so that the script will run on Hostmonster... as windows extensions has been disabled.
I have two functions_install.php in the Update Install Directory
\install\update\new\includes\functions_install.php
\install\update\old\includes\functions_install.php
I guess they need to be commented out too, to work on Hostmonster.
I raised a ticket yesterday, didnt get any response yet so posting here.. I need the phpbb board upgraded to install some new mods too.
shadmego
07-03-2009, 08:30 AM
Put the following line of code at the top of the functions_install.php page:
error_reporting(E_ALL ^ E_NOTICE);
It sounds like you have a corrupt php script, honestly. I updated my 3.0.4 board to 3.0.5 without a second thought ... on a Hostmonster server ...
~regards
shontrix
07-03-2009, 10:54 AM
Put the following line of code at the top of the functions_install.php page:
error_reporting(E_ALL ^ E_NOTICE);
It sounds like you have a corrupt php script, honestly. I updated my 3.0.4 board to 3.0.5 without a second thought ... on a Hostmonster server ...
~regards
I put your code at the top of each functions_install.php, the same error messages were returned.
I don't think the script is corrupted since there was no failed transfers during the upload, also I faced the same error message before and it was fixed by hostmonsters by changing a few lines (commenting out). Even, then I will try uploading the install script again.
So, you are using phpbb3, good to hear that, did you get same error while installing it the first time. Did you use Simplescripts or did you install manually?
there was a function that checked to see if windows extensions could be loaded (they can't on our server)
Isn't is possible to enable the windows extension loading function on the servers, it works on most hosts.
shadmego
07-03-2009, 10:59 AM
I did not use SimpleScripts. I do manual installations. I did not get this error at any time when trying to install the first time or with any subsequent updates.
Try putting the code I provided at the top of your install/index.php page.
This is assuming you are getting the exact same errors with the update as you did previously.
~regards
shontrix
07-03-2009, 11:26 AM
Well, I definitely got that error on the first time installation and it was fixed by support.
There is already this line in install/index.php on Line 23
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
shadmego
07-03-2009, 11:44 AM
Well, now I'm utterly confused ...
Maybe I'm assuming some things I shouldn't be assuming ...
Like I assume you downloaded the update package from phpbb.com. Something named similar to: phpBB-3.0.4_to_3.0.5.tar.bz2. I also assumed you unzipped said package and uploaded the contents to your phpbb directory.
Once that happened, I then assumed you visited the install directory in your browser where you phpbb forum is located. For instance, if you installed phpbb in your public_html folder, then you would point your browser to:
http://www.yourdomain.com/install
From here, I assumed you followed the onscreen prompts to complete the upgrade, deleting the install directory after the upgrade was complete to bring your forum back online.
Of course, I understand you probably didn't get as far as my last assumption because of the errors you are experiencing.
Perhaps you might need to redownload the update package from phpbb.com or you could wait for support to respond to the ticket you submitted yesterday.
If everything I mentioned above is what you did, perhaps you might need someone to take a closer look at what's going on with your upgrade ...
I don't know what else to suggest you do. If I were you, I would download the patch package again and start from scratch.
By the way, do you have a recently backup of your phpbb installation? Including your database?
~regards
shontrix
07-03-2009, 02:52 PM
Yes, what you assumed is correct upto a certain degree, which is uptill here
From here, I assumed you followed the onscreen prompts to complete the upgrade
Where that error message halts my action. Also, I downloaded the zip package instead of the tar package so its 'phpBB-3.0.4_to_3.0.5.zip', other than that you are right, lol.
I have been running my board for 2 years now on a number of different scripts integrated, so Iam pretty well versed with installation, upgrading and modding especially with phpbb. I don't want to sound rude or anything, its just that I have been in 3 different retail hosts so far and none generated this error for following the same procedure. From my experience I can tell its not a client side issue, apparently something is disabled (my guess windows extension, from the support ticket) on the server that isn't allowing the script to work.
I already tried reuploading the installation script as you suggested earlier, guess I will redownload and upload again, although I don't think there was anything wrong in the previously downloaded package as even if there was a tiny loss of a byte in zipped file while downloading, it would produce errors during unzipping.
Maybe it worked for you for probably being in a different cluster where the server is differently configured.
I do not have a recent backup, my backup is quite old and another funny thing happened while taking backup of the DB, the downloaded file size was 3.7mb whereas my actual DB size should be around 17mb -_- Guess I will try exporting again.
shadmego
07-03-2009, 03:02 PM
I didn't mean to sound like I thought you were clueless. I was just trying to start from the beginning for myself mostly, but also so we could be on the same page.
From the sound of it, it could well be that your server is configured differently than the one I'm on, though it seems difficult to believe that I would have windows extensions enabled and you wouldn't ... I will take a look at my php.ini file ... and the functions_install file
~regards
shontrix
07-03-2009, 03:28 PM
That would be really nice :)
shadmego
07-03-2009, 04:24 PM
I spent some time searching around the function_install.php file and found what might be the function causing the problems with you at the top:
function can_load_dll($dll)
{
return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
}
This function is supposed to return the proper value based on what it finds, but it might not be working for you. For some reason ....
The function is the same in both the new and old directory. I did not look any further, but you can try to set that function to simply return false, commenting all the extra stuff out in the meantime.
I haven't looked at my php.ini file yet. I don't expect to find anything out of the ordinary there, though.
shadmego
07-03-2009, 04:34 PM
===UPDATE===
Check in your php.ini file for "enable_dl". See if you have that set to on or off. Also check safe_mode. It should be set to off.
If both of those above checks are true, then I dunno ... more searching will have to be done ...
~regards
shontrix
07-04-2009, 01:32 AM
enable_dl is on and Safe mode is off it seems in the master php.ini
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On
; Safe Mode
;
safe_mode = Off
function can_load_dll($dll)
{
return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
}
You can try to set that function to simply return false, commenting all the extra stuff out in the meantime.
I also think there is where the problem lies, the support also said that line caused the problem and needed commenting out. Can you help me by commenting it out for me?
shadmego
07-04-2009, 10:02 AM
It would be faster if you did it.
In a text editor make the above code look like this:
function can_load_dll($dll)
{
return false;
//return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
}
I'm really not sure if this function should return true or false so you can try both, but this should at least get you to the next step of the process.
~regards
shontrix
07-04-2009, 11:23 AM
Sadly it didn't work :(
[phpBB Debug] PHP Notice: in file /installs/index.php on line 440: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 441: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 442: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /installs/index.php on line 443: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
deadeye536
07-20-2009, 05:15 PM
Open up your language/en/common.php file, and check that before <?php, there are no spaces, if there is a single space above it (tab, return, or the regular space), it'll be sending out information to the browser, before the regular phpBB headers are sent.
Also, you'll want that function to return true, it's checking to see if safemode is off and if enable_dl is on, if so, it returns true, if not, return false.
I'm a tad late to the reply, but I saw it was unresolved.
EDIT:
Realized that this problem has came up on phpBB.com and has been resolved here: http://www.phpbb.com/community/viewtopic.php?f=46&t=1444025
shontrix
08-01-2009, 11:56 AM
I tried doing the following... didnt work
ToonArmy wrote:Open: includes/functions_install.php
Find:
Code: Select all
if ($dbms)
Before, Add:
Code: Select all
unset($available_dbms['sqlite']);
Can you tell me how to make hostmonster enable SQLite if not can hostmonster update to phpbb 3.0.5 for me... its taking a long time
pghcollectibles
08-01-2009, 12:54 PM
i am not familiar with your error and even though i have phpbb all i can do at this moment is help with a general troubleshooting method
insert something like this anywhere close to where you think the problem might be:
die("make a comment so you know where you are, line no etc");then load the page and see if the page exits with your die output or if you get the header output error. then you will be able to find exactly what line of code causes the error.
however, with an error like this:
[phpBB Debug] PHP Notice: in file /installs/index.php on line 440: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
i would think what deadeye said has to be near the solution for that particular error
shontrix
08-04-2009, 03:34 AM
EDIT:
Realized that this problem has came up on phpBB.com and has been resolved here: http://www.phpbb.com/community/viewtopic.php?f=46&t=1444025
The Problem is different that guy didn't had pdo installed his error msg and mine were a little different
His
Warning: Cannot load module 'SQLite' because required module 'pdo' is not loaded in Unknown on line 0
[phpBB Debug] PHP Notice: in file /install/index.php on line 440: Cannot modify header information - headers already sent by (output started at /includes/functions_install.php:24)
[phpBB Debug] PHP Notice: in file /install/index.php on line 441: Cannot modify header information - headers already sent by (output started at /includes/functions_install.php:24)
[phpBB Debug] PHP Notice: in file /install/index.php on line 442: Cannot modify header information - headers already sent by (output started at /includes/functions_install.php:24)
[phpBB Debug] PHP Notice: in file /install/index.php on line 443: Cannot modify header information - headers already sent by (output started at /includes/functions_install.php:24)
My error
[phpBB Debug] PHP Notice: in file /install/index.php on line 440: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /install/index.php on line 441: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /install/index.php on line 442: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /install/index.php on line 443: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
I have pdo installed.. as per php information module... still getting this error
shontrix
08-04-2009, 03:48 AM
Open up your language/en/common.php file, and check that before <?php, there are no spaces, if there is a single space above it (tab, return, or the regular space), it'll be sending out information to the browser, before the regular phpBB headers are sent.
There are no space before <?php
<?php
/**
*
* common [English]
*
* @package language
* @version $Id: common.php 8555 2008-05-15 14:10:11Z Kellanved $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
Also these are lines 440-443 in install/index.php as said in the output error msg
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
deadeye536
08-07-2009, 10:02 PM
Well, what causes the "Cannot send headers" error is that phpBB makes use of the header(); php function to accordingly adjust the output of the page to support UTF-8. What produces the error is an output somewhere within the files.
What you can do is actually stop the output of the headers. The headers in this case don't do much other than declare the encoding as UTF-8, which most modern browsers can automatically detect.
Try replacing
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
with
/* header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');*/
Hope this helps! Also, if you continue to have problems, try posting about it on phpBB.com, the community is nice, and should be able to help more than I can.
Also, with the new and the old directories, they do not play a part in the installer, they are used in comparison, to check what file changes you may have made. The problem if anything would be within the installer itself, or the existing phpBB files (root/includes/* for example).
shontrix
08-08-2009, 12:11 AM
The problem was fixed by the support team....
pghcollectibles
08-08-2009, 08:57 AM
what was the solution?
Ammiddeon
08-21-2009, 08:22 PM
I would like to be able to create PDF documents from a MySQL database using PHP, however it doesnt apear that the pdf is working with bluehost.
Is this right or am I doing something wrong?
Many Thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.