• Resolved arantzazu

    (@arantzazu)


    Hi,
    after updating the theme to the last release 3.6.0, I get the following error “Fatal error: Uncaught Error: Call to undefined function storefront_posted_on() in /home/cyfdevblog/public_html/wp-content/themes/storefront-child-theme-master/functions.php”
    Until the update, everything worked fine.

    How can I fix this?

    Any help would be very appreciated.

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there!

    That doesn’t seem to come from Storefront, but a child theme configured for Storefront.

    What happens if you switch to the parent Storefront theme from WP Admin > Appearance > Themes?

    Thread Starter arantzazu

    (@arantzazu)

    Hi,
    if I switch to Storefront theme everything works fine, but before the update the child theme worked fine too; what changes have been made? it seems that some functions are not working now.

    Thank you so much.

    Best regards

    Hi there!

    if I switch to Storefront theme everything works fine, but before the update the child theme worked fine too

    Thank you for clarifying. The changes included in the latest update is linked here https://github.com/woocommerce/storefront/releases/tag/3.6.0

    Since this forum is specifically for assistance with the parent (Storefront) theme, I’d recommend reaching out to the developers of the child theme for further instructions on fixing the error you’re seeing.

    Thread Starter arantzazu

    (@arantzazu)

    Hi,
    the function storefront_posted_on(); is causing the errors, how can I fix this?

    Thank you so much for your help.

    Best regards

    Niall a11n

    (@wpniall)

    Hi @arantzazu,

    Thanks for the update.

    the function storefront_posted_on(); is causing the errors, how can I fix this?

    Hmm, that would depend on the error and what code you have added. The function storefront_posted_on() does seem to be a legitimate Storefront function. It’s possible that a plugin updated and is causing a conflict if the code was working previously. I suggest performing a conflict to test if there a plugin causing the problem.

    As this issue involves a fairly complex development topic, I’m going to leave it open for a bit to see if anyone is able to chime in and help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce, as well as the Storefront developer documentation

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack for help. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.`

    Thread Starter arantzazu

    (@arantzazu)

    Hi,
    I don’t agree with that; the function storefront_posted_on is a legitimate function, but now is obsolete: https://github.com/woocommerce/storefront/pull/1652/commits/25db030a5fe0825728bdf8408c5a1f6174ed4195
    If I delete that function from the code, everything works!

    Thank you so much.

    Best regards

    Niall a11n

    (@wpniall)

    Hi @arantzazu,

    Sorry about that! You are right, and it would help if I looked at the correct codebase in Github.

    storefront_posted_on was removed in the Storefront 3.6.0 update.

    If I delete that function from the code, everything works!

    Glad to hear you got the code working now!

    I’ll go ahead and mark this post as resolved now. If you have any further questions or need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there.

    Thank you!

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

The topic ‘fatal error after update’ is closed to new replies.