Support » Plugin: Jetpack by WordPress.com » Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ – simple-payments.php

  • Resolved arindamg

    (@arindamg)



    I just updated to the latest Jetpack 6.3 updated approx two hours back from now. And it broke my site with below error. I had to disable Jetpack manually via file manager.

    Is it something that recent update broke?

    Anyone is also facing this?

    Parse error: syntax error, unexpected '[', expecting ')' in /xxx/wp-content/plugins/jetpack_disabled/modules/widgets/simple-payments.php on line 220

    I tried to reinstall but while activating I am getting same above error with “Plugin could not be activated because it triggered a fatal error.”

Viewing 15 replies - 16 through 30 (of 46 total)
  • Plugin Support pmciano

    (@pmciano)

    @swissmountainleader

    To clarify, were you seeing the Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ – simple-payments.php error, removed the simple payment module, and are now seeing the PHP message: PHP Fatal error: Uncaught Error error because you removed it?

    The latest Jetpack update should have addressed the original Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ – simple-payments.php error.

    Once you give us some additional clarification, we will be more than happy to continue addressing your issue.

    That’s the error I’ve had on both versions today. I just removed the module and widget to fix that error both times.

    Hi!

    We have a few RHEL7 servers (Apache 2.4 + PHP 5.4 by RedHat) running WordPress 4.9.6. All servers have started to get some kind of errors after JetPack was updated to 6.3, and still have trouble now running 6.3.2. We use multi-blogs configuration on all servers, and few of the sub-blogs (not all) fail. Errors says:

    PHP Fatal error: Class ‘Jetpack_Simple_Payments’ not found in /XXX/wordpress/wp-content/plugins/jetpack/modules/widgets/simple-payments.php on line 479

    We also get warning as the following:

    PHP Warning: Illegal offset type in isset or empty in /XXX/wordpress/wp-content/plugins/jetpack/modules/sharedaddy/sharing-service.php on line 276

    The problem is quite serious to us. We are trying to disable JetPack on all sites waiting for a fix.

    • This reply was modified 3 months, 2 weeks ago by  pelletta.

    I have updated to version 6.3.2, my problem of

    “Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /xxx/wp-“

    is fixed!
    My site works now. Thank you @htdat!

    @pelletta that’s the same error I get with Nginx and PHP 7

    You don’t need to disable Jetpack, just remove the following files/directories:

    wp-content/plugins/jetpack/modules/simple-payments/
    wp-content/plugins/jetpack/modules/widgets/simple-payments/
    wp-content/plugins/jetpack/modules/widgets/simple-payments.php

    Plugin Support pmciano

    (@pmciano)

    @pelletta @swissmountainleader

    Could you both please submit inquiries here?

    http://jetpack.me/contact-support/

    Include a link to this thread, as well as your server’s error log, and we will be glad to continue helping you with this.

    I would appreciate it if someone could give me the step-by-step instructions on how to resolve this problem. I am responsible for this web-site by default and am struggling to understand how to fix the problem when I can’t even access the admin pages.

    We use FatCow to manage the files(?). I have deleted the plugins (thank you SwissMountainLeader for giving the full paths), but I don’t know what the next step is to make the website operational again.

    Thank you for any and all help anyone can provide.

    Plugin Support pmciano

    (@pmciano)

    @meeksbayfirecom

    I am responsible for this web-site by default and am struggling to understand how to fix the problem when I can’t even access the admin pages.

    Which site? Can you confirm the site’s address?

    Multiple users have replied in this thread and clarification would be appreciated.

    Also, what kind of problem are you encountering when trying to access the admin pages of your site?

    If you’d rather reply privately, you can do so here (include a link to this thread in your inquiry):

    http://jetpack.me/contact-support/

    Thank you.

    Which site? Can you confirm the site’s address? MeeksBayFire.com

    Multiple users have replied in this thread and clarification would be appreciated.

    Also, what kind of problem are you encountering when trying to access the admin pages of your site? I receive the Parse Error message. Specifically: Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /hermes/walnaweb13a/b392/moo.meeksbayfirecom/weeksbay/wp-content/plugins/jetpack/modules/widgets/simple-payments.php on line 220

    If you’d rather reply privately, you can do so here (include a link to this thread in your inquiry):

    http://jetpack.me/contact-support/

    Thank you.

    Plugin Support pmciano

    (@pmciano)

    @meeksbayfirecom

    The Parse Error you mentioned should have been addressed in the Jetpack 6.3.2 update:

    https://jetpack.com/2018/07/04/jetpack-6-3-2-simple-payment-fix/

    To get your site up again, first manually remove the currently installed version of Jetpack:

    https://codex.wordpress.org/Managing_Plugins#Uninstalling_Plugins

    Then, perform a clean install of the plugin:

    https://wordpress.org/plugins/jetpack/

    Before you perform the clean re-install, you may want to create a staging version of your site where you can test this out first, to avoid any further disruptions to your live site:

    https://wordpress.org/plugins/wp-staging/

    We hope that helps, and if you have additional questions, please let us know.

    Hey @swissmountainleader. Any chance you are running a multisite? The error you are seeing is similar to the one I’m seeing, which is different than the square bracket parsing thing this thread seems to be addressing.

    Check out this thread, where it looks like they are working on a fix for the error you and I are seeing:

    https://wordpress.org/support/topic/fatal-error-on-multisites/#post-10475452

    SwissMountainLeader

    (@swissmountainleader)

    I’m not using MU but I have fixed our issue, I’ve removed and reinstalled JetPack along with a few general bits of housekeeping where the installation had got messy over time.

    I guess I’m not being clear. I am unable to even access the Administrative Screen in order to edit the plugins. If you go to my website: http://www.meeksbayfire.com, you will see exactly what I see when I attempt to log onto the admin site.

    As far as I can tell, all of the instructions require me to be able to at least access the admin console. If there is a way to get into the console it would be helpful.

    Thanks,

    SwissMountainLeader

    (@swissmountainleader)

    it’s not uncommon for a site to be so broken that the wpadmin doesn’t work. In that case you’ll need command line or FTP access. Do you have those?

    All Resolved! I went to FatCow and they were able to resolved the entire issue.

    Thank you for your attempts.

Viewing 15 replies - 16 through 30 (of 46 total)
  • The topic ‘Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ – simple-payments.php’ is closed to new replies.