wordpress integration
-
hi at all, i want to integrate bbpress and wordpress, i put “require_once(dirname(__FILE__) . ‘/../wp-load.php’);” in my bb-config.php but the retrn is a blank page, bbpress is in a folder inside wp folder.
where is the problem?
thank at all
kikko088
-
wp-load.php is just a file that contains WordPress code and doesn’t echo anything.
If it’s returning a blank page, I think that means you’re getting a Internal Server Error code 500. If you take that line out, can you use bbPress?
Sometimes it’s a plugin in bbpress or wordpress that causes that. usually a cache program
Plugins can cause that, timeout issue, memory limit but I would suggest that try this code for deep integration
/* Deep integration */
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}and remove your line of code which includes
wp-load.php
nothing, I try to add also this line but nothing… clean install of bbpress and 0 plugin wp.
my bb-config.php
<?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
*/
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for bbPress */
define( ‘BBDB_NAME’, ‘mio’ );
/** MySQL database username */
define( ‘BBDB_USER’, ‘root’ );
/** MySQL database password */
define( ‘BBDB_PASSWORD’, ‘root’ );
/** MySQL hostname */
define( ‘BBDB_HOST’, ‘localhost’ );
/** Database Charset to use in creating database tables. */
define( ‘BBDB_CHARSET’, ‘utf8’ );
/** The Database Collate type. Don’t change this if in doubt. */
define( ‘BBDB_COLLATE’, ” );
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( ‘BB_AUTH_KEY’, ‘put your unique phrase here’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘put your unique phrase here’ );
define( ‘BB_LOGGED_IN_KEY’, ‘put your unique phrase here’ );
define( ‘BB_NONCE_KEY’, ‘put your unique phrase here’ );
/**#@-*/
/**
* bbPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$bb_table_prefix = ‘bb_’;
/**
* bbPress Localized Language, defaults to English.
*
* Change this to localize bbPress. A corresponding MO file for the chosen
* language must be installed to a directory called “my-languages” in the root
* directory of bbPress. For example, install de.mo to “my-languages” and set
* BB_LANG to ‘de’ to enable German language support.
*/
define( ‘BB_LANG’, ” );
require_once(dirname(__FILE__) . ‘/../wp-load.php’);
OR
(
/* Deep integration */
if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’)) {
define(‘WP_USE_THEMES’, false);
include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );
header(“HTTP/1.1 200 OK”);
header(“Status: 200 All rosy”);
}
)
?>
I I’m not expert on php, I add correctly the line?
Add the code just after this :
<?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
*/@Ashfame wp-blog-header.php versus wp-load.php. https://bbpress.org/forums/topic/topic-tags
nothing…always blank page…uff….i find also this line
require_once( dirname( dirname( __FILE__ ) ) . ‘../wp-blog-header.php’ );
define(‘WP_BB’, true);
but nothing…blank page…grrr
kikko088
wp-blog-header.php
loadswp-load.php
&template-loader.php
I think if we are not going to use WordPress themes in bbPress then we can use wp-load.php but I think wp-blog-header.php won’t hurt.
Your link looks interesting, I will have to see.
it workkkkkk!! the problema was wordpress 3.0! with wp 2.9 is all ok!
I’m having a similar problem when I try calling
require_once(dirname(__FILE__) . '/../wp-load.php');
so I can bring my theme into bbpress.This is a WP 3.0 multiuser site on subdomains. The funny thing is I’ve had this working on test sites using WP 3 single user and WP 3 multiuser on subdirectories.
Is there something about it being on subdomains that might cause this? Might differences in the WP .htaccess file cause it?
Try this tutorial of mine – http://wpwebhost.com/make-bbpress-theme-match-with-wordpress-by-deep-integration/
I’m kind of embarrassed so I would be inclined to delete the above post, but in the interest of informing the community I’ll leave it intact.
After updating my wordpress install it’s now working. So it would seem that bbpress plays nicely with the most current WP 3 iteration
disposable tattoo tips tattoo starter, tattoo equipment kits.
- You must be logged in to reply to this topic.