All in One SEO and bbpress
-
I had issues with bbpress not allowing me, as keymaster to post new threads, or delete any. After testing, it seems that whenever All in One SEO plugin is active, bbpress won’t let me work. When i deactivate it, it lets me. Not sure if it is a recent upgrade or what because everything was working fine a couple of weeks ago.
I have All in One SEO 2.3.3.2 and bbpress 2.5.8 on WP 4.4.2 if it can help.
-
Hi cassel,
1) What is the url to your site?
2) What other plugins are active?I am running the exact same wp and plugin versions
This may be related to your issue. This error has been showing up in my logs:
PHP Notice: bbp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init().
debug_backtrace() produces this: (edited some for brevity)
Array ( [0] => Array ( [file] => /home3/creatomb/public_html/wp-content/plugins/bbpress/includes/core/sub-actions.php [function] => _doing_it_wrong [args] => Array ( [0] => bbp_setup_current_user [1] => The current user is being initialized without using $wp->init(). [2] => 2.3 ) ) [1] => Array ( [function] => bbp_setup_current_user ) [2] => Array ( [file] => /home3/creatomb/public_html/wp-includes/plugin.php [function] => call_user_func_array [args] => Array ( [0] => bbp_setup_current_user ) ) [3] => Array ( [file] => /home3/creatomb/public_html/wp-includes/pluggable.php [function] => do_action [args] => Array ( [0] => set_current_user ) ) [4] => Array ( [file] => /home3/creatomb/public_html/wp-includes/pluggable.php [function] => wp_set_current_user [5] => Array ( [file] => /home3/creatomb/public_html/wp-includes/pluggable.php [function] => get_currentuserinfo ) [6] => Array ( [file] => /home3/creatomb/public_html/wp-includes/user.php [function] => wp_get_current_user ) [7] => Array ( [file] => /home3/creatomb/public_html/wp-content/plugins/all-in-one-seo-pack/admin/meta_import.php [function] => get_current_user_id ) [8] => Array ( [file] => /home3/creatomb/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php [args] => Array ( [0] => /home3/creatomb/public_html/wp-content/plugins/all-in-one-seo-pack/admin/meta_import.php ) ) [9] => Array ( [function] => aioseop_init_class ) [10] => Array ( [file] => /home3/creatomb/public_html/wp-includes/plugin.php [function] => call_user_func_array [args] => Array ( [0] => aioseop_init_class ) ) [11] => Array ( [file] => /home3/creatomb/public_html/wp-settings.php [function] => do_action [args] => Array ( [0] => plugins_loaded ) ) [12] => Array ( [file] => /home3/creatomb/public_html/wp-config.php ) [13] => Array ( [file] => /home3/creatomb/public_html/wp-load.php ) [14] => Array ( [file] => /home3/creatomb/public_html/wp-blog-header.php ) [15] => Array ( [file] => /home3/creatomb/public_html/index.php ) )
As far as I can tell, this is what is happening:
Item 11 is where the ‘plugins_loaded’ action is fired. This pulls in Item 9 – aioseop_init_class. Later code, Item 7, wants the user ID. This causes WP to go looking for that information, which causes the ‘set_current_user’ action to be fired off, Item 3. This pulls in Item 1, ‘bbp_setup_current_user’. That function checks to see if the action ‘after_setup_theme’ has been done – which it has not! It then calls _doing_it_wrong(), which calls trigger_error(). I have no idea what happens after that. Hopefully this can help someone more familiar with these plugins figure out how to fix the issue.
Follow-up:
all_in_one_seo_pack.php:206:
add_action( 'plugins_loaded', 'aioseop_init_class' );
can be changed to
add_action( 'init', 'aioseop_init_class' );
That might fix your problem. Or it might break your system.
Tread with care.
Followup:
Break, definitely break.
change needed to be:
add_action( 'init', 'aioseop_init_class', 1 );
plus, all_in_one_seo_pack.php:359: change priority 1 to a 2
add_action( 'init', 'aioseop_load_modules', 2 );
I thought it interesting just how many plugins want an init priority of 1. I feel sure the aioseop people will tell you to stay out of their code. And they will be right.
Hi Michael, the URL of my site is:
https://scrapbookcampus.comThe other plugins i have are:
ActiveCampaign
Akismet
BackupBuddy
bbpress
bbPress Enable TinyMCE Visual Tab
bbPress Multi Image Uploader
Broken Link Checker
Captcha by BestWebSoft
ezPHP
Ginger Soul Records SoulSections Block
KC s2M+AC
KC Tools WP
Layered Popups
Maintenance
Pretty Link Lite
Quick Page/Post Redirect Plugin
Remove XMLRPC Pingback Ping
s2Member Framework
Scarcity Builder
Send System Info
SumoMe
Swifty Page Manager
Theme Test Drive
Top 10
Wordfence Security
WordPress Zero Spam
WP Affiliate Platform
WP Post to PDF Enhanced
WP Show IDs
WP-EVS (EasyVideoSuite WordPress plugin)Hope that helps. I also found out that now, i can’t even reply to anything in the forum when the AIOSEO plugin is active.
That’s quite a bit of plugins. Deactivate all plugins except bbpress and AIOSEOP and see if the issue persists. If not, there’s another conflict somewhere. Reactivate each plugin one at a time, checking each time.
Also try switching to the default theme.There’s a big difference in what I can do between… the issue exists with ONLY bbpress and AIOSEOP installed vs the issue exists ONLY with bbpress, AIOSEOP, and plugin X
Otherwise, there are no known issues between bbpress and AIOSEOP.
After deactivating all the plugins (except I had to leave the Maintenance plugin on to deactivate all the other ones), leaving AIOSEO and bbpress, I still could not post.
I switched theme and that allowed me to post, so it seems to be something going on when AIOSEO + bbpress + Headway Theme are active together.
So…
AIOSEO + bbpress + HT = problems
AIOSEO + bbpress = no problem
bbpress + HT = no problemI can contact the theme developers but it does not seem to be ONLY with them. Not really sure why only the combination of the three would cause issues and I am sure they will suggest I contact you too!
This is very helpful. I’m contacting the theme developer now. Fortunately I’ve know the developers of Headway for years, and have long recommended them, so we’ll figure something out.
What do you mean “it does not seem to be ONLY with them”?
When you say “post,” do you mean you can’t post to bbpress or you can’t make WP posts?
What do you mean “it does not seem to be ONLY with them”?
I mean it is not an issue of just HT + bbpress
When you say “post,” do you mean you can’t post to bbpress or you can’t make WP posts?
I can’t post in the forum: can’t start a thread, can’t reply in the thread, can’t delete a thread. I can still create WP blog posts and such. It is just in the forum, which uses bbpress.
I’m contacting the theme developer now.
I also just sent them a similar support ticket to inform them.
Thanks for looking into it. At least, for now, i know i can just deactivate the AIOSEO plugin when i need to post something in the forum.
I’ve verified the issue and am looking into it now.
https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/162
Update: we’ve determined the problem and a fix will be in the next release.
Great. Thanks.
In the meantime, if you’d like a quick fix, use this code:
In wp-content/plugins/all_in_one_seo_pack/admin/display/meta_import.php, change line 38 from
}else{
to
}elseif(!class_exists(‘bbPress’)){
This is not the actual code that will come out in the next release, but will work as a quick fix.
Any idea when the next release will come? That code is foreign language to me! ??
- The topic ‘All in One SEO and bbpress’ is closed to new replies.