• Resolved wpdavid

    (@wpdavid)


    I’m getting the following error:

    PHP Fatal error: Call to undefined function storefront_html_tag_schema() in /home3/hairglas/public_html/wp-content/themes/storefront-child/header.php on line 10

    As a result, all I see on the site URL is a “white screen”. I’m still able to access the WP Admin.

    I’m using a child theme (a theme I created, storefront-child). When I activate the parent theme the problem goes away.

    I’ve been using a child theme from the “get go” with no problems for several months, and now all of a sudden, one minute it’s working fine and the next it’s not.

    I suspect that the parent theme is no longer being loaded (when my child theme is active), which would explain why the system can’t find the storefront_html_tag_schema() function. But, what caused this? As I said, literally, one minute it was working fine and the next minute not.

    I have not made any recent changes to header.php. I compared my child theme header.php to the parent, and the line of code the system is failing on (line 10) is identical in both.

    I’m running WordPress 4.5.2, Storefront theme 2.0.2.

    I’ve looked at several other forum posts that are related, but I don’t see anything that specifically addresses my problem.

    Any ideas are greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem. ‘Fixed’ it by reverting to storefront 2.0.1: https://wordpress.org/themes/download/storefront.2.0.1.zip

    Actually it seems they removed the storefront_html_tag_schema function from the parent theme along with the call to it in the header.php file.
    My child theme overrides the header.php file and still contained the call to the storefront_html_tag_schema function. This is probably the case for you too.

    To fix:

    Change line 11 in your child theme header.php file from

    <html <?php language_attributes(); ?> <?php storefront_html_tag_schema(); ?>>

    to

    <html <?php language_attributes(); ?>>

    You’re right mikeywazowski.

    Thanks for sharing how you fixed yours! It fixed mine, too.

    I didn’t have to revert to old storefront version.

    Website is no longer showing this error after I changed line 11 in my child theme header.php file from

    <html <?php language_attributes(); ?> <?php storefront_html_tag_schema(); ?>>

    to

    <html <?php language_attributes(); ?>>

    Thank you mikeywazowski.

    It also fixed my problem. Changed my child theme header php Line 10 just as you advised, <html <?php language_attributes(); ?>>

    I had just updated my WooCommerce Storefront theme to Version 2.5.5 when I was locked out after update. I am in the process of building the site and it is on my local host.

    Thanks again.

    Thread Starter wpdavid

    (@wpdavid)

    Checking the themes/storefront directory date/timestamps on the server, I see that all files were updated yesterday at 3:09pm (around the time the site went down) – apparently an auto-update of the storefront theme to version 2.0.2.

    Looking at header.php for the new version, I see that <?php storefront_html_tag_schema(); ?> was removed.

    I removed that code from my existing child header.php and now the site is back up.

    Thank you to all who responded for your help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Call to undefined function storefront_html_tag_schema()’ is closed to new replies.