• Hi, I’d like to install your plugin, but when I try to activate it the following warning shows:

    Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected '[' in /membri/chillesperienza/wordpress/wp-content/plugins/wikipedia-widget/wikipedia-widget.php on line 45

    I’m using the last version of WordPress (3.9.2)

    Thanks, Fede.

    https://www.ads-software.com/plugins/wikipedia-widget/

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

    (@asimeon)

    Its because an older version of PHP on your webserver…

    Can you replace the line 45 in wikipedia-widget.php with:

    $options = get_option('widget_wikipedia_widget');
    $options = is_array($options[$this->number]) ? $options[$this->number] : array();

    Alternative I can update the plugin.

    Greetz

    Thread Starter gnucco3

    (@gnucco3)

    Thanks a lot. It’s working now.

    Bye, Fede.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not able to activate it’ is closed to new replies.