• Resolved richmondartscoalition

    (@richmondartscoalition)


    Now receiving the following error message instead of a website:

    Parse error: syntax error, unexpected ‘[‘ in /home/richarts/public_html/wordpress/wp-content/plugins/quick-paypal-payments/quick-paypal-payments.php on line 2381

    The other topic’s fix didn’t work.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter richmondartscoalition

    (@richmondartscoalition)

    Update: Deleting the entire plug-in’s folder via the cPanel file manager managed to unbreak my website, but I’d rather still be able to use this plug-in.

    What version of PHP are you using?

    Upgrading to at least php 5.6 fixes the problem.

    However, version 5.* is no longer supported so you should consider upgrading to version 7 which is faster, more stable and more secure.

    Hello, Aerín, same problem here. Impossible to see nothing of the web just the above message. this is a complete catastrophe for a sie in production. Updatin php in a some server is not so easy, and take a lot. Is there anyother way to fix this even temporarily just changing the code ([ in line 2381) ????
    tnx

    Support for php 5.6 ended back the beginning of 2017. Everyone who has upgraded to PHP7 now has a working plugin.

    One test site of mine is still running php 5.6 and it still works – so I have no idea how to fix this as I can’t replicate the issue. And over 1200 users have got the latest version of QEM so this does seem to be an isolated problem.

    Upgrading PHP is really simple in cpanel – took me less than a minute to do. Plesk probably has a similar upgrade function.

    Sorry I can’t help more

    Anonymous User

    (@anonymized-1391468)

    There is a syntax error on line 2381:

    $x = $order->dump()['PAYMENTREQUEST_0_ITEMAMT'];

    • This reply was modified 7 years, 7 months ago by Anonymous User.

    I am receiving the same issue as well. I’d like to use this plugin but the issue is 100% with the line on 2381. I’m running PHP7.

    Any advice other than to not use the plugin?

    Thanks

    Can you please download and install this update:

    https://quick-plugins.com/quick-paypal-payments/qpp-update/

    And tell me if it fixes things

    Hey,

    Yup, that fixes it.

    Thanks!

    Excellent!

    I will upload the update to the repository

    Quick fix remove the (). and problem solved.
    $x = $order->dump()[‘PAYMENTREQUEST_0_ITEMAMT’];

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Broken website! Parse error after update!’ is closed to new replies.