• Resolved vitos313

    (@vitos313)


    Hi everyone/ Have some troubles with Woo/
    PHP Parse error:? syntax error, unexpected ‘)’ in

    //wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php?on line 521

        } 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 1 year, 5 months ago by vitos313.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vitos313

    (@vitos313)

    Oh forgot. when I deleted “;” in 521 , I received 404

    I have the same error..

    Just upgraded from PHP 7.2 to 7.4 and it still doesn’t working

    Thread Starter vitos313

    (@vitos313)

    Thanks. I have php 8.1

    Saif

    (@babylon1999)

    Hello @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 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/.

    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.