Jump to content


Photo
- - - - -

bbpress deep integration


  • Please log in to reply
24 replies to this topic

#1 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 05:39 PM

Hello, I am having trouble getting my wp installation and my bbpress forum to deep integrate. here is the code I used. require_once(dirname(__FILE__) . '/home/mnewton/public_html/wp-load.php'); here is the error I receive. Warning: require_once(/home/mnewton/public_html/forum/home/public_html/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/mnewton/public_html/forum/bb-config.php on line 66 Fatal error: require_once() [function.require]: Failed opening required '/home/mnewton/public_html/forum/home/public_html/wp-load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mnewton/public_html/forum/bb-config.php on line 66 Can you help?

#2 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 07:50 PM

looks like the file path is wrong. Try using the full absolute url (http:// etc.)

#3 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 08:13 PM

Thank you for the quick reply! Here is what I put in... require_once(dirname(__FILE__) . 'http://specialneedsconnections.com/wp-load.php'); This is the error.. Warning: require_once(/home/mnewton/public_html/forumhttp://specialneedsconnections.com/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/mnewton/public_html/forum/bb-config.php on line 66 Fatal error: require_once() [function.require]: Failed opening required '/home/mnewton/public_html/forumhttp://specialneedsconnections.com/wp-load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mnewton/public_html/forum/bb-config.php on line 66

#4 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 08:21 PM

oh sorry, take out the dirname like this:

Please Login or Register to see this Hidden Content



#5 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 08:34 PM

Now it doesn't display an error but it does this....

Please Login or Register to see this Hidden Content



#6 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 08:42 PM

Have you tried this way, (from the docs): so if your bbPress folder is directly inside your WordPress folder, the command becomes require_once(dirname(__FILE__) . '/../wp-load.php');) This is probably the one your looking for.

#7 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 09:02 PM

Got it, now we're getting somewhere! When I go there now all that I see is a blank page. No errors though.... How do I go about fixing that?

#8 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 09:19 PM

So you have installed bbpress correctly and it was working but but only found errors after trying to deep integrate?

#9 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 09:24 PM

Correct, I was able to have full access until I switched to pagelines bbforum theme and added the line of code that we have been talking about. The cookie integration was just fine as well. Now it is still just a blank page that comes up. :

#10 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 09:50 PM

Correct, I was able to have full access until I switched to pagelines bbforum theme and added the line of code that we have been talking about. The cookie integration was just fine as well. Now it is still just a blank page that comes up. :

#11 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 09:54 PM

Sorry I didn't mean to send that twice.

#12 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 10:52 PM

. If you deactivate the pagelines bbforum theme does it work?

#13 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 10:59 PM

No I still cannot get it to load the page. It still seems to be a blank page when going there.

#14 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 11:00 PM

If you deactivate the theme and also remove the line what do you see?

#15 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 11:03 PM

It works.

#16 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 11:03 PM

That was the reason I bought the PageLines platform was for the BBPress Forum.....

#17 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 11:04 PM

and your adding the line at the very top of bb-config.php?

#18 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 11:09 PM

Yes I have tried both ways top and also the bottom before the language tag

#19 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 13 May 2011 - 11:14 PM

It needs to be at the very top and also within <?php ?> tags. So either wrap it in those tags or put it somewhere below the first <?php , but above everything else.

#20 mnewton0702

mnewton0702

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 13 May 2011 - 11:28 PM

Gotcha. As soon as I am back home I'll give it a try if I have an issue I'll repost. Thank you so much for your help thus far.