Wordpress Chronoform Ver. 6.0.19 - Fatal Error

Resolve a fatal error when activating ChronoForms 6 on WordPress.

Overview

The error occurs because the plugin uses PHP array shorthand syntax incompatible with older PHP versions like 5.3.
Upgrade your server's PHP version to at least 5.6 to support the modern syntax used by the plugin.

ap apsalv 04 Jul, 2018
Hi,

I'm migrating my website from Joomla to Wordpress.
So I downloaded Chronoform 6.0.16 from your website and I installed it.

When I try to Activate it, I receive the following fatal error:

Parse error: syntax error, unexpected '[' in / ........ /wp-content/plugins/chronoforms6/chronoforms6.php on line 87

Line 87 is return [$first];
 ///FRONT
function empty_page($posts){
$first = new stdClass();
$first->post_content = '[Chronoforms6 chronoform="'.$_GET['chronoform'].'"]';

return [$first];
}

I'm using Wordpress 4.9.6–it

Help, please
Gr GreyHead 05 Jul, 2018
Hi apsalv,

Please try removing the [] from that line - it doesn't look like valid PHP to me.

Bob
ap apsalv 10 Jul, 2018
Answer
Hi Grey, thanks.
I solved only upgrading PHP to version 5.6 (it were 5.3), and now install without warning.
This topic is locked and no more replies can be posted.