Support » Plugin: Admin Page Spider » installation failed

  • Resolved cway

    (@cway)


    Hello.
    This sounds like a necessary plug-in. While trying to install the plug-in, however, I got the below message.
    Can you help?
    Thanks!
    Cameron

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected ‘[‘ in /var/www/vhosts/trentstudios.com/subdomains/test/httpdocs/wp-content/plugins/admin-page-spider/apspider-functions.php on line 6

    https://wordpress.org/plugins/admin-page-spider/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Plugin Author jatacid

    (@jatacid)

    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

    Plugin Author jatacid

    (@jatacid)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘installation failed’ is closed to new replies.