Info
- 5 posts
- 2 voices
- Started 2 years ago by roamfox
- Latest reply from roamfox
- This topic is resolved
Call wordpress functions in bbpress
-
- Posted 2 years ago #
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');
[/code]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
-
- Posted 2 years ago #
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. -
- Posted 2 years ago #
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 :-(
-
- Posted 2 years ago #
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 :-)
-
- Posted 2 years ago #
I have resolved it . My client upload two copies of one plugin that the plugins conflicts with itself .
Any way , Thanks for your help
-
You must log in to post.