outshine.com Forum Index outshine.com
feedback on the poetry, PHP code, Perl code, etc.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Please read before posting.

Including the blog on an existing page?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Home -> Forums -> phpBB Blog & phpBB Podcast -> Including the blog on an existing page?
View previous topic :: View next topic  
Author Message
godbringer
Drive-By Poster


Joined: 29 Sep 2004
Posts: 2

PostPosted: Saturday, 02 October 2004, 02:54    Post subject: Reply with quote

thx aboyd Smile

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
View user's profile Send private message
lebachai
Drive-By Poster


Joined: 06 Jun 2005
Posts: 4

PostPosted: Monday, 06 June 2005, 10:45    Post subject: How I fixed this problem Reply with quote

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
View user's profile Send private message
Achilles
Drive-By Poster


Joined: 21 Mar 2006
Posts: 8
Location: Southern New Hampshire

PostPosted: Tuesday, 21 March 2006, 20:59    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Achilles
Drive-By Poster


Joined: 21 Mar 2006
Posts: 8
Location: Southern New Hampshire

PostPosted: Wednesday, 22 March 2006, 19:01    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
DaDrake
Drive-By Poster


Joined: 20 May 2006
Posts: 1

PostPosted: Wednesday, 24 May 2006, 14:47    Post subject: Same problem Reply with quote

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
View user's profile Send private message
chingching
Drive-By Poster


Joined: 16 Dec 2006
Posts: 1

PostPosted: Saturday, 16 December 2006, 08:08    Post subject: seems a tuff nut to crack. i get both errors. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Home -> Forums -> phpBB Blog & phpBB Podcast -> Including the blog on an existing page? All times are GMT - 8 Hours
Goto page Previous  1, 2, 3
Page 3 of 3


Jump to:  
Login or register to post new topics
Login or register to reply to topics
Login or register to edit your posts
Login or register to delete your posts
Login or register to vote in polls

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../../../../../../../ad_network_ads_441.txt) is not within the allowed path(s): (/home/outshine:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/outshine/private_html/digitalpoint_ad_network.php on line 38
You must set the ad_network_ads_441.txt file to be writable (check file name as well).


Powered by phpBB © 2001, 2005 phpBB Group