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
The topic ‘Parse error trying to activate Plugin’ is closed to new replies.