• Hello,

    After updating theme from 2.2.3 to 3.0.4 and 3.0.5

    Fatal error: Call to undefined function ot_get_option() in /…/wp-content/themes/hueman-child-master/header.php on line 43

    Can you help, please?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author presscustomizr

    (@nikeo)

    Hi @css31,

    can you share the content of the functions.php file of your child theme on https://pastebin.com/ (or an equivalent service). If your functions.file content is short, just share it here.

    thanks

    Thread Starter Cyrille Sanson

    (@css31)

    It couldn’t be shorter,

    <?php
    /* ------------------------------------------------------------------------- *
     *  Custom functions
    /* ------------------------------------------------------------------------- */
    
    	// Add your custom functions here, or overwrite existing ones. Read more how to use:
    	// https://codex.www.ads-software.com/Child_Themes
    Thread Starter Cyrille Sanson

    (@css31)

    +
    Here is header.php

    https://pastebin.com/ixcV3aYZ

    Hi 100son. The problem is that the code in the updated version of header.php has changed and code in the old version of header.php is no longer valid with the new version of the theme. This is an issue that users with child themes that contain modified theme files may encounter. The best option is to copy your custom code out of your existing child theme header.php file, replace the header.php file with the new version from the parent theme, then reapply your changes. If you have other modified theme files in your child theme you should do the same for those also.

    This was posted by the theme developer about 2 hours ago:

    In the mean time, I’ve uploaded a new version of the theme which includes a backward compatibility patch for the functions used in the previous templates.
    This should fix most of the problem with child theme users who are still using the old function names in their templates.

    You could try updating to v3.0.6. In the long run though you’ll eventually want to update the template files in your child theme.

    Theme Author presscustomizr

    (@nikeo)

    Hi @css31,
    As far as I understand, your child theme’s header includes a breadcrumb navigation at the bottom.
    I would suggest to copy the new header.php template file in your child theme and add back your breadcrumb in it.

    Hope it helps

    Thread Starter Cyrille Sanson

    (@css31)

    Hi Nikeo,

    Seeing the number of release published today I can believe you have hot time today. Sorry for you.

    Now I don’t use anymore child theme. I’m testing directly with Humean.

    It’s still crashing but it’s probably due to a conflict with plugins.

    Advanced Custom Fields = NOK
    All-in-One Event Calendar par Time.ly = NOK

    I run another site with Hueman with no problem.

    Thanks,

    Theme Author presscustomizr

    (@nikeo)

    Hi @css31
    Yes hot time:) I was expecting some challenging release issues anyway, despite all the tests and the help of many volunteers beta testers!

    Can you check if your issue has been fixed in v3.0.8.

    Thanks !

    Thread Starter Cyrille Sanson

    (@css31)

    Hi Nikeo,

    It seems to be alright now even with the previous child theme.

    It has been a hard time.

    Thanks you and good luck,

    Theme Author presscustomizr

    (@nikeo)

    cool.
    yes I’ve also been quite busy with this release… ?? But it was very special due to the option moved to the customizer.
    The next updates are gonna be much more smoother.
    Thanks for your feedback

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error when updating’ is closed to new replies.