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


    After the latest update to Enfold version 2.9.1 the website is completely broken.

    Getting the error message:
    Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/deb62238/domains/ on line 772

    I have tried all solutions mentioned in the forum:
    – manually updating the theme via ftp
    – re-upload the wp-content/themes/enfold/functions-enfold.php file. It contains the function mentioned in the first post (avia_get_header_scroll_offset())
    – overwriting all files via FTP once again
    – switch to main theme first, then updating and switching back to child theme again after

    None of these worked!

    The only solution that works is:
    – manually overwrite wp-content/themes/enfold/css/dynamic-css.php with an old version (from months ago)
    But … that is no good solution, since it will be overwritten with every new update of the theme…..

    Could anyone please help me out???

    We are under immense pressure to go live asap!!!

    Thanks very much!

    Kind regards


    Additional thought:
    The problem is the function avia_get_header_scroll_offset().
    It should be defined but is not…

    It is called for in: wp-content/themes/enfold/css/dynamic-css.php.

    I looked for the function definition, searching the whole theme.
    But it is not defined anywhere…

    That is strange!



    Re-updating the theme via FTP should help and did helped other users who had the same issue ( i.e.: ). Please make sure to overwrite all files

    Best regards,


    Hi Yigit,

    I did that 3 times now …but still the same error.

    Even after removing the child-theme and the main theme as well.
    After which I manually uploaded the theme (version 2.9.1) again.

    But… still the same error!

    Please help me out on this, because it is driving me nuts!
    I am really out of ideas now….

    Kind regards


    Hi Yigit,

    I solved the problem. The update has succeeded!

    The issue was that the root of the WP install contained some left over files that should not have been there.
    They were put there accidentally by a previous install, and were not removed correctly.

    Thanks for your help!

    Kind regards



    Glad it is working fine now Thijs! Let us know if you have any other questions or issues :)

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Fatal error: Call to undefined function avia_get_header_scroll_offset()’ is closed to new replies.