Cannot make any changes to header

Hello!

I’m having major issues at the moment with one of my websites using Pro, one of the header elements is almost stuck and we cannot change it out to a different one. Even when deleting the affected header itself from Cornerstone, it is still appearing on the front end?

I have isolated this just to Pro, when all plugins are disabled the error still occurs.

All caching has been disabled and the error still occurs.

When talking with my hosting provider, and they cannot see any issues with conflicts and believe the issue is within the theme itself.

I have tried backdating versions of php, from 8.2 - 8.1 - 8 - 7.4 but this makes no difference

I have the following debug log errors yesterday:
[16-Dec-2024 13:22:12 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/sites/1b/7/7e1d91b456/staging_html/wp-includes/class-wp-hook.php:85) in /usr/share/php/wp-stack-cache.php on line 1119

However today:
[17-Dec-2024 09:22:25 UTC] Automatic updates starting…
[17-Dec-2024 09:22:25 UTC] Automatic plugin updates starting…
[17-Dec-2024 09:22:25 UTC] Automatic plugin updates complete.
[17-Dec-2024 09:22:25 UTC] Automatic theme updates starting…
[17-Dec-2024 09:22:25 UTC] Automatic theme updates complete.
[17-Dec-2024 09:22:25 UTC] Automatic updates complete.

The issue is still persisting today

Just tried downgrading the theme to see if this made any difference and got the following:

Notice : Function _load_textdomain_just_in_time was called incorrectly . Translation loading for the __x__ domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/sites/1b/7/7e1d91b456/staging_html/wp-includes/functions.php on line 6114

Warning : Cannot modify header information - headers already sent by (output started at /home/sites/1b/7/7e1d91b456/staging_html/wp-includes/functions.php:6114) in /home/sites/1b/7/7e1d91b456/staging_html/wp-admin/includes/misc.php on line 1438

Warning : Cannot modify header information - headers already sent by (output started at /home/sites/1b/7/7e1d91b456/staging_html/wp-includes/functions.php:6114) in /home/sites/1b/7/7e1d91b456/staging_html/wp-includes/functions.php on line 7137

Hello @bencroftweb,

Thanks for writing to us.

I would suggest you please ensure that your theme, plugin, and WordPress core are updated, please note that you must purge all the cache. In case you are using the cache plugin you need to purge all the cache and temporarily deactivate the cache plugin and recheck it. I would suggest you troubleshoot a few common issues before we check it on our end.

If it doesn’t work for you please copy your live website to your staging area and send your details in a secure note so that we can investigate your setting without breaking your live site. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • FTP Details

You can find the Secure Note button at the bottom of your posts

Thanks

Hello

Thank you for getting back to me. I’ve provided the details in the post above via secure note.

Hello @benchweb,

Thank you for the update.

We tried logging in to the dashboard, but it’s no longer accessible due to the error. We also tried to connect via FTP, but the credentials provided above seem to be incorrect. Please double-check the FTP information.

Best regards,
Ismael

Hello Ismael

I’ve updated the information in the secure note above

Thank you for the update.

Now, we can’t access the dashboard using the credentials above – password is incorrect:

Error: The password you entered for the username XXXXX is incorrect. Lost your password?

Please check the info carefully or provide another admin account.

Hi Ismael

I’ve just tried the login again on my end and it appears to be working. Would you be able to try it again?

Thank you for the update.

We were able to log in, but we are still not sure what is causing this issue. We created a new header called “Test Header” and applied it as the header for the entire site, but it didn’t take effect. We also adjusted the conditions of the current “Main Header”, but the issue persists. We noticed that there is a server cache, even though no cache plugins are enabled. Have you tried asking your hosting provider to temporarily disable this server cache feature?

The Main Header is now displaying in the Headers list. Have you tried deleting it manually?

I’ve spoken to my hosting provider and they have confirmed that all caching has been disabled

Hi Ismael

Yes this was one of the first things I tried - Even when deleting the header it will still appear on the front end

Hey @bencroftweb,

We are also uncertain about your issue. I highly recommend that you try to push a copy of your live website again, and we will troubleshoot your issue. However, this is mostly a cache-related issue.

Thank you.

Hi Marc

Thank you for getting back to me. I’ve applied a new copy of the live site onto the staging, the log on should be the exact same

Thank you for the update.

We tried disabling StackCache and all plugins for the moment and deleted the Main Header again, but the issue persists. Would you mind validating Pro so that we can rule this out as the cause? We apologize for the inconvenience.

Sorry for the confusion. You need to edit the page on CS and reset the Document > Settings > Layout Assignments. We edited the home page and selected the Main Header Second. It is now displaying the new header. Please make sure to purge the cache before checking the page

Hi Ismael

Thank you for your help with this!

Hey @bencroftweb,

You’re most welcome!