• Resolved waldorf2007

    (@waldorf2007)


    Hey all,

    this plugin looks like a godsend for someone using bcrypt and wanting something more recent than…3 years ago. I’m trying to hook up a wordpress (4.7 currently) to an external DB. When I activate this plugin I get the following:

    Parse error: syntax error, unexpected ‘[‘ in /data00/html/portals/<REDACTED>/wp-content/plugins/external-login/options/add_plugin_options_links.php on line 4

    I don’t know how a syntax error bracket could get through, and I don’t think that’s what it is. The file referenced by the error looks like it’s trying to add a link to the plugin settings. I’m currently using the responsive theme, and wondering if editing theme HTML is messing it up.

    Here’s the code snippet that’s erroring:

    function exlog_plugin_action_links( $links ) {
        $links = array_merge( array(
            '<a href="' . esc_url( admin_url( '/options-general.php?page=' . EXLOG_PLUGIN_DATA['slug']) ) . '">Settings</a>'
        ), $links );
        return $links;
    }

    Has anyone else run into this problem? Can’t even activate the plugin to try other stuff!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Just letting you know that I’m looking into this now for you. Will update when I know more.

    Plugin Author tbenyon

    (@tbenyon)

    Hey @waldorf2007,

    Really appreciate you flagging this bug.

    It was a mistake on my end. When previously making the plugin better supported for earlier PHP versions I missed this correction.

    For some reason it wasn’t throwing an error in my code but I’m not sure why it wasn’t.

    Could you please try downloading version 1.3.1 of the plugin and let me know if your issue is fixed.

    If it is and your happy with the plugin, a review would be much appreciated.

    Thanks again for flagging the issue,

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error when activating plugin’ is closed to new replies.