• Resolved Okolie Raymond

    (@eyekay234)


    I have the latest woocommerce plugin installed on my website and after installing, my website keeps breaking and shows the following error

    I have tried all i know and can do to get this to work but to know avail from downgrading wordpress to upgrading to the latest php version.

    I get the following error below:

    Howdy!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, WooCommerce.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.4.2
    Current theme: Cosmetro (version 3.2.0)
    Current plugin: WooCommerce (version 4.5.1)
    PHP version 5.6.40

    Error Details
    =============
    An error of type E_PARSE was caused in line 56 of the file /home1/eatfres7/public_html/tokako/wp-content/plugins/woocommerce/woocommerce.php. Error message: syntax error, unexpected ‘:’, expecting ‘{‘

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    Please test the following on a staging site:

    > PHP version 5.6.40

    We recommend minimum version 7.2 or greater.

    > WordPress version 5.4.2

    Can you try updating to 5.5?

    A staging site would be a good idea. If your host doesn’t offer that option, we recommend https://www.ads-software.com/plugins/wp-staging/ for quickly spinning up a new test site.

    Thread Starter Okolie Raymond

    (@eyekay234)

    Thanks for your response. When you say Can you try updating to 5.5?” are you talking about wordpress version?

    Thread Starter Okolie Raymond

    (@eyekay234)

    Thanks for your response. When you say Can you try updating to 5.5?” are you talking about wordpress version?

    because i have already updated to that version and still had the issues and decided to downgrade the wordpress version

    Thread Starter Okolie Raymond

    (@eyekay234)

    it keeps giving this error even when i tested it in a staging area

    Fatal error: Cannot redeclare WC() (previously declared in /home1/eatfres7/public_html/tokako/test-tokako/wp-content/plugins/woocommerce1/woocommerce.php:47) in /home1/eatfres7/public_html/tokako/test-tokako/wp-content/plugins/woocommerce/woocommerce.php on line 48

    Hi there,

    Have you already ensured you are using PHP version 7.2 or greater?

    Im having the same problem. I have to run wordpress in recovery mode due to this woocommerce error and cant make back up files. I need backup files to run a staging site to test PHP 7.2 to see if that’s the problem

    • This reply was modified 4 years, 2 months ago by tidythreads.
    • This reply was modified 4 years, 2 months ago by tidythreads.

    Hi there,

    This thread has been inactive for a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issues with latest woocommerce plugin’ is closed to new replies.