Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal error: Call to undefined function get_forums()


  • raffaele@posticchiasabelli.com
    Member

    @raffaeleposticchiasabellicom

    “Fatal error: Call to undefined function get_forums() in public_html/bbpress/index.php on line 11″

    I am new to bbPress and new to WP as well…was trying to integrate WP and bbPress. After integration everything seemed to work perfectly, than I tried to follow this…

    “Functions

    bbPress will not have access to WordPress’ functions unless you manually tell bbPress to load WordPress first. In order to do that, you need to put require_once(‘path/to/wp-blog-header.php’); in bbPress’ bb-config.php (wp-blog-header is in the same directory as WordPress’ wp-config.php file).

    Doing this will add quite a lot of weight to your bbPress installation as it will cause WordPress to load in it’s entirety. Your best option is to try to emulate the functionality you require inside a bbPress plugin.”

    Putting:

    “require_once(‘../wp-blog-header.php’)

    but the Fatal Error occurred.

    Any suggestions?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

  • chrishajer
    Participant

    @chrishajer

    You probably have the path to the wp-blog-header.php wrong. You can try the full path there in the bb-config.php or you can verify that the relative path is actually correct. You may need to do something like ../wordpress/wp-blog-header.php if your WordPress installation is in a folder on the same level as bbpress. It’s easy to figure out if you have a command line. If not, if you can describe your directory structure, someone can help you with the path to wp-blog-header.php.


    raffaele@posticchiasabelli.com
    Member

    @raffaeleposticchiasabellicom

    ok…

    http://holstein.it/bbpress/

    http://holstein.it/

    Now bbPress and WP are integrated…how to customize look? Is there a way to have bbPress looking like WP theme?


    chrishajer
    Participant

    @chrishajer

    Looks like you’re close already. You need to do some CSS work in style.css for your bbPress template. Just take one thing at a time. It’s probably paths to images and things like that that need to be adjusted.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.