• Resolved ronmaiden20

    (@ronmaiden20)


    Hi,

    I have an error when i activate the plugin :

    Parse error: syntax error, unexpected ‘[‘ in /home/XXX/public_html/wp-content/plugins/list-field-number-format-for-gravity-forms/list-field-number-format-for-gravity-forms.php on line 640

    There is no ‘]’ on line 640.

    Do you have an idea what could cause this problem ?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ronmaiden20

    (@ronmaiden20)

    Finally resolve my problem on line 640 and line 678 :

    Replace : $submit_value = [];
    By : $submit_value = array();

    Replace : $is_valid_number= [];
    By : $is_valid_number= array();

    Thank you for this great plugin !

    Plugin Author ovann86

    (@ovann86)

    Hey,

    Thanks for finding the fix and sharing.

    I’ve fixed it in version 1.1.1.

    I believe that message was triggered because older versions of PHP don’t support creating arrays in that way – which means your web server is probably running PHP version 5.3.

    If you can update your php version I would look into it (your host will be able to help you, but usually it’s as simple as logging into the management system, e.g. website.com/cpanel and going into ‘php version’ and changing it to the latest. then do a quick test to make sure things work still.). PHP version 7 had pretty significant performance benefits.

    Thanks again.

    Plugin Author ovann86

    (@ovann86)

    Adding – I’m particularly excited about this plugin – I think it adds a lot to what Gravity Forms can do.

    I wrote this plugin to replace paper/Excel budgets – so I needed repeatable rows, row calculations, column totals, various number formats, ability to specify decimal places, rounding rules, and range validation. — which I’m hoping all works – but as I’ve learned, numbers … user provided data … very complicated, e.g. stripping out non-numeric characters, formatting with commas/decimals, dollar symbol etc.

    Any how – I would appreciate any feedback or suggestions.

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

The topic ‘Plugin can’t be activated’ is closed to new replies.