I have been using a Shapely Child Theme with no issues for years. Recently I had issue and I cannot login anymore into my wordpress. I had to contact Bluehost and they told that the server is reporting the following error:
[23-May-2025 20:51:35 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/alessaw5/public_html/wp-content/themes/shapely-child/functions.php:28)
My child theme is basic and it’s the following:
<?php function my_theme_enqueue_styles() { $parent_style = 'shapely-style'; // This is 'shapely-style' for the Shapely theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); / function copyright_notice() { echo "2018. Copyright PROVA All Rights Reserved"; } / add_filter ('esc_html', 'wpse_245817_esc_html', 100, 2 ); function wpse_245817_esc_html( $safe_text, $text ) { if ( $safe_text == 'Theme by %1$s Powered by %2$s' ) { return ''; } return $safe_text; } ?>any advice on how to solve it? I have to deactivate it and activate Shapely Child so that at least i have access to wordpress interface. Thank you.