Debug Errors related to header

PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/themes/x/framework/legacy/cranium/headers/views/header/base.php:16) in /public_html/wp-includes/pluggable.php on line 948

The code in base.php is:

<?php // ============================================================================= // HEADER.PHP // ----------------------------------------------------------------------------- // The site header. Variable output across different stacks. // // Content is output based on which Stack has been selected in the Customizer. // To view and/or edit the markup of your Stack's index, first go to "views" // inside the "framework" subdirectory. Once inside, find your Stack's folder // and look for a file called "wp-header.php," where you'll be able to find the // appropriate output. // ============================================================================= ?> <?php x_get_view( x_get_stack(), 'wp', 'header' ); ?>

so Line #16 is the x_get_view function. Can you advise what may be causing this warning?

thanks,

Hi There @TheDisneyDad

Thanks for writing in! Most possible cause could be your child theme customizations. If you have an active child theme on your site, try switching to your parent X theme by head over to Appearance -> Themes area.

If not, try disabling your 3rd party plugins except Cornerstone plugin and see if you’re getting the same error. If the issue is resolved, then you can activate your plugins one by one to see which plugin is causing this issue.

If you’re using a caching plugin on your server, make sure to purge your server cache before testing. Follow this tutorial if required (https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/).

Also make sure that you’re fully updated including X theme and Cornerstone. You can refer to the latest version numbers from here (https://theme.co/changelog/) and update accordingly (https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62).

In case if you cannot isolate the issue, provide us with your FTP credentials along with your WordPress login information in a secure note to investigate this issue further.

Let us know how it goes.
Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.