• Hi there,
    I get the following error when trying to install (v 1.2.4) on WP 4.3.1.

    Parse error: syntax error, unexpected '[' in /home/jonathan/public_html/site/wp-content/plugins/clean-inactive-images/admin/class-clean-inactive-images-admin.php on line 133

    I see someone else posted this error 5 days ago, and you released a new version to fix it. In my case the fix does not seem to work.

    Any suggestions?

    Thanks for your great work on this plugin.

    Cheers,
    Jonathan

    https://wordpress.org/plugins/clean-inactive-images/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Apparently not, suggestions or fixed here 🙁

    This is not my plugin, but because diversification is the force, the problem is that he used PHP Version >= 5.4, so in the code you found [] and not array(), so because you use version <5.4 you have to change this in every part of the code 🙂

    As of PHP 5.4 you can also use the short array syntax, which replaces array() with [].

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unexpected '[' — error’ is closed to new replies.