opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

PHP 7.1.8 Fatal Error: Uncaught Error: [] operator not supported for strings #64

Closed adeel-raza closed 7 years ago

adeel-raza commented 7 years ago

This is a PHP error that occurs with PHP Version 7.1.7 and 7.1.8. However, PHP 7.0 is unaffected.

Figured you may want to know so this can get fixed before an increasing amount of people become affected. There’s a few other plugins I work on that had the same issue, and the fix is really simple…depending on how far you want to dig.

( ! ) Fatal error: Uncaught Error: [] operator not supported for strings in C:\wamp64\www\NCWA\wp-content\plugins\badgeos-community-add-on\includes\bp-members.php on line 222
( ! ) Error: [] operator not supported for strings in C:\wamp64\www\NCWA\wp-content\plugins\badgeos-community-add-on\includes\bp-members.php on line 222
Call Stack
#   Time    Memory  Function    Location
1   0.0000  375808  {main}( )   ...\index.php:0
2   0.0010  377824  require( 'C:\wamp64\www\NCWA\wp-blog-header.php' )  ...\index.php:17
3   0.0010  393256  require_once( 'C:\wamp64\www\NCWA\wp-load.php' )    ...\wp-blog-header.php:13
4   0.0010  405944  require_once( 'C:\wamp64\www\NCWA\wp-config.php' )  ...\wp-load.php:37
5   0.0020  507736  require_once( 'C:\wamp64\www\NCWA\wp-settings.php' )    ...\wp-config.php:94
6   1.1821  99940392    do_action( )    ...\wp-settings.php:448
7   1.1821  99940768    WP_Hook->do_action( )   ...\plugin.php:453
8   1.1821  99940768    WP_Hook->apply_filters( )   ...\class-wp-hook.php:323
9   1.4311  107496624   bp_init( )  ...\class-wp-hook.php:298
10  1.4311  107496624   do_action( )    ...\bp-core-dependency.php:235
11  1.4311  107497000   WP_Hook->do_action( )   ...\plugin.php:453
12  1.4311  107497000   WP_Hook->apply_filters( )   ...\class-wp-hook.php:323
13  1.4471  107660920   bp_setup_nav( ) ...\class-wp-hook.php:298
14  1.4471  107660920   do_action( )    ...\bp-core-dependency.php:123
15  1.4471  107661296   WP_Hook->do_action( )   ...\plugin.php:453
16  1.4471  107661296   WP_Hook->apply_filters( )   ...\class-wp-hook.php:323
17  1.4611  107705528   BadgeOS_Community_Members->setup_nav( ) ...\class-wp-hook.php:298
adeel-raza commented 7 years ago

Fixed in v1.2.4