Title: Parse error trying to activate Plugin
Last modified: April 30, 2020

---

# Parse error trying to activate Plugin

 *  Resolved [ssbcvp](https://wordpress.org/support/users/ssbcvp/)
 * (@ssbcvp)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-trying-to-activate-plugin/)
 * Hello Peter, how are you doing ?
 * I have tried to install WP Data Access but I’m receiving the error “Parse error:
   syntax error, unexpected ‘[‘ in /var/www/html/wp-content/plugins/wp-data-access/
   wp-data-access.php on line 102″ that basically the second line on this code:
   ”
   function wpda_update_db_check() { if ( WPDataAccess\WPDA::OPTION_WPDA_VERSION[
   1] !== get_option( WPDataAccess\WPDA::OPTION_WPDA_VERSION[0] ) ) { activate_wp_data_access();}}”
 * PHP Version: PHP 5.4.16 (cli) (built: Oct 31 2019 18:34:05)
    Database: AWS RDS
   MySql Database Name: It’s not innodb it’s another random name (testdb9ue…) WordPress
   Installation: EC2 Amazon Linux 2 I can normally connect on MySql Workbench in
   this cloud database, see tables, info, etc… PS: After installed It’s also not
   possible to uninstall the plugin by the same reason (but I know how to do this
   in the linux machine)
 * Would you please help me ?
 * Thank You Very Much in Advance !
 * Carlos Valença

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

 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-trying-to-activate-plugin/#post-12762438)
 * Hi Carlos,
 * I’m not fimiliar with AWS RDS MySql, but there are two things that stand out:
   (
   1) You seem to be using PHP cli (2) You are using PHP 5.4
 * PHP 5.4 should work fine I think. Is it possible for you to use cgi instead of
   cli?
 * Best regards,
    Peter
 *  Thread Starter [ssbcvp](https://wordpress.org/support/users/ssbcvp/)
 * (@ssbcvp)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-trying-to-activate-plugin/#post-12765443)
 * Just in case you wonder, aws rds MySql it’s the regular MySql hosted on AWS Cloud.
 * About your PHP tip, I have updated my PHP to the latest version and now it’s 
   fully working.
 * By the way congrats by your wonderfull work on this amazing plugin ! I’m 100%
   suprised by all the resources !
 * Best Regards,
 * Carlos
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-trying-to-activate-plugin/#post-12767633)
 * Hi Carlos,
 * Great you solved it! And thanks for your compliment! 🙂
 * Have you updated to PHP7? Or updated to CGI? Or both?
 * Thanks,
    Peter

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

The topic ‘Parse error trying to activate Plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-trying-to-activate-plugin/#post-12767633)
 * Status: resolved