| :: |
| Author |
Message |
Bandit
Joined: 24 Mar 2008 Posts: 4
|
Posted: Tue Mar 25, 2008 5:28 am Post subject: PHP Notice: SOLVED !! |
|
|
56 year old, with no programing edu. needs a little help. I've tried to find the answer to my problem by reading all the topics/posts,..but no one seems to have had this problem before.
1) My forum has been upgrade from phpbb 2.0.22 -> Fresh install of phpbb3. (gold), then imported database.
2) No mods installed
3) 2.0.22 forum was located in the directory of -http://www.example.com /phpbb2
4) 3.0 is installed at this location -http://forums.example.com
5) Installed Advanced SEO mod re-write (seems to be working)
6) Tried to install SEO-zero-dupe and I get the errors below as soon as I load the modded files.
Errors once Zero-dupe installed
| Quote: |
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3432: Cannot modify header information - headers already sent by (output started at /phpbb_seo/phpbb_seo_class.php:1399)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3434: Cannot modify header information - headers already sent by (output started at /phpbb_seo/phpbb_seo_class.php:1399)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3435: Cannot modify header information - headers already sent by (output started at /phpbb_seo/phpbb_seo_class.php:1399)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3436: Cannot modify header information - headers already sent by (output started at /phpbb_seo/phpbb_seo_class.php:1399) |
my .htaccess
| Quote: |
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forums/forum\.html$ /forums/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forums/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^forums/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^forums/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^forums/member([0-9]+)\.html$ /forums/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^forums/messages([0-9]+)(-([0-9]+))?\.html$ /forums/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^forums/group([0-9]+)(-([0-9]+))?\.html$ /forums/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^forums/post([0-9]+)\.html$ /forums/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^forums/the-team\.html$ /forums/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^forums/[a-z0-9_-]+(-([0-9]+))?\.html$ /forums/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
|
Last edited by Bandit on Sun Mar 30, 2008 2:57 pm; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 707
|
Posted: Thu Mar 27, 2008 12:18 pm Post subject: Re: PHP Notice: SOLVED !! |
|
|
What is around this code?
| Code: | | [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3432: |
The error you received occurs when code tries to set the HTTP header information after some code has already started outputting the page content. Usually it's leftover debug code. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
Bandit
Joined: 24 Mar 2008 Posts: 4
|
Posted: Thu Mar 27, 2008 1:13 pm Post subject: Re: PHP Notice: SOLVED !! |
|
|
Honestly, I have no clue of what you just replied. I guess I'm to far along in years ,..with to little education to be trying this project.
But, I still want to THANK YOU for your reply & time.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13031
|
Posted: Sat Mar 29, 2008 6:30 pm Post subject: Re: PHP Notice: SOLVED !! |
|
|
If there is nothing before the error lines you posted, it most likely means that you added a white space char before <?php or after ?> within one of the php file you modded (some dumb text editors do add a white space by default at the end of all edited files).
The line mentioned in the error message you get only refers to where the regular phpBB page outputs starts, it sends an error because the output started before this, which should never be the case. Anything including white spaces outsides the php tags in a php file will be outputted as is by php, thus sending headers to start the output.
Since the zero duplicate requires to be activated in acp before it will do anything, the fact you get errors right after you upload the modded file suggest you did something wrong when modding the files.
So, try to see if this occurs on all pages or only on specific ones, could narrow the code to check. And, do not hesitate to set up a local test server to only upload modded files once you've checked that everything worked on the local one. It's far from time lost
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Bandit
Joined: 24 Mar 2008 Posts: 4
|
Posted: Sun Mar 30, 2008 5:35 am Post subject: Re: PHP Notice: SOLVED !! |
|
|
Thank You dcz
I will remod a new set of files and check as you suggested.
Thanks again |
|
|
| Back to top |
|
 |
Bandit
Joined: 24 Mar 2008 Posts: 4
|
Posted: Sun Mar 30, 2008 3:04 pm Post subject: Re: PHP Notice: SOLVED !! |
|
|
Problem solved !!
in my phpbb_seo_class.php file I had extra space/line at the end of the php file.
wrong
***************
Line # 1394: // <-- Zero Duplicate
Line # 1395: } // End of the phpbb_seo class
Line # 1396: ?>
Line # 1397:
correct
***************
Line # 1394: // <-- Zero Duplicate
Line # 1395: } // End of the phpbb_seo class
Line # 1396: ?>
Thanks for the help.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13031
|
|
| Back to top |
|
 |
|
|