When you are doing “require_once” you need to give it a filesystem path, not a URL.
So what is the full path to the file you want to include? That’s what your should use if you cannot figure out the relative path.
tried doing an absolute path and got this error:
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/xxxx/public_html/forum/bb-config.php on line 70
Warning: require_once(http://www.xxxx.com/home/xxxx/public_html/blog/header.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/xxxx/public_html/forum/bb-config.php on line 70
Fatal error: require_once() [function.require]: Failed opening required ‘http://www.xxxx.com/home/xxxx/public_html/blog/header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxx/public_html/forum/bb-config.php on line 70
trying to integrate bbpress to use my wordpress theme… but running into problems. when i put the code into the bb.config file
require_once(‘../blog/header.php’);
if (file_exists(‘../blog/header.php’))
require_once(‘../blog/header.php’);
else
if (file_exists(‘../../blog/header.php’))
require_once(‘../../blog/header.php’);
it stacks the path on top of the forum path instead of where it belongs… giving me the error:
Warning: require_once(../blog/header.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxx/public_html/forum/bb-config.php on line 70
Fatal error: require_once() [function.require]: Failed opening required ‘../blog/header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxx/public_html/forum/bb-config.php on line 70
has anyone else had this problem… and can you share how to fix it?
I’m using the method of replacing the header.php file content with <?php get_header(); ?> and the footer with <?php get_footer(); ?> if there is a better way of going about this, I’m open so please share 
thanks!
You need to use a table prefix for the database for integration between WordPress and bbPress to work. I’m not sure how to get around that now that you are already using WordPress without a table prefix.
One question per topic please.
@Rich Pedley
Nonetheless, I hope this causes action on Matt/Auttomatic to take bbPress more seriously.
I am helping a friend get bbpress installed with his wordpress site at http://www.sealgrinderpt.com and http://www.sealgrinderpt.com/forums.
I have it installed. I have added a link on home page to get to the forums.
My wordpress integration seems to not be working. He has an admin account on wpress that is not recognized on the forums. I created an default admin account in the bbpress installation. That account is not recognized when logon to wpress. The wp_config file does not have a $table entry so wondering if that is my downfall on the integration.
Next question is how to get the header and look and feel of wpress site to carry over to the forum? I want at least the logo at top and the navigation menus.
Thanks for help on these 2 issues. I am sure I will have more as I work on this site for my friend. Thanks in advance for all of the assistance.
Jennifer
not everyone likes the approach used. Not everyone wants voting, and it isn’t always suitable.
Everyone knows that the forums at WordPress are powered by bbPress.
And for any technology, the ultimate insult that your software has died is when someone comes in behind you to create a new system to replace your failing system.
Well, that just happened with bbPress !!!
Joel Spolsky has released StackOverflow to replace the current WordPress forums (powered by bbPress)
http://joelonsoftware.com/items/2010/08/31.html
I hope MATT and others take notice and get serious about bbPress. It’s embarrassing that Joel has to call out all of the missing features and functionality and support of bbPress in his article (even though he doesn’t call out bbPress directly).
MATT, please take this as a major cause of action to improve bbPress.
wp_ = wordpress
wp_bb_ = bbpress
admin ID = 1
wp_usermeta:
1 wp_capabilities = a:1:{s:13:"administrator";b:1;}
1 wp_bb_capabilities = a:1:{s:9:"keymaster";b:1;}
logout, login.
I’ve just placed the bbpress folder in my root wordpress directory of my site. I would like to integrate the two. Does it matter where I place the bbpress folder?
As soon as I navigate to the bbpress folder, I’m seeing the following error messages at the top…
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressbbpressbb-settings.php on line 186
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressbbpressbb-includesbackpresspomomo.php on line 171
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressbbpressbb-includesfunctions.bb-l10n.php on line 484
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocswordpressbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581
Log out of WordPress, and log in to bbPress and you should have the admin link, if the user you log in to bbPress with is the keymaster.
Hi all…I have used wordpress(3.0.1) for quite some time and I’m using bbpress(1.0.2) for the first time. I’m having hard time integrating the two.
I can login to bbpress and wordpress using the same ID and password, however, when I login to wp I get logged out from bbpress and when I login to bbpress, I get logged out from wp. Seems like cookie problem?
Any help is much appreciated!
I think that these are no longer published. September 15 bbPress comes as an additional part of WordPress with plugin.
Hi All,
I’m new to bbpress and wordpress. I installed both on Plesk with mysql and php. I configured Cookies and Salt settings and both share same db. however, when I login to wordpress as a subscriber, I logged out of bbpress as a member. However, I can login to both site using same user id and password but when I login to one, I get logged out from the other. I’m really confused!! Please help!!
Thanks for the screenshots, those are perfect. There doesn’t seem to be anything weird with the .htaccess or permalinks settings, and it looks like you are accessing the proper directory.
As the other thread mentioned, there were public HTML files in two locations on the server, and that poster had installed into a directory that was not being served, making it look like the files were not there.
One thing that is probably unrelated – the forum files have loose permissions. The directories have 775 and they should be 755, and the files (php, css, js, images) should have 644, but they have [edit] 664. Should not matter, but some hosts won’t serve content when the permissions are too permissive.
Please do a test. Put a html file in the WordPress root (where the forum directory is located) and see if you can access it at http://klinewedding.com/test.html. If that comes up, put another file in the forum directory, and see if you can access that at http://klinewedding.com/forum/test-2.html. That will ensure we are looking at the correct directories. The file can be as simple as this:
<html><head><title>WordPress test</title></head><body><p>Test WordPress</p></body></html>
Save that as test.html in the WordPress root. See if you can access it by URL. Then try the same in the forum directory.
one of the sitemap pluggins i tried needs to be configured in the php, they’re not as straigthforward as the wordpress one so i can imagine lots of people having problems in setting them up, but i had no problems untill i activated the nicer permalinks pluggin
one of them needs another pluggin to work properly and some people might not notice it in the description (2nd one in the screenshot), im using the bbpress sitemap generator (1st one in the screenshot)
heres the screenshot
http://img828.imageshack.us/img828/6827/sitemap.jpg
i got it. The problem was that I was trying to istall through the wordpress plugin folder, then activate in the admin. DUH
Now that I know it is a stand alone, the vague instructions make more sense.
Thanks for your help.
https://bbpress.org/documentation/installation/
2- Upload the uncompressed files to your server
to vague for a newbie, when i first used a ftp program years ago to install wordpress i thougt “so many directories…where on heart i’m supposed to put wordpress?”
it takes times to learn…
Thanks. I thought it was a wordpress plugin. Does it have its own admin or can you run it through wordpress?
bbPress is not a WordPress plugin but it’s a standalone software.
I do not see a clear step by step list of instructions on how to do this. Anyone?
https://bbpress.org/documentation/installation/ on this site.
you have to upload the bbpress folder to the server root where the wp-config.php file is along with all 3 wordpress directories, upload it there and then visit
http://www.mydomain.com/bbpress
Where do I place the bbpress folder after I download.
I thought it would go into the plugins folder within my current wordpress install. Nothing is showing up inside wrodpress admin. Please help.
Do I have to go to a unique URL to active something. http://www.example/com/blog/wp-content/plugins/”example”
I do not see a clear step by step list of instructions on how to do this. Anyone?
I have never used bbpress before and would appreciate any feedback.
Thanks
Thank you for the replies.
Here is a Filezilla screenshot showing my WordPress root directory (also the root directory of my site), with the subdirectory “forum” being the directory with the bbpress files:
http://klinewedding.com/images/wp_root.jpg
And here is what my forum (bbpress) directory looks like:
http://klinewedding.com/images/bbpress_install.jpg
Here are my WordPress permalink settings:
http://klinewedding.com/images/permalink_settings.jpg
And here is my .htacess file:
http://klinewedding.com/images/htaccess.jpg
The odd thing is that I got BBPress up and running a few weeks ago on another site (on another host) just fine. I figure it’s got to be that I’m doing something stupid, or this host has something strange with their settings.
Thanks again for your help.
bb-lover, I closed your topic because it is WordPress specific and asking _ck_ for help specifically. You should post at wordpress.org or any of the other WordPress-specific help sites, or try contacting _ck_ directly at her site bbshowcase.org.
Closing this topic because it too has turned WordPress-specific as well.