-
AuthorPosts
-
March 31, 2017 at 2:57 pm #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.
April 2, 2017 at 9:30 am #770554Hey 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,
RikardApril 3, 2017 at 2:15 pm #771138This 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.
April 4, 2017 at 7:11 am #771547Hi,
Ok, thanks for the feedback. Could you try deactivating all plugins to see if one of them is causing a conflict please?
Best regards,
RikardApril 4, 2017 at 2:01 pm #771763All 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)
April 6, 2017 at 7:53 pm #773440Hi 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,
VictoriaApril 6, 2017 at 7:56 pm #773443I 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.
April 6, 2017 at 8:02 pm #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)April 6, 2017 at 8:03 pm #773452And 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.”
April 6, 2017 at 8:19 pm #773468Can 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?April 6, 2017 at 8:22 pm #773471Hey!
@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,
BasilisApril 6, 2017 at 8:33 pm #773476Re-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.jpgApril 11, 2017 at 6:06 am #775802Hi,
Thank you for the update. Please remove the functions-enfold.php file in the child theme folder.
Best regards,
IsmaelApril 11, 2017 at 1:41 pm #776006Hi 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.April 11, 2017 at 3:48 pm #776127Hi 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,
VictoriaApril 17, 2017 at 5:04 pm #778818Disappointed 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, 7 months ago by welswebmaster.
April 18, 2017 at 4:54 am #779047Hey!
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!
IsmaelApril 18, 2017 at 2:19 pm #779310Hi 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.1What else might solve this?
April 18, 2017 at 8:34 pm #779631April 18, 2017 at 8:37 pm #779635Hi,
Can you give us ftp access? so we can check on this further.
Regards,
NikkoApril 18, 2017 at 8:42 pm #779639Yigit – 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.
April 18, 2017 at 8:46 pm #779641Hi,
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,
NikkoApril 18, 2017 at 8:52 pm #779643Here you go Nikko – see private
- This reply was modified 7 years, 7 months ago by welswebmaster. Reason: correction of version
April 18, 2017 at 9:27 pm #779655Hey!
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!
YigitApril 18, 2017 at 9:35 pm #779660See private
April 19, 2017 at 3:52 am #779757Hey!
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,
IsmaelApril 19, 2017 at 1:46 pm #779958Ismael,
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)April 19, 2017 at 2:54 pm #779980Hey!
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,
YigitApril 19, 2017 at 3:00 pm #779986Ok, 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?
April 19, 2017 at 8:25 pm #780128Hi,
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 -
AuthorPosts
- The topic ‘Enfold fatal error encoutered re: avia_is_burger_menu’ is closed to new replies.