Plugin working on my local installation but Cannot be activated online

This is an issue with your PHP versions on your local and live install.

The new short array syntax ([]) was implemented in PHP 5.4. This tells you that your PHP version on your local install is at least PHP 5.4 and your live install has a version older than that. The new short array syntax will lead to a PHP error in older versions as it is invalid PHP in the older versions.

SOLUTION

As PHP 5.3 was EOL’ed almost a year ago, it is a very good and security wise idea to ask your host to upgrade their PHP version to atleast PHP 5.4. Alternatively, you can change your new short array syntax back to the old array syntax.

['jquery']

then becomes

array( 'jquery' )