• Resolved osoibol

    (@osoibol)


    Hi, I’m having this problem since I’ve tried to update the plugin.

    I can’t install it anymore and it stopped working.

    Plugin can’t be loaded due to a fatal error

    Parse error: syntax error, unexpected ‘[‘ in /home/sites/suisse.coopi.org/wp-content/plugins/smart-forms/smartforms.php on line 111

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    That look to be an issue with old php versions. Could you try to open the file smartforms.php and change this:

    $allowedStyles=[‘admin-bar’,’colors’,’ie’,’wp-auth-check’];

    for this:

    $allowedStyles=array(‘admin-bar’,’colors’,’ie’,’wp-auth-check’);

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ups sorry, forgot to mention, if you prefer you can create a support ticket at smartforms.uservoice.com and give me access to the admin screen there (please do NOT share credentials here as this forum is public) so i can do the change myself.

    Regards!

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Also the line 140 might have the same compatibility issue:

    $allowedScripts=[‘jquery’,’common’,’jquery-ui-core’,’admin-bar’,’utils’,’svg-painter’,’wp-auth-check’];

    this should be changed to:
    $allowedScripts=array(‘jquery’,’common’,’jquery-ui-core’,’admin-bar’,’utils’,’svg-painter’,’wp-auth-check’);

    I am going to apply this compatibility fix in the upcoming release but if you want you can create a support ticket at smartforms.uservoice.com and i can help you apply this fix in your site right away.

    Regards!

    Thread Starter osoibol

    (@osoibol)

    Thanks! that fixed the problem for me.

    However I will try to contact my hosting providers to update PHP to a newer version.

    Much appreciated for your fast response!

    • This reply was modified 8 years, 4 months ago by osoibol.
    Plugin Author EDGARROJAS

    (@edgarrojas)

    Yup that is the one i found in my latest comment =):

    Also the line 140 might have the same compatibility issue:

    $allowedScripts=[‘jquery’,’common’,’jquery-ui-core’,’admin-bar’,’utils’,’svg-painter’,’wp-auth-check’];

    this should be changed to:
    $allowedScripts=array(‘jquery’,’common’,’jquery-ui-core’,’admin-bar’,’utils’,’svg-painter’,’wp-auth-check’);

    I am going to apply this compatibility fix in the upcoming release but if you want you can create a support ticket at smartforms.uservoice.com and i can help you apply this fix in your site right away.

    Thread Starter osoibol

    (@osoibol)

    Yes I wrote it while you where writing… thank you very much!

    Plugin Author EDGARROJAS

    (@edgarrojas)

    yes i highly recommend you to update to PHP 7 because it offer a huge performance improvement =).

    Let me know if you have any other question or find any other issue =).

    Regards!

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

The topic ‘Fatal Error : Parse Error in line 111’ is closed to new replies.