• Resolved SRD75

    (@srd75)


    Hi,

    I am using Store Front v2.0.3, and I have a child theme active.

    A local Wampserver version of the site loads fine using the child theme.

    On a live development version of the site using the child theme, the site will not load.

    The debug log says:

    PHP Fatal error: Call to undefined function storefront_html_tag_schema() in /var/www/vhosts/whitewreath.org.au/staging/wp-content/themes/storefront-whitewreath/header.php on line 12

    If I comment out like this:

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

    the live development site will load with the child site.

    How do I enable storefront_html_tag_schema() in the html tag of the child site?

    Thanks, and regards,
    Steve.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have exactly the same problem

    John

    (@johnellmore)

    storefront_html_tag_schema() was deprecated in Storefront 2.0.2, but it looks like function was dropped completely on the www.ads-software.com-hosted version of the plugin. This causes a fatal error on child themes. I notice that the latest version of Storefront (2.0.3) has removed the function call from the html tag altogether, so you can probably just remove it from html in any child themes and it’ll be fine.

    Curiously, the Github-hosted version of Storefront deprecates the function nicely, but the www.ads-software.com version simply removes the function definition. Some sort of discrepancy?

    As John points out that function was removed. Unfortunately we forgot to deprecate it though which is why you’re seeing this error. You have two options;

    * Just remove the call to that function in your child theme
    * Wait for the next release which will be available very soon.

    Sorry for the frustration caused here.

    Thread Starter SRD75

    (@srd75)

    Excellent, thank you John, thank you James.

    No problems.

    Storefront 2.0.4 (which resolves this issue) is now available.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘storefront_html_tag_schema(); causing child theme not to load’ is closed to new replies.