bbPress compatible with PHP 7 and HHVM
The warnings you see are from a 3rd party library, these issues would only affect you if you are importing forums from another forum software package.
You can see our Travis CI PHP 7 tests here: https://travis-ci.org/ntwb/bbPress/jobs/147321446
(We don’t have 100% code coverage yet but we are progressing nicely)
Hello,
I ran the PHP 7 Compatibility test against bbPress with the following results. Be nice if they could be fixed so I can use bbPress with PHP 7.
FILE: /usr/share/wordpress/wp-content/plugins/bbpress/includes/admin/converter.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
310 | ERROR | INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
------------------------------------------------------------------------------------------------
FILE: /usr/share/wordpress/wp-content/plugins/bbpress/includes/admin/parser.php
--------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------
293 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
1149 | ERROR | preg_replace() - /e modifier is forbidden in PHP 7.0
1150 | ERROR | preg_replace() - /e modifier is forbidden in PHP 7.0
1386 | WARNING | The use of function split is discouraged from PHP version 5.3; use preg_split instead
--------------------------------------------------------------------------------------------------------
THank you,
Edward
Hello,
I am very new to bbPress. I have a few basic questions:
1. To simplify my question, suppose I create page A, B, C, D. For each separate page, I create forum A, B, C, D. When creating the forums, bbPress creates a page for each forum, let’s call them page FA, FB, FC, and FD. My goal is to add a shortcode for forum A to page A such that whenever a user submit a question, it will stay on page A instead of getting forwarded to page FA. The same goes for page B, C, and D. Is it possible to do this? I create these pages and forums, but everytime I submit a question or subscribe to the forum, the site brings me to page FA instead of letting me stay on page A.
2. Is it possible to change the front end of the text editor? here we have “b i link b-quote del img ul ol li code close tags”. For general user, they will be more familiar with more common buttons like Bold, Italic, Underline, a button to attach image, a button to add symbols, etc.
wordpress version: 4.5.3
bbPress version: 2.5.10
Thank you so much for your help!
Hi Pascal,
Thanks for your replies. Using the CSS code mentioned in the below post has solved my problem
https://bbpress.org/forums/topic/shifting-forum-posts-to-the-left/
Necro. I am using the Evolve theme, WordPress 4.5.3, and have tried running this code in a child theme, but the effects only take place in the parent theme’s functions.php. I tried a mu-plugin as well. I am thoroughly pleased with the results in the parent theme but would love this in a child. Any thoughts?
Hi all —
I’m giving this topic a boost. Multiple users on our message board are reporting that their logins do not work. I’ve updated BBPress on the off chance that this was the problem.
However, I also do not understand the coding solutions suggested above. Can anyone walk me through these steps in language that a non-coder could understand? Something very simple and step-by-step is necessary.
Thank you very much.
Wordpress version: 4.5.3
bbPress version: 2.5.10
theme: Zippy Courses
site: http://escuela.palabrasalavida.com/forums/forum/el-yoga-de-las-palabras/
Hi,
Pleased I’m stuck with this. I have my WordPress installed in es_ES, I have translated the Zippy Courses theme without problems and now I am trying to translate the bbpress pluging by copying the es_ES.mo file into the languages folder and it doesn’t work. The plugin is not getting translated.
I have tried to do it using the plugin “Codestyling localization” and I get this message:
Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.
Any hints?
Thanks for your help!
So, I have recently found out that my topics content weren’t showing correctly. Spent a lot of time trying to solve this, and finally came with a solution to my case.
I use ElasticPress on every query on my WP installation, including, of course, bbpress queries. Because some bug or something I really don’t know what, ElasticPress query filter was conflicting with bbpress queries.
The solution I found is “ep_skip_query_integration” filter of EP.
This is what I did, I’m running this in functions.php:
function disable_elasticpress_integration( $query_args ) {
add_filter( 'ep_skip_query_integration', '__return_true' );
return $query_args;
}
add_filter( 'bbp_include_all_forums', 'disable_elasticpress_integration' );
Hope it helps.
Renan
$content_dir (from the constant ‘WP_CONTENT_DIR’) resolves as:
/var/lib/openshift/hexkey/app-root/data/current/wp-content
content_url gives mydomain/wp-content
and the file location starts out as :
/var/lib/openshift/hexkey/app-root/data/plugins/bbpress/templates/default/js/editor.js
That last path, I’d expect that to be /var/lib/openshift/hexkey/app-root/data/wp-content/plugins/bbpress/templates/default/js/editor.js
i.e. after data is wp-content which is before plugins
Plugins are “typically” installed unto the wp-content directory, WordPress has some constants available to change these, typically WP_CONTENT_DIR and WP_CONTENT_URL are used, WP_PLUGIN_DIR and WP_PLUGIN_URL are not used anywhere near as much, maybe the Openshift configuration has these defined in the wp-config.php file in the root directory?
https://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants
This probably needs further investigation by bbPress, mainly to check the constants WP_PLUGIN_DIR and WP_PLUGIN_URL so these can be used standalone when WP_CONTENT_DIR and WP_CONTENT_URL are not used at all.
@oldshaghat can you check in your wp-config.php if any of the above constants are defined please?
if it hangs up and I restart, should it continue from where it stopped?
Yes, with a caveat, if the importer is processing 100 rows at a time, you may end up with some duplicates as it will re-import that chunk again.
Hi, just given my thoughts: Is your original forum (the first one) also running on a local machine or on shared hosting? I had a bbpress site that locally was running very slow. The moment I moved it to a provider, it was running great…
My checklist:
Please note that WordPress requirements/recommendations are on https://wordpress.org/about/requirements/
Some things to check:
– Have you run all the repair tools of bbpress after import to be sure your structure is optimized ?
– Have you deactivated any not-needed plugin ? Is your theme ready for bbPress ?
– Did you try to run performance tools like the P3 plugin performance profiler to narrow down the possible slow parts ?
– Did gtmetrix.com indicate something ? Or what did you see using the Pingdom Tools ?
– Is it for all people in the world the same ? Check with Sucuri performance.
Plugins:
– Are you using any cache mechanism to improve speed where possible ?
– Plugins like W3 Total Cache, Batcache, WP Super Cache or other ?
– Did you check for CloudFlare or the autoptimize plugin ?
Some further reading: https://codex.bbpress.org/getting-started/improving-performance/
If it would come to database queries, then check these plugins:
https://wordpress.org/plugins/query-monitor/
https://wordpress.org/plugins/query-monitor-bbpress-buddypress-conditionals/
Also note that in the upcoming bbPress v2.6, a lot of focus went on possible performance issues.
Hope it helps,
Pascal.
Its not available for download. Besides its just a custom made theme made for the bb sites (bbpress.org and buddypress.org and their respective codex subdomains, possibly trac too )
Choose a theme from here.
bbPress queues up its CSS stylelsheet using WordPress’ standard functions wp_enque_stylesheet() so it shouldnn’t cause any issues.
I’ve never tried Redhat’s Openshift, nor even knew it was a thing until now.
Do they use a “standard” copy of WordPress or is it modified somehow?
What versions of WordPress and bbPress are you having this issue with?
I have been commenting out the error that disallows duplicate posts and replies:
if ( !bbp_check_for_duplicate( array( 'post_type' => bbp_get_reply_post_type(), 'post_author' => $reply_author, 'post_content' => $reply_content, 'post_parent' => $topic_id, 'anonymous_data' => $anonymous_data ) ) )
bbp_add_error( 'bbp_reply_duplicate', __( '<strong>ERROR</strong>: Duplicate reply detected; it looks as though you’ve already said that!', 'bbpress' ) );
Obviously this isn’t ideal – everytime we upgrade I have to remember to do this. Is there any way to override this in my theme files?
Thanks in advance.
Hi,
I want to stop new topic creation on my bbpress groups page, i contacted bbpress and they said i need a customer code to stop new topic creation on bbpress groups. Can anyone on here help?
Regards
Vish
1. Does anyone know how to move the reply box in bbpress forum from the bottom to the top!? I tried to code but it does not work for me!!?
2. Is it possible to make the reply box as it is in the activity page? (which is very small and handy)
Thank you!
Check to see if this is theme specific or see if changing the forum search slug is causing this.
https://codex.bbpress.org/getting-started/troubleshooting/
I rolled back bbPress since I read they changed their mail headers in 2.5.4 – so I went from the latest (2.5.9) to 2.5.3
Update it to the latest version.
Edited the database and added multiple addresses in the wp_options field for admin – still no notifications.
Maybe consider reverting this to what you had previously.
Did you do all what is described below @benjieblock?
Create a forum and subscribe to the forum, and create a topic with your admin account and also subscribe to it on a live test site to test these subscriptions in.
Create a test participant user to just post test posts in that topic you just created to test topic subscription emails, and create topics in the forum to test forum subscription emails.
I guess now just check on your Admin/Keymaster email {your admin user email} to see if any of them sent.
This is just troubleshooting to see if you can even get 1 subscription email, either topic or forum subscription emails using bbPress by default without any new plugins.
If it works without any plugins we can go from there.
IF it doesn’t we need to find a plugin/theme/custom code snippet that might be causing an issue.
Also in the future the larger your forums grow and if you allow both subscription emails for every mod and keymaster in your forum, you will need to consider using smtp and AsynCRONous bbPress Subscriptions.
Follow this. If you theme has a specific way of creating a child theme follow any of their own guides.
https://codex.wordpress.org/Child_Themes
The categories and topics are all weird. I just wish it looked standard like every other major forum out there.
It may be how the default category and forum layout bbPress uses. Maybe consider using this loop-forums.php file in a child theme.
https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout
@earl_d I made a tutorial for BuddyPress which you could adjust for the bbPress version. e.g. in the B. Full-width Layout section, instead of creating buddypress.php, create bbpress.php at the root of your theme’s folder. Good luck.
Twenty Twelve Theme
I am running the latest BBP with WP 4.53 and BP 2.6.1.1 with sitewide and group forums using a 2012 child theme. I would like to show the forum pages full width in twenty twelve. I have tried several options to do this from using CSS to change the site content width along side copying the full with template and remaining Bbpress.php in the 2012 child theme folder as well as copying the Bbpress template folder to my 2012 child theme folder.
None of that has worked the closest it comes is the removal of the sidebar but the Bbpress content still doesn’t display full width. I have looked through the codex and the forums here but have not found a solution. Is there something I am missing? Can anyone point me to a definitive solution to this nagging problem. thank you
I’ll try it out, but this is pretty annoying that I have to do this manually. If I wanted to learn to code, I wouldn’t be using wordpress to begin with.
Follow this guide and place the CSS files from the bbPress plugin in a child theme then customize it from there. Or use a custom CSS plugin. Whatever works best for you.
https://codex.bbpress.org/themes/theme-compatibility/