That is the point when it appears. When I get to add new from the dashboard, or from other posts, or anywhere that might generate a new post in the back end. After further testing, I also cannot add a new page or a new forum.
Hi bb Team,
I found a bug, maybe, on bbpress ver.: 2.5.12 if I use action bbp_author_metabox
I try to add some user info on metabox but if I call this:
add_action('bbp_author_metabox', array($this, 'bbp_author_details'));
function bbp_author_details($post_id) {
echo "<p>Test</p>";
}
in html code I’ve this on start tag:
`<p>Test</p><!DOCTYPE html>
<!–[if IE 8]>`
and on the right place:
<div id="bbp_author_metabox" class="postbox " >
<button type="button" class="handlediv button-link" aria-expanded="true"><span class="screen-reader-text">Commuta il pannello: Informazioni autore</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class='hndle'><span>Informazioni autore</span></h2>
<div class="inside">
<p>
<strong class="label">ID:</strong>
<label class="screen-reader-text" for="bbp_author_id">ID</label>
<input type="text" id="bbp_author_id" name="post_author_override" value="xxxxx" data-ajax-url="xxxx" />
</p>
<p>
<strong class="label">IP:</strong>
<label class="screen-reader-text" for="bbp_author_ip_address">Indirizzo IP</label>
<input type="text" id="bbp_author_ip_address" name="bbp_author_ip_address" value="xxxxxx" disabled="disabled" />
</p>
<p>Test</p></div>
</div>
I found that do_action( ‘bbp_author_metabox’, get_the_ID() ) it’s called twice:
-on author_metabox function (bbpress/includes/admin/topics.php)
-on bbp_author_metabox function (bbpress/includes/admin/metaboxes.php)
-on author_metabox function (bbpress/includes/admin/replies.php)
This cause html error code.
I think it’s name error on bbpress/includes/admin/topics.php and should be do_action( ‘bbp_author_attributes_metabox’, get_the_ID() );
Thank you
David
no, 7.1 is producing 500 errors for some users
Has this error always existed, or is it new? Have you upgraded anything?
As a test are you able to deactivate private groups and see if the error goes away
I get a 500 error when I try to add a new blog post,
Can you give me the exact error please
also gives an error when I try to save or publish a pre-existing draft
can you give me the exact error please
Hey guys,
I get a 500 error after the latest update:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/vhosts/<url>/wp-content/plugins/bbpress/includes/forums/functions.php:1800
Stack trace:
#0 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
#1 /var/www/vhosts/<url>/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
#2 /var/www/vhosts/<url>/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#3 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)
#4 /var/www/vhosts/<url>/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
#5 /var/www/vhosts<url>/wp-includes/class-wp.php(617): WP_Query->query(Array)
#6 /var/www/vhosts/<url>/wp-includes/clas...'
ln 1800 looks like this:
$post_stati = $posts_query->get( 'post_status' );
// Default to public status
if ( empty( $post_stati ) ) {
$post_stati[] = bbp_get_public_status_id();
// Split the status string
} elseif ( is_string( $post_stati ) ) {
$post_stati = explode( ',', $post_stati );
}
could be fixed by forcing the array:
$post_stati = $posts_query->get( 'post_status' );
if (!is_array($post_stati)){
$post_stati = array($post_stati);
}
// Default to public status
if ( empty( $post_stati ) ) {
$post_stati[] = bbp_get_public_status_id();
// Split the status string
} elseif ( is_string( $post_stati ) ) {
$post_stati = explode( ',', $post_stati );
}
side note: wp version 4.7.4, bbpress version 2.5.12
Thanks in advance,
Toby
They show as ‘Forum’ which is why I was expecting something to be on the left that I could choose them from.
Would it be something to do with the page called Forums? I made a new page and called it Test Forum and added it to the menu bar. I then moved a couple of the demo forums to below it. Saved and refreshed. The moved forums show below the new menu item ‘Test Forums’, but unlike the original ‘Forums’ link, if you click on it you don’t get a landing page. I’ve had a look at the Forums page and can’t see anything different there compared to any other page.
@bullarni No, this hasn’t been resolved (I’m running the latest stable version of bbpress). I have not tried implementing the patches since they are so old.
Unfortunately I haven’t found a solution.
I still think that due to
Existing passwords are converted during the import so users can login to WordPress/bbPress as soon as the import and recounts have finished.
the converter should have saved the database information to read phpbb_users somewhere but it hasn’t, that’s way I’m getting the “Error establishing a database connection”.
Which I think is somehow related to
https://bbpress.trac.wordpress.org/ticket/1886
At this point I will ask my users to reset their password.
During my tests, I have also discovered that even if you reset your password, you are still getting the “Error establishing a database connection” error for migrated user and to “skip” it, you have to rename/delete the table “wp_bbp_converter_translator”.
suspect this is theme related.
as a test try switching to a different theme and see if that fixes.
If so switch back, and come back here and let us know what theme and a url to your site
I was going to suggest renaming you’re plugins folder, you’ve done that already.
Try renaming the directory of your theme, or the entire themes directory if that doesn’t work
Strange, I tried hitting some URLs direct, e.g.
• http://restomod101.com/test/wp-admin/edit.php?post_type=page
• http://restomod101.com/test/wp-login.php
I’d also suggest taking a look at any custom functions you have in a functions.php file
What about rewrite rules, have you any custom rules in your .htaccess file?
I’ve been digging a lot and trying all kinds of different things but really have no idea how to get my site working again.
For whatever reason – every time I try and login to the standard Admin dashboard at “restomod101.com/test/wp-admin” for WordPress I get redirected to “restomod101.com/test/forum-registration/” which leads me to think its a redirect issue with bbpress but I could be wrong.
Whereas “restomod101.com/test/wp-login” takes me to a 404 error page.
What makes this all the more odd is the homepage seems to work fine EXCEPT when I click on any link, it resolves to a 404 page.
I’ve tried turning all the plugins off by renaming my plugins folder, I’ve tried my main themes folder but that takes me to a blank page.
What exactly has gone wrong?
Page is: restomod101.com/test/
Just trying to access the standard admin dashboard, I’ve put so much work into this site to lose it now!! Any help would be sincerely appreciated.
Hello people,
I have a new forum. So i’m testing some things.
After i made a topic (with a new account) i get to see this weird thumbnail failure (see image)
View post on imgur.com
How do i solve this?
Hi Robin,
I have just tried your code with BBPress 2.5.12 and I can not see the “trash” links. I hope it’s not a lot to ask, but could you know why it might be broken?
From what I could test, it has something to do with the lines where the capabilities are given, for example this line:
//allow any reply to be deleted
if ($post_type == bbp_get_reply_post_type()) $caps = array('delete_replies');
I appreciate any response.
Regards,
Hello,
I have a plugin that is used to index search results in to Amazon CloudSearch. I’ve written the below code to exclude private forums from search results. Now I need some code to automatically exclude all topics inside a private forum.
function exclude_private_forums_search() {
$forum_id = bbp_get_forum_id();
if (get_post_status($forum_id) == 'private') {
add_post_meta($forum_id, 'acs_exclude', 1, true );
} else {
delete_post_meta($forum_id, 'acs_exclude');
}
}
add_action('bbp_new_forum', 'exclude_private_forums_search' );
add_action('bbp_edit_forum', 'exclude_private_forums_search' );
Is there anyway I can get a list of topic IDs inside a forum ID?
Running latest version of bbPress and WordPress.
Thanks.
Hi
Newbie would be grateful for some help …..
WordPress 4.7.4 – bbPress 2.5.12
https://bijouxbutterflies.co.uk/forums/
Using the “Creating Content” guide I created my first forum and topic with no problems.
I then created a second forum (latest news) with one topic (trade mark registered).
Although both forums and both topics show in wp-admin, when I visit the website only the first forum shows.
What do I have to change to get both forums listed?
Thanks
Hello Pascal,
Although I tend to avoid beta versions, I’ve replaced the 2.5.12 by the 2.6-beta-2 to test your ‘post first’ plugin with [bbp-single-forum id=$id]. My observations:
* Prior to activating your plugin, the single forum is visible, with all of its content — as should be.
* After activating your plugin, the existing content of the forum is invisible. There is a message in a blue bar (‘this forum contains … topics and … replies …’), and a message in a yellow bar ‘Please post your own topic first before you can see other responses.’
* Those two messages appear always, regardless whether or not I had posted in that forum prior to activating the ‘post first’ plugin (ideally, it should only show up when I did not post before in that forum, isn’t it?)
* When I then do submit a message to the forum, it brings me to a new screen where I see only my message. I need the back button of the browser to get out of there (not sure how that can be changed?).
* When I do use the back button, I get onto the initial page where I had the single form, but it still displays the yellow bar telling me that I should post first. Even though the counter has increased by one, and my name is mentioned as the last contributor.
In conclusion: it doesn’t look like it does what it should do — it basically blocks all forum content for me, forever.
Hope this helps to finetune (I will stay with 2.6-beta-2).
Best regards,
Stefaan
Not tested this yet (I know this is nearly 3 years old – looking for something I’m currently working on) but I noticed that the code doesn’t have an opening PHP tag, just a closing one.
I added the opening tag, installed as shown above, and not had this above error.
Again, not tested but will confirm either way once I have set up a test post 🙂
@welshdemon did you ever figure this out, I am pretty much doing – stuck exactly where you are. I am going for older bbpress to newer bbpress that is part of a full site update and just want to bring everything in cleanly. It does bring in my replies, and they seem to be connected properly in the backend, but frontend, they do not show.
If i edit a reply, and just hit the update button, it will then show. I want to avoid doing that 1000 times.
Even if I export the topics from the new site, that show properly after I did the update trick mentioned above, then bring it back in (wordpress import) to test if it will import properly, it does not, has same symptoms a you mentioned.
Latest News: I restored WordPress to a few weeks ago, but still with the latest release.
Rstoring, the issue disappeared. And some plugins asked me to make an upgrade because of the restore to a few weeks ago. Due to the problem “solved”, I tried to update one plugin by one, and see if the problem comes back. Yes! It came back after the update of “Custom Sidebars”.
“ok” – I thought – “now deactivate it and see if the problem disappears”. Well, deactivating Custom Sidebars, the issue remains! And the only way to make it disappear is, now, deactivating BBpress.
What a confusion!
What do you think?
I was considering Tapatalk for bbPress (after migrating from SMF which has Tapatalk support) a while back in an effort to compete with Slack.
I did bookmark this URL: https://tapatalk.com/download_bbpress.php – but it is no longer active, it just redirects. Here is the archive.org version: https://web-beta.archive.org/web/20150911232515/https://tapatalk.com/download_bbpress.php
There also was this plugin, but I haven’t tested it or confirmed that it is actually meant for bbPress specifically (it looks like it is for blog comments): https://wordpress.org/plugins/tapatalk/
If anyone is currently using Tapatalk with bbPress, let us know how. 🙂
Robin,
Thanks for the fast reply, but this plugin is 4 years old.
Is this not a problem?
Is it full compatible with the lastest bbpress plugin?
No security issues?
Hi, in my site I noticed a strange issue after last WordPress update. It seems to have problem with “cache”.
For example, if I log-in through the Home Page, after click in sign-in, the page refresh but it seems that the log-in didn’t work. If I press F5 to refresh the page, here I can now see the log-in effectuated.
I thought about my caching plugin, and I wrote to the assistance of my provider. They exclude the problem is in caching plugin, they found this:
The issue appears to be caused from the latest WordPress upgrade that was automatically applied within your website.
Code:
sitename@esm9 [~/public_html]# wp core version
4.7.4
There seems to be conflict between a plugin of yours that is creating this strange behavior within the website.
To find which is the responsible plugin, you may start deactivating them one by one and after that checking the functions that were not working as expected. Once they work this will indicate which plugin caused the issue.
I did what they suggest, and when I deactivate BBPRESS, everything works! So, what to do??
Hi,
If I may add my part too:
– If you post something, you will never receive it yourself. As you know what you have posted, you will not receive the message yourself (I hope this has not changed in the latest versions)
– You are NOT using BuddyPress, right ? Only bbPress. Because BuddyPress might have other settings and then you might be better checking with the support overthere.
– As Robin indicates, users need to SUBSCRIBE to a forum to receive the notifications for TOPICS that are posted in the forums.
Hope this helps.
A user posted a new topic in my bbPress forum. that worked just fine. I registered as a Subscriber so I could test user experience, and tried to reply to his topic/thread. But after I hit “Submit,” the topic reloaded and the reply was not there. The status still reads: This topic contains 0 replies, has 1 voice.”
What could be the reason why the response is not being published?
Thanks!
Ken
presume you’ve tried it ?
If it doesn’t work, then the latest activity widget in my style pack plugin does exactly that
bbp style pack
There are quite a few performance improvements coming in bbPress 2.6 (to be released soon)
Many of these improvements have been made to support the implementation of bbPress 2.6 here on the WordPress.org support forums.
You can read more about this here https://bbpress.org/forums/topic/bbpress-2-6-beta/
If you have a test site, or could set one help, testing 2.6 would help us help you 🙂