agileware / wp-civicrm-ux

WordPress CiviCRM UX - User Experience enhancements
GNU General Public License v2.0
7 stars 12 forks source link

Can't enable latest update #12

Closed jbonlinea closed 3 years ago

jbonlinea commented 3 years ago

Hi there,

I've git pull the repo succesfully but can't activate the plugin, getting this error :

Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /home/html/wp-content/plugins/wp-civicrm-ux/shortcodes/civicrm/api4-get.php on line 43

Regards

Otherwise I used the 1.1.2 and it work's

my actual set-up is wp 5.8.1 civi 5.41 and various civi related plugins (ACU, profile sync, member sync, etc.)

christianwach commented 3 years ago

@jbonlinea That's PHP 7.4 syntax. The plugin should ideally declare the minimum required version of PHP in its header if it's unusual.

agileware-justin commented 3 years ago

Thanks for reporting @jbonlinea and also for the advise @christianwach

@jbonlinea you will need to update to PHP 7.4 with the latest version. Hope that's possible. I've added the requirements to the plugin in 1.8.2

jbonlinea commented 3 years ago

Hi,

Thank's for the feedback,

Yes I can switch to 7.4, but I've been fooled by the Civicrm install guide php version table, not paying attention that the Civ ESR version only was not compatible with 7.4