Title: Headers error
Last modified: September 13, 2022

---

# Headers error

 *  Resolved [conors37](https://wordpress.org/support/users/conors37/)
 * (@conors37)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/headers-error-2/)
 * 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 3 years, 8 months ago by [conors37](https://wordpress.org/support/users/conors37/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [conors37](https://wordpress.org/support/users/conors37/)
 * (@conors37)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/headers-error-2/#post-16005176)
 * 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.

 * ![](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/)

 * 1 reply
 * 1 participant
 * Last reply from: [conors37](https://wordpress.org/support/users/conors37/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/headers-error-2/#post-16005176)
 * Status: resolved