bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Wordpress access to bbPress Functions

(10 posts)
  • Started 1 year ago by pwdrskier4
  • Latest reply from chrishajer
  • This topic is not resolved
  1. I have added:

    require_once('path/to/wp-blog-header.php');

    to my bbPress config file to allow bbPress to have access to wordpress functions. Now I want to do the reverse and add access to bbPress functions in Wordpress. Is there a similar easy way to do this?

    Posted 1 year ago #
  2. Yup.

    require_once('path/to/bb-load.php');

    in your wp config file.

    Posted 1 year ago #
  3. Does this have any effect on the speed wp pages are loaded? When I include this line the pages take about four times as long to load. When I remove it, they go back to normal. Anyway to avoid this drastic slowdown?

    Posted 8 months ago #
  4. I just completed a WP/BB integration and have noticed a speed decrease.

    According to Firebug, most of the delay is in the downloading of the .js ajax components.

    The other thing I noticed is gmt_offset no longer seems to work- the time displayed is always GMT.

    Posted 8 months ago #
  5. You should always evaluate the "need" to run WP with BB at the same time. I don't mean shared login and common cookies which is simple integration, but instead having bbpress load all of wordpress for every page page. That's a HUGE number of files and mysql calls being generated for every page, multiplied by the number of plugins you have with their own mysql stored settings.

    Many times there are ways around loading both at the same time with a few tricks and plugins. If you are on a shared/vps host that's giving you limited resources you may find streamlining absolutely necessary to deal with any bursts in traffic.

    Posted 8 months ago #
  6. I have reverted to straight BBpress. Topic page loads went from 4-6s back to 200ms. The js components, for reasons I do not understand, load much more slowly with a full wp include.

    Posted 8 months ago #
  7. It sounds vaguely to me like a timeout issue, where something in the ajax is waiting for a response from the server.

    It would probably take more debugging time that it's worth, you'd have to watch requests in realtime either from your side through a firewall or from the server side logs (ie. tail).

    I haven't kept up with the ajax changes in wordpress since 2.1 so I have no idea what's going on there - wish I could be more help. Ajax is usually the first thing I gut out of wordpress (and bbpress).

    Posted 8 months ago #
  8. I can live without integration but it would be nice to have shared header and sidebar code. I just wanted to log my observation in case someone else had the same problem.

    I imagine with all the new focus on forum software these issues will eventually get mowed down.

    Posted 8 months ago #
  9. deliciousbass
    Member

    Hi - I'm also trying to add access to bbpress functions inside Wordpress. I took the advice above and added

    require_once('path/to/bb-load.php');

    to my wp config file.

    Now I get the following error:

    Fatal error: Cannot redeclare _http_build_query() (previously declared in /path_to_bbpress/bb-includes/wp-functions.php:768) in /path_to_wordpress/wp-includes/compat.php on line 45

    Any ideas on why I'm seeing this and how to fix?

    Posted 2 months ago #
  10. Did you add that to wp-config.php as the first line, right after the <?php?

    The error cannot redeclare means something has already been included that it's trying to include again.

    http://www.google.com/search?q=Cannot+redeclare+_http_build_query()

    http://bbpress.org/forums/topic/having-trouble-integrating-wp-functions

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.