Title: php error
Last modified: May 22, 2022

---

# php error

 *  Resolved [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/)
 *     ```
       Hi guys 
   
       I am struggling with this error that's causing me sleepless nights. Every time I activate woocommerce it cause a critical error and this is the error log 
   
       Iv tried almost everything, disabling plugins, changing Php, even rolling back but the issue persists.
   
       Some help would be appreciated greatly.
       ```
   
 * [22-May-2022 12:42:30 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting
   variable (T_VARIABLE) in /home/i2tratvi/public_html/wp-content/plugins/woocommerce/
   vendor/symfony/polyfill-php80/bootstrap.php on line 29
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-525%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/php-error-525/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-525/page/2/?output_format=md)

 *  [Mashi](https://wordpress.org/support/users/shaonback2/)
 * (@shaonback2)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15667896)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/)!
 * Do you have WooCommerce active? If so then please share your System Status on
   this thread so we can take a look at your configuration and check the issue further:
 * System Status: You can find it via WooCommerce > Status. Select “Get system report”
   and then “Copy for support”. Once you’ve done that, paste it here in your response.
 * —
 * **If you can’t activate then please make sure that you have Recommended server
   configuration.** 👉 [https://woocommerce.com/document/server-requirements/](https://woocommerce.com/document/server-requirements/)
 * Please keep us posted, we will be more than happy to help moving forward. 🙂
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15668009)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * `PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE)`
   error is usually caused by a conflict.
 * When trying to access your site, I am able to see that it has a critical error:
 * [https://snipboard.io/SGiEDZ.jpg](https://snipboard.io/SGiEDZ.jpg)
 * You should have received an email after your website crashed, please check and
   follow the instructions within that email to regain access to your dashboard.
 * > Iv tried almost everything, disabling plugins, changing Php, even rolling back
   > but the issue persists.
 * I see that you have mentioned disabling plugins however, could you please confirm
   that you changed your theme, temporarily, to [Twenty Twenty](https://wordpress.org/themes/twentytwenty/)
   or [2022](https://wordpress.org/themes/twentytwentytwo/) and then disabled all
   plugins, followed by attempting to activate WooCommerce?
 * Please also provide the **System Status** and **Error log** as requested by [@shaonback2](https://wordpress.org/support/users/shaonback2/)
   in order for us to better understand your site setup.
 * Thanks!
    -  This reply was modified 3 years, 10 months ago by [Roxy](https://wordpress.org/support/users/roxannestoltz/).
    -  This reply was modified 3 years, 10 months ago by [Roxy](https://wordpress.org/support/users/roxannestoltz/).
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677433)
 * so i disabled all the plugins and rolled back woocommerce, this is what I got
 * [https://snipboard.io/9BZ7iH.jpg](https://snipboard.io/9BZ7iH.jpg)
 * [https://snipboard.io/GtxHM3.jpg](https://snipboard.io/GtxHM3.jpg)
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677605)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * Thanks for providing the screenshots, they have certainly shared more insight.
 * Firstly, I am able to see that you have an outdated version of WooCommerce, please
   could you update the WooCommerce plugin in order to obtain optimal functionality.
   Below is a guide on how to do this:
 * [https://woocommerce.com/document/how-to-update-woocommerce/](https://woocommerce.com/document/how-to-update-woocommerce/)
 * Additionally, please update your WooCommerce Database to match the core version.
   This can be done via **WooCommerce** > **Status** > **Tools** > **Update database**.
   Below is more detail documentation on this:
 * [https://woocommerce.com/document/how-to-update-woocommerce/#woocommerce-data-update-notice](https://woocommerce.com/document/how-to-update-woocommerce/#woocommerce-data-update-notice)
 * Please ensure that you have a good [backup](https://woocommerce.com/document/backup-wordpress-content/)
   of your [full site and database](https://wordpress.org/support/article/wordpress-backups/)
   in place before doing the updates, so that, should something go wrong, you are
   able to easily restore your site to a functioning state.
 * Most hosting providers have this included in the subscription however, you may
   also consider using a service such as [Jetpack](https://jetpack.com/support/backup/),
   or a plugin like [UpdraftPlus](https://wordpress.org/plugins/updraftplus/).
 * Please let us know how this goes.
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677630)
 * Like I said in my earlier explanation I had to roll back woocommerce on order
   to get a screenshot otherwise I can’t access the site because it generates a 
   critical error. Yes I tried to disable all the plugins and no that doesn’t help,
   I tried updating the php version up to version 8.0 and that doesn’t help either.
   Like I said again IV tried almost everything
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677653)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * Thank you for providing clarity on the state of your site when providing the 
   screenshots.
 * > Yes I tried to disable all the plugins and no that doesn’t help, I tried updating
   > the php version up to version 8.0 and that doesn’t help either. Like I said
   > again IV tried almost everything
 * I understand that you have disbled all plugins, and updated the PHP version however,
   please could you confirm as to whether you have temporarily changed your theme
   to the default WooCommerce theme, [Storefront](https://woocommerce.com/storefront/)
   or [Twenty Twenty two](https://wordpress.com/theme/twentytwentytwo) while all
   plugins, except WooCommerce, were deactivated, just to rule out a theme/plugin
   conflict?
 * Thanks!
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677657)
 * Is possible that I can just give you login details and you can try the site? …
   What usually happens is it will work fine for a few hours and the error reaapears.
   Iv even attempted updating the theme files to the most recent version and that
   doesn’t seem to either.
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677665)
 * The theme has been working fine for nearly 2 and half years and is manually updated
   so I did eliminate that possibility
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677686)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * > Is possible that I can just give you login details and you can try the site?
 * No, please never ever share any login credentials on the forum, as a safety measure
   for both the forum volunteers, as well as for your site. This is not allowed,
   as per the forum guidelines: [https://wordpress.org/support/guidelines/](https://wordpress.org/support/guidelines/)
 * As a next step, please could you share a copy of any fatal error log found under**
   WooCommerce** > **System Status** > **Logs**.
 * Once you do this, you can paste your response here.
 * Thanks!
    -  This reply was modified 3 years, 10 months ago by [Roxy](https://wordpress.org/support/users/roxannestoltz/).
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677701)
 * What do you suggest is the way forward, the only way the site runs is if the 
   woocommerce plugin is disabled and IV got anxious client grilling me over downtime
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677880)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * I am busy looking into this for you 🙂
 * Please could you clarify which PHP version you had prior to the rollback?
 * You mentioned you updated to PHP version 8.0, and your screenshot is showing 
   PHP version 7.0.33 (after rollback) however, have you, at any point, switched
   to PHP version 7.4 and then tried to install WooCommerce?
 * Look forward to your reply.
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677891)
 * I tried pho version 7.2 as recommended by the plugins latest update. Still no
   joy
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677918)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * Thanks so much for confirming!
 * Could you please try and change your PHP version to 7.4 **specifically** and 
   see if that makes any difference?
 * Please see more information on server requirements for WooCommerce here:
 * [https://woocommerce.com/document/server-requirements/](https://woocommerce.com/document/server-requirements/)
 * Before doing this, please ensure that you have a good [backup ](https://woocommerce.com/document/backup-wordpress-content/)
   of your [full site and database](https://wordpress.org/support/article/wordpress-backups/)
   in place before doing the updates, so that, should something go wrong, you are
   able to easily restore your site to a functioning state.
 * Most hosting providers have this included in the subscription however, you may
   also consider using a service such as [Jetpack](https://jetpack.com/support/backup/),
   or a plugin like [UpdraftPlus](https://wordpress.org/plugins/updraftplus/).
 * Please let me know how this goes.
 *  Plugin Support [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * (@tamirat22)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15677956)
 * Hello [@dumingu](https://wordpress.org/support/users/dumingu/)!
 * Thanks for following up about the issue!
 * > I tried pho version 7.2 as recommended by the plugins latest update. Still 
   > no joy
 * Please note PHP version 7.4 or greater is the minimum requirement for Woo commerce
   currently.
 * Could you please follow these steps in order and get back to us?
 * 1. Disable all the plugins and keep just WooCommerce.
 * 2. Enable [Storefront ](https://woocommerce.com/products/storefront/)as your 
   theme.
 * 3. **Update the PHP version to 7.4** as is the minimum version per [requirements right now](https://woocommerce.com/document/server-requirements/).
 * 4. Update WooCommerce.
 * 5. Double-check if the problem persists just by using WooCommerce in this environment.
 * Things should work using that PHP version.
 * > What do you suggest is the way forward
 * In the meantime, if interested, you may seek professional WordPress support from
   [WP Jobs](http://jobs.wordpress.net/) but don’t hesitate to reach back to us 
   with more inquiries.
 * I hope this helps!
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/#post-15678084)
 * [@tamirat22](https://wordpress.org/support/users/tamirat22/) tanking years of
   work because of a buggy plugin isn’t exactly the solution we are going for here,
   neither is hiring a new dev who is going to go through the same channels but 
   thank you for chipping in with your 2 cents
 * [@roxannestoltz](https://wordpress.org/support/users/roxannestoltz/) i hard coded
   the php version to 7.4 in .htaccess , il reactivate and see if works. if there
   is anything else that i can try please let me know

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/php-error-525/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-525/page/2/?output_format=md)

The topic ‘php error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 21 replies
 * 6 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15704707)
 * Status: resolved