I got the same exact error. Just downloaded it and when I clicked activate that’s exactly what it told me about the unexpected [ in the php on line 6.
Any resolution?
I tried activating it again today without any luck.
Version 1.05
What version of php are you guys running?
I can’t replicate the issue, but if you can go into your plugin files with a file editor or FTP and change the following to test it for me.
Change from:
//Adds a "Edit Page In BB" menu to adminbar
if (get_option('apspider_radio_bbmenu')[0] == 'option1') { // Checks if option is set to Display
add_action( 'admin_bar_menu', 'apspider_edit_bb_pg', 999 );
}
Change To:
//Adds a "Edit Page In BB" menu to adminbar
$apspider_is_turned_on = get_option('apspider_radio_bbmenu')[0];
if ( $apspider_is_turned_on == 'option1' ) { // Checks if option is set to Display
add_action( 'admin_bar_menu', 'apspider_edit_bb_pg', 999 );
}
Let me know if that works – I’d appreciate it.
Cheers,
J
Hi guys,
I found the syntax error on one of my really old sites. It has to do with the version of PHP running I believe.
I broke my syntax apart a little more and it is now fixed in v1.05.
Cheers for the heads up!