| Author | Message |
| Post Title: [phpBB Debug] PHP Notice: in file /adm/index.php on line 151 | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Fri Dec 18, 2009 11:34 pm
hi ive just finished all the code changes and im getting "[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)" any one have any ideas? thanks
|
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
PoPoutdoor
Joined: Jan 20, 2006 Posts: 129
|
Posted: Sun Dec 20, 2009 3:07 am
Check the language file, something wrong about the editing there.
|
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Sun Dec 20, 2009 8:16 pm
hi thanks for your reply! ive checked the file and could not see any thing wrong! im also getting these errors:
Code: › [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4209: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4210: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4211: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4212: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1) here is the code from functions.php Code: ›
4209 // application/xhtml+xml not used because of IE 4210 header('Content-type: text/html; charset=UTF-8'); 4211 header('Cache-Control: private, no-cache="set-cookie"'); 4212 header('Expires: 0'); and the only line i have adited in common.php looks like : Code: ›
'GALLERY2' => 'Gallery 2', i have recheck both files and i cant see any thing wrong! any ideas? cheers |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Mon Dec 21, 2009 5:40 pm
I realize I am not helping much but I have the identical error messages popping up. running 3.0.6 PHPBB and Gallery 2. ACP produces the identical errors, but in /adm/index.php instead of functions.php front page of the forum produces errors in functions.php
It may very well be an issue with the common.php file in languages but since the instructions are only to add 1 line to that file... |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
PoPoutdoor
Joined: Jan 20, 2006 Posts: 129
|
Posted: Tue Dec 22, 2009 9:05 am
Undo the edit on common.php, see if the error gone or not.
For errors related to phpbb language file, most will be mistype comma as semi-colon or single-quote/double-quote not match. Please study what the error message shown, you can have quick fix by undoing what changes you made on the file. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Tue Dec 22, 2009 7:12 pm
thanks for your reply
Code: › [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4209: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4211: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4212: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4213: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1) also i have checked and re check functions.php and i cant see any thing wrong! any ideas? thanks |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
PoPoutdoor
Joined: Jan 20, 2006 Posts: 129
|
Posted: Wed Dec 23, 2009 2:57 am
Quote: › (output started at /language/en/viewtopic.php:1)
You can undo this language file edits... may be you don't edit the language files properly... goto phpbb.com and checkout what is needed for the editing of program files. My guess is you have extra space at the beginning of "<?php" tag, or after "?>" tag. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Thu Dec 24, 2009 8:56 am
Seimoor wrote: › I realize I am not helping much but I have the identical error messages popping up. running 3.0.6 PHPBB and Gallery 2. ACP produces the identical errors, but in /adm/index.php instead of functions.php front page of the forum produces errors in functions.php
It may very well be an issue with the common.php file in languages but since the instructions are only to add 1 line to that file... seimoor did you manage is fix this problem? |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Thu Dec 24, 2009 11:52 am
No I have not, actually removed all the integration just to get my forums to work normally and am having to force people to go directly to the gallery instead of having it integrated.
I plan on trying to follow these changes to the install instructions: http://www.nukedgallery.net/postt5374.html and giving it another try but have not had time to go through it all again. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Fri Dec 25, 2009 8:32 am
ok let me know if you have any success
|
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
creampiecastle
Joined: Dec 17, 2009 Posts: 1
|
Posted: Sun Jan 03, 2010 3:13 pm
Hey folks, first time poster here.
SEIMOOR: I was having the same issue. It turned out to be caused by the fact that my free hosting service didn't allow me to change the timelimit variable serverside. It seems unrelated, but I've successfully performed three Gallery2->phpBB3 integrations now, albeit it's been a minute, and there was only this one thing I could to do make the error you're getting go away. I read the countless threads about language files and making sure to save everything in UTF-8 W/O BOM encoding, but none of that mattered. I just spent 15 minutes looking for the file that I modified, but I forget which one it is. It's one of the *.class files in /(install-path)/gallery2/modules/core/classes/, I -THINK-! One of those files, by default gallery2 installation, contained two instances of "SET_TIME_LIMIT". I deleted the two sections of code containing that text, and those errors never came back! Weird, huh? Wouldn't think it would have anything to do with the error that it's giving, but I promise that's how I fixed it. Again, there's a *.class file that, in two different parts, contains the text: set_time_limit. I deleted both sections of code, and everything works like a charm for me. I hope this helps! If I can remember exactly what file it was that I had to edit I'll come back and let you know. (Or if I hose my installation again and have to re-do it |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Tue Jan 12, 2010 12:31 pm
I found set_time_limit in the 'gallery.class' file, deleted the lines but it made no difference at all.
I am starting to wonder if the issue is being caused by some other file that might have been added\changed from when I had gallery integrated with phpbb 3.0.2 before I upgraded to 3.0.6 and performed the integration again. In other words, if I were to do a full clean install of 3.0.6 and gallery 2, then do the integration, perhaps it would all work. I am going to give it a whirl, I'll post back what I find. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Tue Jan 12, 2010 1:07 pm
creampiecastle wrote: › Hey folks, first time poster here.
SEIMOOR: I was having the same issue. It turned out to be caused by the fact that my free hosting service didn't allow me to change the timelimit variable serverside. It seems unrelated, but I've successfully performed three Gallery2->phpBB3 integrations now, albeit it's been a minute, and there was only this one thing I could to do make the error you're getting go away. I read the countless threads about language files and making sure to save everything in UTF-8 W/O BOM encoding, but none of that mattered. I just spent 15 minutes looking for the file that I modified, but I forget which one it is. It's one of the *.class files in /(install-path)/gallery2/modules/core/classes/, I -THINK-! One of those files, by default gallery2 installation, contained two instances of "SET_TIME_LIMIT". I deleted the two sections of code containing that text, and those errors never came back! Weird, huh? Wouldn't think it would have anything to do with the error that it's giving, but I promise that's how I fixed it. Again, there's a *.class file that, in two different parts, contains the text: set_time_limit. I deleted both sections of code, and everything works like a charm for me. I hope this helps! If I can remember exactly what file it was that I had to edit I'll come back and let you know. (Or if I hose my installation again and have to re-do it thanks for that creampiecastle Seimoor did you have any luck? cheers |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Tue Jan 12, 2010 2:38 pm
Installed 3.0.6 phpbb full and get the same errors. No luck. I guess my next step is to try to install completely fresh, new db, new gallery, new phpbb and see if I can get it to work and then try to import all my current albums\forum users\posts etc. big pita really.
As it is, doing an upgrade from 3.0.2 to 3.0.6 appears to totally break the integration. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Tue Jan 12, 2010 6:08 pm
ah dam
|
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Thu Jan 14, 2010 4:18 pm
Well...New install, 3.0.6 phpbb, gallery 2.3.1, new database and...it worked. Everything seems to function fine with no errors. Did not have to edit any class files.
So now I get to migrate my old db\albums in to the new site but, at least I can get the integration to work. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
Seimoor
Joined: Jun 09, 2008 Posts: 7
|
Posted: Thu Jan 14, 2010 6:16 pm
So before I went through the trouble of importing db stuff I tried this one more time and I think I may have figured out the issue. It involves the gallery 2 module still being active in phpbb.
First you are going to need to restore all the files to your install that would have been changed from the integration (e.g. common.php, functions.php, etc - you can leave your style changes in place as well as the newly provided files from the integration, you must be using prosilver) so that you can actually get in to your forum ACP then do the following: Go to the phpbb ACP > System > Under Module Management choose Administration Control Panel > General > Board Configuration and then disable and delete the Gallery 2 Settings module (mine was listed as ACP_Gallery2 for some reason, probably mucked up from all these attempts.) After removing the module, then go back and copy all the changed files over, go back to the modules and re-add the Gallery 2 settings, purge the cache, refresh the prosilver style and...mine started working normally without any errors at all. |
| Author | Message |
| Post Title: Re: [phpBB Debug] PHP Notice: in file /adm/index.php on line | |
gareth_2009
Joined: Dec 18, 2009 Posts: 10
|
Posted: Mon Feb 08, 2010 1:51 pm
i managed to sort the problem by re editing all the files again but this time i used a program called notepad++ now i have no errors
|