Title: php error
Last modified: May 22, 2022

---

# php error

 *  Resolved [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [4 years 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%2Fpage%2F2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 16 through 21 (of 21 total)

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

 *  Plugin Support [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * (@tamirat22)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15678206)
 * Hello [@dumingu](https://wordpress.org/support/users/dumingu/)!
 * Thanks for following up again!
 * > tanking years of work because of a buggy plugin isn’t exactly the solution 
   > we are going for here
 * I hear you!
 * It sounds like a staging site would be a good idea. If your host doesn’t offer
   that option, we recommend [WP Staging](https://wordpress.org/plugins/wp-staging/)
   for quickly spinning up a new test site.
 * > neither is hiring a new dev who is going to go through the same channels
 * The reason I offered the professional WordPress support link was due to the earlier
   offer to share your login details to your environment on this forum and let others
   handle the tasks for you. Kindly disregard it if you are not interested, please.
 * In the meantime, do let us know the results after you go through the conflict
   test procedures provided earlier.
 * Thanks!🙂
 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15678651)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/) ,
 * Perfect!
 * Please do let me know the outcome and we will take it from there.
 * Best,
 *  Thread Starter [tech-chat](https://wordpress.org/support/users/dumingu/)
 * (@dumingu)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15679730)
 * Sadly no joy, the issue persists.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15679788)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/),
 * The following step would be updating your Altair theme. You’re running version
   5.1 but there is a newer version available according to the [theme changelog](https://themeforest.net/item/tour-travel-agency-altair-theme/9318575#:~:text=Supercache%20plugin%20support-,changelog,-%3D%20V5.2%20%E2%80%93%2005.09.2021%20%3D%0A*%20Update).
 * After that, if the issue persists, you may want to enable debug logging in WordPress.
   To do that, edit the `wp-config.php` file in the root folder of the site on the
   server. Add this:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_DISPLAY', false );
       define( 'WP_DEBUG_LOG', true );
       ```
   
 * You must insert this BEFORE `/* That's all, stop editing! Happy blogging. */`
   in the `wp-config.php` file.
 * As errors are logged, they should appear in `wp-content/debug.log`. You can open
   this file in a text editor and go from there.
 * Here’s more information on debugging in WordPress:
 * > [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
 * If you encounter difficulties you can ask your host to help you enable debug 
   logging.
 * We will be here to assist further if needed.
 *  [erwinbriantan](https://wordpress.org/support/users/erwinbriantan/)
 * (@erwinbriantan)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15689060)
 * Change your .htaccess PHP version from 70 to 74. It worked for me.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15704707)
 * Hi [@dumingu](https://wordpress.org/support/users/dumingu/),
 * It’s been a while since we last heard back from you. I’m going to mark this thread
   as resolved.
 * Hopefully, you were able to find a way forward with the issue and the above info
   was useful to you.
 * Please feel free to create a new thread on the forum if you need further help.
 * Thanks.

Viewing 6 replies - 16 through 21 (of 21 total)

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

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: [4 years ago](https://wordpress.org/support/topic/php-error-525/page/2/#post-15704707)
 * Status: resolved