Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1199841

    Hi, we installed a child theme and started to customize it. After adding our code, https://prnt.sc/rqypc0 which just included in the child function PHP.
    We got the error :

    [11-Mar-2020 11:16:33 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function avia_get_header_scroll_offset() in wp-content/themes/enfold/css/dynamic-css.php:998
    Stack trace:
    #0 wp-content/themes/enfold/includes/admin/register-dynamic-styles.php(159): require()
    #1 wp-content/themes/enfold/functions.php(683): avia_prepare_dynamic_styles()
    #2 wp-includes/class-wp-hook.php(288): avia_custom_styles('')
    #3 wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #4 wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 wp-settings.php(523): do_action('init')
    #6 wp-config.php(103): require_once('publ...')
    #7 wp-load.php(37): require_once('publ...')
    #8 wp-blog-header.php(13): require_once('publ...')
    #9 index.php(17): require('/publ...')
    #10 { in wp-content/themes/enfold/css/dynamic-css.php on line 998

    It means, that functions-enfold.php was included as last. After changing the order of the included files, it started to work correctly. http://prntscr.com/rqyogm
    I think it might be because of the wrong order of the included files.
    Could you please, check if it’s connected to it or is there another problem? Please, feel free to ask me any questions, if you have.

    • This topic was modified 4 years ago by Lana.
    #1200347

    Hey Lana,

    I haven’t heard of any other users having this problem, so it’s likely due to something local on your installation. If you should need any further help then please post admin login details to the site in private so that we can have a closer look.

    Best regards,
    Rikard

    #1202982

    Rikard, thank you, my team is looking into it but yes I appreciate your offer, the login info is below. Please use caution when navigating, it is a live site. I look forward to seeing what you find. Thank you very much.

    #1203080

    Hi,

    Thanks for the that, but I can’t see a password in private. Please post that as well.

    Also, what exactly do you need help with? You said that this problem happened after adding custom code, did you make sure that you code is correct? We can’t really be responsible for problems caused by third party code unfortunately.

    Best regards,
    Rikard

    #1203114

    Hi Rikard,

    our developer (who sent the initial inquiry with code) has trouble implementing your child theme. It crashes the site. You’ve already read his thinking on this problem above. I know you’ve mentioned that you’ve never come across such an issue before. I’m wondering if it is because nobody else has needed a certain level or type of customization that we are doing? We have a specific module installed that does calculations of data input and then it produces the output in form of generated file. This works just fine with the main theme but crashes with the child theme. This is what we are attempting to figure out. We need the child theme because everytime the main theme is updated, the module gets removed. What I need your assistance with it to take a look at the child theme installed to see if you see anything or think of anything that could be causing the issue. Please let me know if you need any other specifications. Thank you.

    #1203849

    Hi,

    Sorry for the late reply. I feel that this is bordering customisation, and would not be covered by our theme support unfortunately. The theme is working as it should with a child theme, and the error happens after there has been custom third party code added to it. That leads me to conclude that the error must be related to code being added. If moving the line of code which you indicated further down, then you can copy the content of the parent functions.php to your child and then make the necessary adjustments there.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.