| View previous topic :: View next topic |
| Author |
Message |
godbringer Drive-By Poster
Joined: 29 Sep 2004 Posts: 2
|
Posted: Saturday, 02 October 2004, 02:54 Post subject: |
|
|
thx aboyd
I am currently re-installing everything and starting from scratch, so I will keep this thread marked and hopefully all my brand-new untainted files will do the trick!
thx a mil for everyone's help!
|
|
| Back to top |
|
 |
lebachai Drive-By Poster
Joined: 06 Jun 2005 Posts: 4
|
Posted: Monday, 06 June 2005, 10:45 Post subject: How I fixed this problem |
|
|
I was also getting the error in line 404. The problem lies here: | Code: | if (!$result = $db->sql_query($sql)) {
message_die(GENERAL_ERROR, 'Querying the database didn\'t work. Feeling helpful? Email the webmaster.');
} |
I did two things to fix this:
1) I moved the entire blog outside of the forum directory and changed the paths in settings.php accordingly.
2) More importantly, I realized that the problem was a conflict in variable names. Something else I was running was using the same names: either $db, $result or $sql. It turned out to be a bit of code I picked up as a phpBB hack that shows the most current posts on your homepage. I went into that script and, anywhere that these three variable names appeared, simply changed "$db" to "$db2," etc (and did the same for the other two variables). DON'T MAKE THESE CHANGES TO phpBB Blog docs!!
This solved the problem for me. Hope it helps someone else!
|
|
| Back to top |
|
 |
Achilles Drive-By Poster
Joined: 21 Mar 2006 Posts: 8 Location: Southern New Hampshire
|
Posted: Tuesday, 21 March 2006, 20:59 Post subject: |
|
|
I hate to bring this post back, but I am having the same issues with the headers:
| Code: |
Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/!newsite/index.php:1) in /home/bored/public_html/phpBB/includes/sessions.php on line 258
Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/!newsite/index.php:1) in /home/bored/public_html/phpBB/includes/sessions.php on line 259
|
As you can see though, the include is the very first line in the page and there are also no other includes in the page. I'm not sure how to fix this one, some help would be great.
Thank you
|
|
| Back to top |
|
 |
Achilles Drive-By Poster
Joined: 21 Mar 2006 Posts: 8 Location: Southern New Hampshire
|
Posted: Wednesday, 22 March 2006, 19:01 Post subject: |
|
|
nevermind, I think I got it. It didn't appear I had any spaces before the <?php part but using a differant editor (notepad and not notepad++) I did have one so it was messing with it. 
|
|
| Back to top |
|
 |
DaDrake Drive-By Poster
Joined: 20 May 2006 Posts: 1
|
Posted: Wednesday, 24 May 2006, 14:47 Post subject: Same problem |
|
|
I decided to use fetch_all for the login portion of my website... but really want to continue to use phpbbblog. Above is a "fix" about renaming variables.... but it did not say where to rename them. I assume he ment the phpBB sessions file, but when I tried that... still didn't work.
What is the best way to fix this?
Warning: Cannot modify header information - headers already sent by (output started at /homepages/17/d128002073/htdocs/index.php:123) in /homepages/17/d128002073/htdocs/phpBB2/includes/page_header.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /homepages/17/d128002073/htdocs/index.php:123) in /homepages/17/d128002073/htdocs/phpBB2/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /homepages/17/d128002073/htdocs/index.php:123) in /homepages/17/d128002073/htdocs/phpBB2/includes/page_header.php on line 486
|
|
| Back to top |
|
 |
chingching Drive-By Poster
Joined: 16 Dec 2006 Posts: 1
|
Posted: Saturday, 16 December 2006, 08:08 Post subject: seems a tuff nut to crack. i get both errors. |
|
|
If i make a php file like this::::
*******************************
<?php
include '../phpbbblog/blog/index.php';
?>
*******************************
it works, (but only if nothing above that line)
like this:
*******************************
<?php
include '../phpbbblog/blog/blog.php';
?>
*******************************
I get:
Fatal error: Call to a member function on a non-object in /home/mace/public_html/phpbbblog/blog/blog.php on line 104
|
|
| Back to top |
|
 |
|