Skip to:
Content
Pages
Categories
Search
Top
Bottom

Call wordpress functions in bbpress

  • I have search the forum and find there is a slolution like this

    put following code in to bb-config.php

    Code:
    require_once(‘path/wp/wp-blog-header.php’);

    that I can call wordpress functions in bbpress template

    but once I add the line to bb-config.php . The homepage of the forum became a blank page. no html , no error hints, just a blank page

    I am sure the path to wp-blog-header.php is correct . I do not know what happend and how to fix .

    The wordpress version is 2.91 and the bbpress is 1.02 .

    Thank you for your help

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

  • chrishajer
    Participant

    @chrishajer

    If you’re getting a blank screen, it’s likely a 500 Internal Server Error. If you have access to logs you will be able to resolve this.

    Where did you put that code? It should start at the 2nd line of bb-config.php, right after the opening <?php. If not, use a syntax highlighting editor to see what’s going on with the bb-config.php file.

    I have tried to add the require at the second right afer <?php

    here it is

    <?php

    require(‘../wp/wp-blog-header.php’);

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    I also tried the last line , neither of them works :-(

    I have tried to access the log and there is no error log on this issue .

    The programm exit noramlly ,just output nothing

    I have tried to echo chars at the botom of the bb-config.php and the chars has been output with out any problem

    Thank you , any help is apprecitated :-)

    I have resolved it . My client upload two copies of one plugin that the plugins conflicts with itself .

    Any way , Thanks for your help

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

You must be logged in to reply to this topic.