#3094 closed defect (bug) (duplicate)
Fatal error: Uncaught Error: [] operator not supported for strings
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Component - Forums | Keywords: | |
Cc: |
Description
Hi guys, while using bbPress plugin i have found a issue. I've seen that it was fixed a couple of months ago, but i'm not sure if it was 100% fixed.
This is the error:
Fatal error: Uncaught Error: [] operator not supported for strings in /Applications/MAMP/htdocs/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(, Array) #2 /Applications/MAMP/htdocs/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /Applications/MAMP/htdocs/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array) #4 /Applications/MAMP/htdocs/wp-includes/class-wp-query.php(3238): WP_Query->get_posts() #5 /Applications/MAMP/htdocs/wp-includes/class-wp.php(617): WP_Query->query(Array) #6 /Applications/MAMP/htdocs/wp-includes/class-wp.php(735): WP->query_posts() #7 /Applications/MAMP/htdocswp-includes/functions in /Applications/MAMP/htdocs/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
The error appears when accessing the Forums CPT on dashboard.
Theme used: Twenty Seventeen
No other plugins
Setup:
macOS
PHP7.1.1
The problem is not on PHP 7.0.15
Hi @psdtohtmlguru, welcome to Trac and thanks for the report :)
This has already fixed in [6135], see #3031.