• Simon

    (@cookymunster1972)


    I can’t log into wordpress to edit my website.

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-content/plugins/woocommerce/includes/class-wc-countries.php:273)

    Please can anyone help, There’s no white space on <?php and there isn’t an end tag like ?> either.

    WordPress version 5.9.3
    Current theme: Storefront (version 4.1.0)
    Current plugin: WooCommerce (version 6.5.1)
    PHP version 8.0.19

    Error Details
    =============
    An error of type E_ERROR was caused in line 623 of the file /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-content/plugins/woocommerce/includes/class-woocommerce.php. Error message: Uncaught Error: Class “WC_Countries” not found in /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-content/plugins/woocommerce/includes/class-woocommerce.php:623
    Stack trace:
    #0 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-includes/class-wp-hook.php(307): WooCommerce->init(”)
    #1 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #2 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #3 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-settings.php(587): do_action(‘init’)
    #4 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-config.php(82): require_once(‘/homepages/18/d…’)
    #5 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-load.php(50): require_once(‘/homepages/18/d…’)
    #6 /homepages/18/d562506311/htdocs/clickandbuilds/mysite/wp-login.php(12): require(‘/homepages/18/d…’)
    #7 {main}
    thrown

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It seems WooCommerce has become corrupted for some reason. It can rarely happen during updates as one possible cause out of several. Use FTP or your hosting account’s file manager to rename the /woocommerce/ directory. This will disable the plugin so you can log in. Once logged in, restore the directory name. Delete the plugin, then re-install it anew.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Cannot modify header information – class-wc-countries.php:273’ is closed to new replies.