ok, not something I’ve seen, as can only suggest that you do the basic fault finding process ie
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
I find that in email notifications, the hyphen/dash is being escaped into the character string – (em-dash) when it occurs in topic titles, forum titles and user display names. I have not tested forum names.
For a topic with the title as on the following line:
Hyphen – endash – emdash — nonbr hyphen ‑ figure dash ‒
all these characters survive except for the first hyphen/minus sign. If this same sequence is included in the body of a topic, it is delivered OK, so this is NOT a WP server or email issue. This does not occur in notifications for a WP post, so I believe it is a bbPress issue.
I have tested this under WP v5.0.3 and with bbPress v2.5.14 the only active plugin and with the theme Twenty Nineteen.
I suspect it is a conflict.
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
buddypress and bbpress just use the wordpress logon.
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
Actually, it seems to work in another theme I am testing (zerif) but not in Twenty Seventeen at the URL provided.
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
Hi, I want to display 3 latest topics with new replies for each forum category. In loop-single-forum.php file I created this:
$count = bbp_get_forum_topic_count();
$user = bbp_get_topic_author_id( bbp_get_forum_last_topic_id() );
if ( $count != 0 ) {
echo '<a href="'. bbp_get_forum_last_topic_permalink().'"></a>'; // Link to the topic
echo'<a href="'. bbp_get_user_profile_url( $user ) .'"><img class="avatar" src="'. bp_core_fetch_avatar ( array( 'item_id' => $user, 'type' => 'full', 'html' => false ) ).'" /></a>'; // Link to the topic author profile with author's avatar
echo '<div class="title">'. bbp_get_forum_last_topic_title().'</div>'; // Title of the topic with last activity
echo '<div class="activity">Last activity '. bbp_get_forum_last_active_time().'</div>'; // Time of the topic last activity
} else {
echo 'No topics'; // Information if there is no topics
}
How to display two more topics (if they exist)?
@antipole
you need to specify the number of arguments in the call so..
function test_reply_call($reply_id, $topic_id, $forum_id, $reply_to){
error_log("Trace rest reply: $reply_id: ". strval($reply_id) . "; $topic_id: " . strval($topic_id) . "; $forum_id: " . strval($forum_id) . "; $reply_to: " . strval($reply_to));
}
add_action('bbp_reply_attributes_metabox_save', 'test_reply_call', 10 , 4);
the ’10’ is the priority – 10 is the standard, the higher the number the higher the priority so the order in which any other links to this hook are run, and the ‘4’ the numbers of arguments you are calling through
Hi @antipole,
Looking back at your original strategy, you only shared a fragment of your code – so it’s hard to be sure of this – but I’m wondering if the problem are the assumptions you are making about the type of $post your callback is receiving.
https://gist.github.com/barryhughes/30bacb98b716ecaa864f0b6eaa7c051c
Does a revised approach like the one I shared above work for you? It should give you the author ID (whether that is the author of the reply or the topic) and the forum ID. If you need to, you could add an extra test to confirm the status change reflects publication (vs a topic being set back to draft by an admin).
@robin-w thanks. I am experimenting with your suggestion. I have
function test_reply_call($reply_id, $topic_id, $forum_id, $reply_to){
error_log("Trace rest reply: $reply_id: ". strval($reply_id) . "; $topic_id: " . strval($topic_id) . "; $forum_id: " . strval($forum_id) . "; $reply_to: " . strval($reply_to));
}
add_action('bbp_reply_attributes_metabox_save', 'test_reply_call');
This is fired when I post a reply in the backend, but I get
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test_reply_call(), 1 passed in /home/…/wp-includes/class-wp-hook.php on line 288 and exactly 4 expected in /home/…/wp-content/plugins/ovni-submission-notifications/pending-submission-notifications.php
The do_action in bbp_reply_attributes_metabox_save does use 4 arguments. What am I doing wrong please?
hmm – can’t really suggest what is going wrong, works on my test site
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
without testing, I suspect this will work
// filter to show more than 50 topics on a forum
function bbp_increase_topic_per_page( $args = array() ) {
$args[‘posts_per_page’] = 100 ;
return $args;
}
add_filter( ‘bbp_before_has_topics_parse_args’, ‘bbp_increase_topic_per_page’ );
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
bbpress is compatible with 5.0.3 and works fine on my test site.
It may be a conflict with your theme or plugins
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
Hi Maxime,
Are you trying to import into 2.5 or into 2.6? If you start with a fresh bbPress, then please note that v2.6 has improved import capabilities. You can download the latest RC from https://bbpress.org/download/
Hi,
The importers have been given a boost in 2.6. So if you start importing, better try with the latest RC of v2.6. You can download it from https://bbpress.org/download/
untested, but add this to your functions file or snippets
add_filter ('bbp_before_insert_forum_parse_args' , 'rew_order' ) ;
function rew_order ($args) {
$args['menu_order'] = 10 ;
return $args ;
}
Code Snippets
I have read this topic : https://bbpress.org/forums/topic/smf-import-to-bbpress/page/7/
And currently trying to figure out the way to do it, I have massive forum. Seems forum system a bit neglected by their builder nowadays. (and I wish BBpress not the same).
Do the current version BBPress importer works with current / latest SMF?
Mine seems stucks at 5900 topic conversion something out of 13K topics. Im running conversion of 1.7gb database on xampp – localhost server with i7 and 16gb of ram with tweaked php.ini and-so-on.
Yet possibly another 450k replies waiting in que… now Im worried.
Seriously, no idea to identify which database column made it stucks…
Hi,
Thank you for your reaction! <3
For the forum site club.geef-model.nl I have set the mailaddress in settings>general in info@geef-model.nl. I have created, using incognito screen, a new user and confirmed it but I still don’t receive a notification mail of it.
I also installed the plugin check email and tested it. I received the following mail:
This test email proves that your WordPress installation at http://club.geef-model.nl can send emails.\n\nSent: Wed, 16 Jan 2019 15:32:08 +0000
What could I do now to solve my problem?
With kind regards,
Klaziena Waerts
Hello Robin, and thanks for taking care.
Well, I did as suggested, and ran into several problems : this a theme problem AND a theme child problem apparently.
I keep testing solutions and will be back if needed. thanks for your help any way !
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that deosnlt work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that deosnlt work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
@maximemue. The point of the export/import task is to get the data into a database with the latest data format. I found a thread that suggested exporting data out of the old database then creating a new one – which should have the newer format – and importing the data into it. How you accomplish this depends on what tools you have available. In my case, I was using the GoDaddy database interface – not PHPMyAdmin. I didn’t have a choice but PHPMyAdmin should be fine.
Once you’ve done this you’ll need to “wire” up phpBB to use the new database by editing the config file. Look for the documents on their website that deal with installation and setup. That’ll point you in the right direction on which file and what to change.