Hi,
The site is hosted by a Plesk enviroment which runs linux. bbpress version the latest beta and the current stable one. I intend to integrate it with wordpress but I did’t even get that far.
There are no other errors but that one?
What type of host OS are you using?
What version bbPress did you install?
Are you integrating with WordPress and if so, what version?
I know my config file is right and the database name, user and password are ok. I installed WordPress no problem.
when I go to /bbpress , I get the inital screen where you enter the details but as soon as I went to step 2 I just got a blank screen. As soon as there is a config file I get nothing !!.
I’ve looked in the errors and I see “open_basedir restriction in effect. File(/bb-includes/db.php) is not within the allowed path(s):”
Is open_basedir the problem?
Thanks
Hi there i just installed bbpress 1.0-alpha with wordpress 2.7 everything went great untill i started creating useres.
If you go under admin to the user edit profile page i get this error under user type
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Key Master
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Administrator
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Moderator
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Member
and so on for all user types
this is what i got from line 2021 in functions-bb-template.php
<option value=”<?php echo $r; ?>”<?php if ( array_key_exists($r, $user->capabilities) ) echo ‘ selected=”selected”‘; ?>><?php echo $n; ?></option>
with this error only admin can post comments all other users i guess dont have a type assigned because of this error
wordpress and bbpress our using the same data base, i can login to wordpress and go to bbpress and still be loged in so i know that part works just something with transferring the user type is not working.
Any help would be greatly appreciated
I run phpbb in combination with WordPress. It’s not the best package, but it’s free and looks good .
@sambauers
Yes, I’m viewing that as the Key Master. I’ll run another test with a new user to see what’s happening as well.
@johnjamesjacoby
Yes, this has been a problem since the 2.7/1.0 integration. Registration through bbPress works fine, but that won’t be an option for me once going live.
Update:
I tried adding a user through WordPress, then logging in with that profile in bbPress. No user role was set. Then, I checked it with the Key Master account and got the same error I posted above.
Users are still logged in fine across both installations.
Well I implemented my silly workaround with the conditional in the header and it works;
if this is_bbress -> bbpress search form
else -> wp search form
you get results only for the forum inf you are browsing bbpress and only for wordpress if you are in wp.
Thanks for the code John
Half the results but it actually could solve the 404 problem.
However, adding a get_settings(‘home’) to the search form makes this search;
/wordpress/wordpress/bbpress/?s=
I had in mind that perhaps anybody developed a wordpress plugin that could search both, wp and bb and then display the results, first all the wp entries and next all the bb entries.
Or maybe a conditional in the wp template where I placed wp searcher; first the wp searcher with anything similar to John’s get_settings(‘home’) and then a conditional; if this is bbpress then use bbpress searcher and append the results. I already have a function to create bb conditionals in wp;
function is_bbpress() {
global $bb;
return $bb ? true : false;
}
There is another search plugin for bbPress that appends a WordPress search to the bbPress search.
I wanted all the contrary
a wp plugin that appends bb results at the end of the search.
BTW, after finding the searcher issue I realized that 404 templates need integration too.
Using deep integration, if you load the WordPress search box into the header of bbPress, you can still search WordPress alone if you use something like
<form id="searchform" method="get" action="<?php echo get_settings('home'); ?>">
This way the search form is using the WordPress root directory as it’s destination rather than trying to redirect to a bbPress file.
As far as a unified search solution, the problem there really then becomes which engine do you use to display the results, WP or BBP? Either way it requires a plug-in on that relative side of the equation. It’s certainly possible, but you’re only making 50% of your audience happy at that point, because the other 50% will want it the other way.
There is another search plugin for bbPress that appends a WordPress search to the bbPress search.
https://bbpress.org/plugins/topic/wp-search/
I will eventually add wordpress searching to super-search, I just ran out of time/interest.
You did create the database first, right?
If you already use wordpress, you can look at it’s wp-config.php file to see what settings it uses.
@greenshady
The issue with roles has actually been since I remember integration starting with 2.7/1.0 series. It’s basically because there is no role set and no role map set for the bbPress side of it.
This issue should only occur if the user registers via WordPress. If they register via bbPress, it shouldn’t happen…
…I think…
@fernandot: this worked fine for me. I see the buttons and used them and it works just fine. See my test post. Firefox 3.0.5
http://ayudawordpress.com/foro/
Hi. I still don’t quite familiar with bbPress custom query system. Is there a simple way to pull the latest topics from only specific forums? In WP we can pull posts from several categories using comma separated category IDs in the query. Can bbPress do that?
And if there is, is it possible to pull it from WordPress using bbPress_Live php class in bbpress-live plugin?
Thank you in advance.
Great integration, I like the clean look!
I actually realized that I have a problem when using wordpress searcher after deep integration because it doesn’t work if you are browsing bbpress.
I have wp searcher in the wp header and I load this header into bbpress. Whenever you try to search while being in bbpress yo get a 404 error because the link of the search is this one;
/wordpress/bbpress/index.php?s=lorem
Is there any plugin or anyway that allows wordpress searcher search bbpress topics?
I saw CK super-search plugin but it seems it is only for bbpress
I just checked and I can reproduce that error logged in as Key Master when I go to edit their profile.
If someone registers via WordPress, all the roles show up as:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php on line 2021
Below that, under ‘Allow this user to …’ I get this
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/jorjafox/public_html/forums/bb-includes/functions.bb-template.php on line 2036
It’s not pulling the data correctly, since if I manually set them to Member, it works fine. Previously on 1.0alpha1 and alpha2, when I had users on bb with ‘no’ role, I could re-apply the WordPress Role link up (just click save) and magically everyone was fixed.
Huh. Awesome script, _ck_, you’re a goddess.
Server 1 (my personal site) – average of 0.81909894943 seconds
Server 2 (my busy site) – average of 1.08337402344 seconds
These are on identical Apache servers (actually, server 2 has more memory, but the specs are the same for the servers). Same version of Apache, PHP, SQL etc. Server 2, however, is always slow and pegging the CPU. Even when I turn off WordPress (which my isp blamed at one point) I’m hammering the hell out of the poor box.
The only plugins that are running are:
Akismet 1.0
BBXF Export 0.1 alpha
and I’ve tried deactivating them both…
in the WordPress install the only plugins that I have related to the BBpress install are:
BBPress Integration 1.0-alpha-4.1
BBpress Latest Discussions 0.9
I don’t think the WordPress ones would have any effect on it?
I can’t seem to find the link to the WordPress integration plug in anymore. Sam, where did it go lol!
Well, the best little part about installing bbPress in a sub directory, is that in WordPress if you’re using the pretty permalinks and make a “Forums” page, the slug will be “forums” and when clicked it will just route the users right to the forums instead of to the WP page.
>> bbPress installed in a sub-directory of WordPress
That’s almost cheating, it’s too easy 
You should do it off a different directory from the webroot.
But good idea in general, someone did this awhile back with 0.8 (and then stuffed a bunch of ads in it).
The biggest issue I’m having with this version and the latest version of the WP/BB Integration plugin is that the user roles aren’t being carried over to bbPress when a user registers in WordPress.
They always end up with no role set.
This is the error when editing the user’s profile when no role is set:
<select name="role">
<option value="keymaster"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Key Master</option>
<option value="administrator"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Administrator</option>
<option value="moderator"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Moderator</option>
<option value="member"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Member</option>
<option value="inactive"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Inactive</option>
<option value="blocked"<br />
<b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>/domain.com/forums/bb-includes/functions.bb-template.php</b> on line <b>2021</b><br />
>Blocked</option>
</select>
Aside from this, everything else has been working great for me.