Title: PHP Parse error
Last modified: October 9, 2023

---

# PHP Parse error

 *  Resolved [vitos313](https://wordpress.org/support/users/vitos313/)
 * (@vitos313)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/)
 * Hi everyone/ Have some troubles with Woo/
   PHP Parse error:  syntax error, unexpected‘)’
   in
 * /[/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php](http://usa-laptops.com.ua/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php)
   on line 521
 *     ```wp-block-code
           } elseif ( $sync_status['current_pending_count'] > 0 ) {
               $sync_message = sprintf(
                   // translators: %d: number of pending orders.
                   _n(
                       'Sync %d pending order. You can switch data storage for orders only when posts and orders table are in sync.',
                       'Sync %d pending orders. You can switch data storage for orders only when posts and orders table are in sync.',
                       $sync_status['current_pending_count'],
                       'woocommerce'
                   ),
                   $sync_status['current_pending_count'],
               ); // this is  line 521
           }
       ```
   
 * any actions on the site and it goes to 404. If you update the plugin, you get
   404, if you delete it, you get 404. And it’s always the same report. Error on
   line 521.
    -  This topic was modified 2 years, 7 months ago by [vitos313](https://wordpress.org/support/users/vitos313/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [vitos313](https://wordpress.org/support/users/vitos313/)
 * (@vitos313)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/#post-17111461)
 * Oh forgot. when I deleted “;” in 521 , I received 404
 *  [1178team](https://wordpress.org/support/users/1178team/)
 * (@1178team)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/#post-17116089)
 * I have the same error..
 * Just upgraded from PHP 7.2 to 7.4 and it still doesn’t working
 *  Thread Starter [vitos313](https://wordpress.org/support/users/vitos313/)
 * (@vitos313)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/#post-17116141)
 * Thanks. I have php 8.1
 *  [Saif](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/#post-17127867)
 * Hello [@vitos313](https://wordpress.org/support/users/vitos313/),
 * > any actions on the site and it goes to 404. If you update the plugin, you get
   > 404, if you delete it, you get 404. And it’s always the same report. Error 
   > on line 521.
 * I’m sorry to know you’re not able to navigate your website. If you have access
   to the WP CLI, you can update WooCommerce with one command:
 *     ```wp-block-code
       wp plugin update woocommerce
       ```
   
 * If that didn’t help, please attach a copy of your site’s System Status report.
   You can find it via WooCommerce > Status. Select “Get system report” and then“
   Copy for support” (after you scroll down a bit)”. Once done, please paste it 
   here in your reply or via a text-sharing service like [https://gist.github.com/](https://gist.github.com/).
 * Look forward to hearing back from you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Parse 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 parse error](https://wordpress.org/support/topic-tag/php-parse-error/)

 * 4 replies
 * 3 participants
 * Last reply from: [Saif](https://wordpress.org/support/users/babylon1999/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-33/#post-17127867)
 * Status: resolved