Tagged: ,

Viewing 30 posts - 1 through 30 (of 31 total)
  • Author
    Posts
  • #769979

    All 10 of my Enfold themes upgraded perfectly except for one. I get this error message:
    Fatal error: Call to undefined function avia_is_burger_menu() in /nas/content/staging/cpv/wp-content/themes/enfold/includes/helper-responsive-megamenu.php on line 107

    Checking the Forum, I ran across this help – but it didn’t work for me.
    https://kriesi.at/support/topic/call-to-undefined-function-avia_is_burger_menu/

    I’ve tried the update via the Dashboard interface, and also again manually via FTP using a successful site’s enfold and enfold-child folders to ensure I have good success. It failed. I even tried deactivating all plugins which made no difference.

    I’ve pushed my live site to staging so that I can further test.

    #770554

    Hey Julie,

    We released an update this weekend, could you try updating to that (4.0.5) please? http://kriesi.at/documentation/enfold/updating-your-theme-files/

    Best regards,
    Rikard

    #771138

    This morning, I updated to 4.0.5 – same error Fatal error: Call to undefined function avia_is_burger_menu() in /nas/content/staging/cpv/wp-content/themes/enfold/includes/helper-responsive-megamenu.php on line 107

    In my previous post I gave you login in the private data section if someone could please take a look at my staging site as we try to get this to work.

    #771547

    Hi,

    Ok, thanks for the feedback. Could you try deactivating all plugins to see if one of them is causing a conflict please?

    Best regards,
    Rikard

    #771763

    All plugins deactivated. Latest version of the Enfold theme installed. 10 other successful sites using Enfold. Only this site has this error: Fatal error: Call to undefined function avia_is_burger_menu() in /nas/content/staging/cpv/wp-content/themes/enfold/includes/helper-responsive-megamenu.php on line 107

    Please help. (admin login credentials in private content field of very first post on this ticket)

    #773440

    Hi welswebmaster,

    Please refer to this thread for a possible solution. Could be that some file was not overwritten by update.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #773443

    I relayed to you in the initial request above that I already did that… I said “Checking the Forum, I ran across this help – but it didn’t work for me.
    https://kriesi.at/support/topic/call-to-undefined-function-avia_is_burger_menu/”
    Please look at this. I need help. I’ve purchased 10 installs over the years and have done very well. with Enfold. I’ve reinstalled on this site several times.

    I need assistance, please.

    #773446

    @welwebmaster if this would happen to me I would

    1. Download a fresh ‘Install Files Only’ package from themeforest
    2. Unpack the file
    3. Connect via FTP and DELETE the enfold directory completely
    4. Transfer the unpacked enfold directory and make sure the transfer mode is binary (not ascii)
    5. Make sure my file permissions are correct (755 for directories, 644 for files)

    #773452

    And those are the exact steps I took where I said “and also again manually via FTP using a successful site’s enfold and enfold-child folders to ensure I have good success. It failed. I even tried deactivating all plugins which made no difference.”

    #773468

    Can you check the file /wp-content/themes/enfold/functions-enfold.php exists?
    Can you take a look into the file and check the function avia_is_burger_menu() is defined starting from line 162?
    Can you confirm there is no function called avia_is_burger_menu() in your child themes functions.php?
    Can you confirm the file permission are correct?
    Can you confirm you have at least PHP 5.6 running?
    Can you confirm the file owner is either the webserver user (apache, www) if PHP is running as mod-apache modul or the ftp user if PHP is running as FPM or Fast-CGI?

    #773471

    Hey!


    @mensmaximus
    debug steps are pretty much analytics.
    I would re-upload that specific file also once, to make sure that the read/write from FTP are properly setuped.

    Best regards,
    Basilis

    #773476

    Re-uploaded and set permits on functions.php. Emptyied server and browser cache. Same error. See media uploads:
    http://cpv.staging.wpengine.com/wp-content/uploads/2017/04/functionsExists.jpg (hosted on WPengine)
    AND
    http://cpv.staging.wpengine.com/wp-content/uploads/2017/04/functionsReuploaded.jpg

    #775802

    Hi,

    Thank you for the update. Please remove the functions-enfold.php file in the child theme folder.

    Best regards,
    Ismael

    #776006

    Hi Ismael,
    I’ve just deleted the functions-enfold.php file in the child theme – still the same error. NEXT, I’ve activated the parent theme instead of the child theme. Still – same error.

    #776127

    Hi welswebmaster,

    Well, here is a great article about updating WP and clearing opcache. So let’s try to flush the opcode cache, install new files and would be nice to restart the server maybe. Not sure hosting providers actually allow that.

    Best regards,
    Victoria

    #778818

    Disappointed in support responses thus far. I host with WPEngine and am able to clear object cache – and have done so throughout this process. AGAIN – I’ve updated all 10 of our site successfully except for this one. I’ve taken steps you’ve suggested – no success. I’ve resorted to commenting out line 107 of the helper-responsive-megamenu.php to get the update to work. I have nothing but praise for this this theme and am bewildered by your responses thus far.

    Latest download = check.
    Applied manually = check.
    Deactivated all plugins = check.
    Reset all file permissions = check.
    Have child theme = check.
    Purged object cache = check.
    Emptied browser cache = check.

    Last resort – commented out line 107. No idea what fun that will bring me.

    Per WPEngine
    So opcode cache is up and running and enabled on our server.
    However, I’m not sure if flushing the cache within the portal would clear this out. I can run a command to flush this cache to be sure. opcode cache is also enabled by every plugin as well. BUT since you are testing the theme update on the staging site – it actually doesn’t have any server-side cache layers enabled. We shut off all server cache for staging. So the error you are experiencing doesn’t reflect a cache error. Instead, this might be within the php coding cache layers in the theme.

    • This reply was modified 7 years, 8 months ago by welswebmaster.
    #779047

    Hey!

    The function “avia_is_burger_menu” exists in the parent’s functions-enfold.php file. Removing the child’s functions-enfold.php file which overrides the default file should fix the issue. Make sure that you’re not looking on a cached version of the site after removing the child’s functions-enfold.php file.

    Cheers!
    Ismael

    #779310

    Hi Ismael,
    I had high hopes – but no success. Steps I took this morning…

    a) Backed up the production site (see in private) and activated WordPress 2016 theme
    b) Downloaded a fresh copy of Enfold (WordPress files only)
    c) Uploaded a copy of the staging site’s Child theme and DELETED the functions-enfold.php file
    d) Deleted existing copy of Enfold and then uploaded new copy of Enfold via SFTP. (See archive.zip in Private)
    e) Deactivated all plugins.
    f) Refreshed object cache and reset permissions via WPEngine dashboard.
    g) Activated child theme (got a blank screen – see in Private)
    h) Tried alternatively to instead just activate the Parent theme – got a blank screen.
    i) Restored to Enfold 3.7.1

    What else might solve this?

    #779631

    Hi!

    Can you please post FTP logins here privately as well? :)

    Best regards,
    Yigit

    #779635

    Hi,

    Can you give us ftp access? so we can check on this further.

    Regards,
    Nikko

    #779639

    Yigit – the logins were posted in Private on March 31st, my initial request (staging site). Now I just created a user with those same credentials for the production site.

    I just took a backup of the production site.

    Have at it.

    #779641

    Hi,

    You have already provided the admin access. We would like to request for the ftp access, so we can check the files and try to debug.

    Best regards,
    Nikko

    #779643

    Here you go Nikko – see private

    • This reply was modified 7 years, 8 months ago by welswebmaster. Reason: correction of version
    #779655

    Hey!

    I am getting “The user name or password was not accepted by the server.” error when i try to connect. Can you please check the credentials once again?

    Cheers!
    Yigit

    #779660

    See private

    #779757

    Hey!

    I tried to access the staging site via sftp but it’s not working. The password above and in the screenshot is different. Please check it carefully.

    Best regards,
    Ismael

    #779958

    Ismael,
    I gave you a screenshot – no room for error there. The export from Filezilla isn’t meant for password – because that shows an encoding of the password (so it wouldn’t match). Make sure you have the proper port. Here’s a new set of credentials created again – but just for you… (private)

    #779980

    Hey!

    These worked for me. Thanks!

    I have copied enfold/includes/helper-main-menu.php file into your child theme and commented out following line

    'walker' 			=> new avia_responsive_mega_menu()

    Regards,
    Yigit

    #779986

    Ok, Yigit. I will apply the same to the production site “off hours”. Just curious… why is this comment needed for only 1 of 9 installs?

    #780128

    Hi,

    You can simply copy enfold-child/includes/helper-main-menu.php file from your staging site and paste it in production site.
    To be honest i tried a few things and when neither worked, i applied this workaround which is basically commenting out the culprit line and did not look further into it thinking it was urgent for you. Therefore i am afraid i will not be able to accurately answer :)

    Best regards,
    Yigit

Viewing 30 posts - 1 through 30 (of 31 total)
  • The topic ‘Enfold fatal error encoutered re: avia_is_burger_menu’ is closed to new replies.