Checking my website access logs and there are a lot of internal server errors referencing:
PHP Warning: in_array() expects parameter 2 to be array, null given in /home/munson/public_html/musiclibraryreport.com/wp-content/plugins/bbpress/includes/common/functions.php on line 1155
Line 1155: `if ( in_array( ‘post_parent__in’, $wp->private_query_vars ) )
return $where;
`
Using 2.2.4 version. Website is http://www.musiclibraryreport.com. Any insight is appreciated.
Thank you
I don’t really understand PHP all that much at the moment, though I am learning. From what I do know, I was able to figure out how to display the user’s URL by making a /bbpress folder in my theme’s root and copying over the user-profile.php file. And then I added this underneath the user description section:
[sourcecode language=”php”]
<a href="”>
[/shortcode]
Though, I’m sure there must be a shorter way of turning text into a link?
Anyways, I wasn’t able to find any function for the other fields under ‘Contact Info,’ which makes me wonder if those are coming up under some other plugin.
Its a bit hard to see what changes you made… If you think others would benefit from this create a ticket in trac and add your code as a patch https://bbpress.trac.wordpress.org/
any idea on how to replicate getting it to work..?
thanks. 🙂
Hi @julienborne, did you ever manage to find a fix for this?
I’ve got the same thing with my site.
Regards
I would like to make my forums full size. Anyone know how to do that?
I managed to get rid of my forum sidebar with the following css code:
body.bbPress #sidebar {display:none;}
.bbp-forums, .bbp-forums td, .bbp-forums th {
text-align: left;
width: 100%;
}
.bbPress .inner-content {
margin: 0;
width: 960px;
}
No, not for me. Although, it might have remembered my settings for the previous activation and setting saving…
bbPress 2.2.4 is still adding network users as participants to the main site no matter if auto role is enabled or disabled.
sontru – i tried this and it seems it is still adding network users to the main site no matter if auto role is enabled or disabled. you aren’t seeing this?
thanks.
Well… I must have missed the “Attempt to import user accounts” option. I could have swore I selected it! But because I was running into issues with the table prefix, I must have forgotten once I actually got it right.
So I’ve re-imported everything and all the users are included. I also ran the forum repair tools, but there’s still no subcategories showing up on the home page. When I “view” them in the backend, the subcategories are showing up and I can navigate the posts within the subcategory. The post count is counting the posts in the subcategories, they aren’t visible on the home page…
Thank you for your answer.
That’s not the case and that’s my problem. I have access to WP admin panel, but only for Topics and Replys. To be sure I made a new local site with just WordPress and BBPress installed, one user Keymaster and it’s the same thing, not any forum panel. I’m running the french version of WP and BBPress, I don’t think that changes something but I’m gonna try with the EN version to be sure.
I’ve slightly modified the bbpress/includes/common/widgets.php file to have an option to show latest posts, not only replies. Curiously, it was half implemented, but not ‘usable’. I don’t know if it has already been done elsewhere as it’s my first post here… Here’s the file, as I can’t post code on the forum %( : http://pastebin.com/PYkmNqQC
Hey all..
Rather new to BBpress.. Now what i want to do seems so easy with other forum software so i don’t see why i am struggling to get my head around this.. Anyways what i want to do is this:
– mysite.com <– Showing a few "Latest news" posts and other custom stuff including "Recent Forum Topics" etc etc
– mysite.com/forums/ <– Custom Forum Page, basically i want to display several forums under a few different "Forum Categories" like using a header image / background for each different category
I would also like to use forum icons.. (not really worried about "Topic Icons") I basically want a layout that looks like the following:
=================================
Category Title #1
=================================
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
=================================
Category Title #2
=================================
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
=================================
Category Title #3
=================================
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
[Forum Icon] | [Forum Name] | [Number of Forum Topics] | [Number of Forum Views]
Sorry for the lack of detail lol.. Anyways… What is the best way to create a custom forum page like displayed above ?? What template should i edit as the main /forums/ Template ??
Really do appreciate any assistance on this one.. I am even willing to release a complete WP with full BBpress support if anyone can help me get this configured as i need / as stated above.. If any exp BBpress coders can assist me with this when i launch my project i am more than happy to give your service a plug / backlink from my website.
I am trying to launch my project in about 2 weeks.. Now as i am losing a lot of time with this i am opening to hiring someone to assist me if no one is kind enough to help me out for free.
Regards, Darren
1.) It doesn’t appear that any users where transfered. Every post in the forum has “Admin” as the author and I don’t see any users listed in the backend.
Did you check the box `Convert Users: Attempt to import user accounts from previous forums`
2.) I don’t see any of my subcategories listed on the forum home page. When I view the forum structure in the backend, it shows all the subcategories and the data was definitely imported, but it’s not showing up on the forum home page…
Did you run the forum repair tools? https://codex.bbpress.org/repair-forums/
Can you view each subcategory forum by viewing the forum in the backend and clicking ‘view’ on that item taking you to the frontend view for that forum? Does it exist?
OK… I’ve got most of the bbPress1 data imported into the new BBPRESS plugin, but I have two problems:
1.) It doesn’t appear that any users where transfered. Every post in the forum has “Admin” as the author and I don’t see any users listed in the backend.
2.) I don’t see any of my subcategories listed on the forum home page. When I view the forum structure in the backend, it shows all the subcategories and the data was definitely imported, but it’s not showing up on the forum home page…
Hopefully these issues can be remedied. I need all the user info, and I need these subcategories. Unfortnately, my old bbPress1 site is getting overloaded with SPAM and keeps getting hacked. I need to upgrade to something that’s fully supported and more stable… so I hope I can make this work…
Thanks again!
I believe you can add a shortcode to a page:
[bbp-topic-index]
It’s in the codex here:
https://codex.bbpress.org/shortcodes/
You should have access to the wp-admin panels when user role is ‘Keymaster’.
The ‘Moderator’ role though outlined here only has the following permissions:
Moderator – Forum Capabilities: publish_forums, edit_forums, read_private_forums, read_hidden_forums
At this stage Moderators cannot see to wp-admin ‘Forums’ panel though it is planned for a future release.
The workaround at the moment is to indeed use the ‘forum’ shortcodes.
Have to you tried the bbPress Widgets?
https://codex.bbpress.org/widgets/
Can you create a ticket in trac please: https://bbpress.trac.wordpress.org/
(Use the same bbpress.org user/pass to log in)
It will be much easier for us to track this there rather than here.
Also include as much information (Your URL structure for your site etc.) as you can and steps to reproduce the problem so we can setup the same to test it.
I tried to reproduce your issue but cannot, are you using any plugins that might cause this to be alter from the default WordPress 3.5.1 & bbPress 2.2.4/2.3 behaviour?
Create a user `1 2 3` via WordPress /wp-login.php?action=register
`ERROR: This username is invalid because it uses illegal characters. Please enter a valid username.`
Create user `1 2 3` via bbPress widget/page template (page-user-register.php)
`Registration complete. Please check your e-mail.`
Confirmation email with username and password
Username:`1 2 3`
Via /wp-admin/user-edit.php user details are:
Username: `1 2 3` Nickname: `1 2 3` Display Name:`1 2 3`
Via phpMyAdmin `wp_users` database table:
user_login:`1 2 3` user_nicename: `1-2-3`display_name:`1 2 3`
To log in to bbPress using the either a page using the the page template page-user-login.php or the bbPress widget I must use the username `1 2 3`
UPDATE: I also tried disabling all plugins (except bbpress) and activated Twenty Eleven theme. Still no different..
So this means it either a wordpress or a bbpress problem.
I would also like to mention that used this method to give wordpress it’s own directory and maybe the editor can’t access something. I dont know.
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Any other ideas?