• Resolved ssbcvp

    (@ssbcvp)


    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

    (@peterschulznl)

    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

    (@ssbcvp)

    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

    (@peterschulznl)

    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.