• Resolved conors37

    (@conors37)


    Hi,

    I’ve recently received this error in my debug log
    PHP Notice: wc_ajax_headers cannot set headers – headers already sent by on line 0 in public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php on line 70.

    The error occurs when I attempt to log in.

    • This topic was modified 2 years, 6 months ago by conors37.
Viewing 1 replies (of 1 total)
  • Thread Starter conors37

    (@conors37)

    I resolved the issue. In case anyone is experiencing a similar issue, I’ll explain.

    I use siteground hosting and was experiencing trouble signing in through the /wp-admin link. I was able to access the wordpress dashboard through the siteground platform.

    The /wp-admin link was generating two separate errors. The two errors I was receiving were:
    PHP Warning: Cannot modify header information – headers already sent in public_html/wp-includes/pluggable.php on line 1083
    PHP Notice: wc_ajax_headers cannot set headers – headers already sent by on line 0 in public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php on line 70

    I contacted siteground support multiple times supplying them more information to try and resolve the issue and like most hosting/plugin support, I was advised to do the usual. Deactivate themes and deactivate plugins etc. When none of these solutions worked I was told to hire a wordpress developer.

    In a last-ditch attempt I updated the php to 8.0.23. Sitegrounds default php option is set to managed which means siteground automatically handle the php version of your website. I switched to the manual option and set the php version to 8.0.23 and my issue was resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘Headers error’ is closed to new replies.