Headers error | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer