Strange xtheme errors

Hello

When I save my front page I am suddenly getting the following errors

Warning: Cannot modify header information - headers already sent by (output started at /home3/r8vrjjo8/public_html/motherculture.love/wp-content/themes/x-child/functions.php:1) in /home3/r8vrjjo8/public_html/motherculture.love/wp-admin/includes/misc.php on line 1116

Warning: Cannot modify header information - headers already sent by (output started at /home3/r8vrjjo8/public_html/motherculture.love/wp-content/themes/x-child/functions.php:1) in /home3/r8vrjjo8/public_html/motherculture.love/wp-includes/pluggable.php on line 1216

do you know what this could mean/how to fix it?

Login info attached below

Hi There,

Thanks for writing in! It seems that you have added some customizations to your child theme and these errors are coming from your child theme.

First you can try switching to your parent theme to see if you’re getting this errors from child theme. Then you need to check your customizations (check the line numbers 1116, 1216).

Thanks!

Hmmm can you please help me figure this out? I made some changes to my child theme yesterday that I was told to make in a different support topic (https://theme.co/apex/forum/t/add-link-at-top-of-woocommerce-shop-page/32504/2) and now I am experiencing these problems. I have checked my css and the lines only go to the 600s, nowhere near 1116, where can I find these line numbers?

Thank you so much!!

Hi there,

Based on the code that you have added in the other thread, it seems to be caused by the pretty quotes instead of '.

Kindly try:

// Additional Functions
// =============================================================================

function x_wp_title( $title ) {

  if ( is_front_page() ) {
    return get_bloginfo( 'name' );
  } elseif ( is_feed() ) {
    return ' | RSS Feed';
  } else {
    return trim( $title ) . ' | ' . get_bloginfo( 'name' ); 
  }

}

add_filter( 'wp_title', 'x_wp_title' );

add_filter( 'wp_image_editors', 'change_graphic_lib' );

function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}

add_action('woocommerce_before_shop_loop', 'custom_cartlink', 9);
function custom_cartlink() {  ?>
  <div class="x-container mbm" style="clear:both;text-align: center;"><a class="custom-cart-link" href="http://www.motherculture.love/my-cart/" style="outline: none;"><span>SHOPPING CART</span></a></div>
<?php
}

In case the issue persists, please provide us with your FTP details so that we can access the code directly.

Thank you.

Hey Jared,

I don’t see the warnings in your site. Have you resolved this? If the error comes back, try following this guide

Thanks…

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