-
AuthorPosts
-
October 6, 2020 at 7:37 am #1250739
After the Enfold Update, the site crashes. I had to restore it back. Errors after update
Screenshot: https://monosnap.com/file/kxV5Fl5KhHYXy5GBzTWFFSlHXzhvcmsite: https://www.ulovanet.ru/
- This topic was modified 4 years, 2 months ago by Konstantin.
October 6, 2020 at 8:39 pm #1250945October 7, 2020 at 6:52 am #1251025I updated the theme, everything was fine with no errors.
Then I needed to add this code to functions.php:After the line:
if (isset ($ avia_config [‘use_child_theme_functions_only’])) {return; }I added:
// set builder mode to debug
add_action (‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug ()
{
return “debug”;
}After that, an error occurred. Even after removing this code, the error remained.
PHP version at that time was 7.2
Now the version has been updated to – 7.4.After that, I rolled back all my actions and no longer tried to update the topic. I decided to write to you first, ask …
October 8, 2020 at 6:02 am #1251299Hi,
Thanks for the update. I see that you have added the code back to functions.php, and debug mode is working when editing pages. I’m guessing you managed to get this working?
Best regards,
RikardOctober 8, 2020 at 6:34 am #1251305Unfortunately NO, it didn’t help. I rolled back the theme update. If you update Enfold, then the error can be repeated ((
October 9, 2020 at 6:03 am #1251626Hi,
Ok, can we try that out on your site then? Also, why are you not running a child theme? If you did then you would have to add the code back after updates.
Best regards,
RikardOctober 9, 2020 at 7:03 am #1251636I won’t write much, I’ll tell you straight: I can’t! I have long wanted to deal with this issue on the Child Topic ((I don’t understand how to do this.
So after the Enfold Update all the changes and additions have to be added manually ((
Yes, of course, you can try it on my site. thanks
October 10, 2020 at 7:44 am #1251815Hi,
Thanks for the update. I’m getting the same error when trying to add the debug code after updating unfortunately, I’m not sure why that is though. I would suggest that you try installing a child theme first, it’s not difficult: https://kriesi.at/documentation/enfold/install-enfold-theme/#why-child-theme. After you have activated the child then go to Enfold->Import/Export and import the settings from your parent theme. If your settings or CSS should not apply then please change a setting in the options and save again. Also make sure that the option to delete the old CSS and JS files is activated under Enfold->Performance. After that then you can try to add the code in question to the functions.php file in your child theme.
Best regards,
RikardDecember 1, 2020 at 8:51 am #1264151I did everything as you said. Nothing helps. Mistake.
Due to this, I cannot Update the Enfold theme ((
https://prnt.sc/vtc6rz
https://prnt.sc/vtc8c9
https://prnt.sc/vtc9uk
https://prnt.sc/vtca2sDecember 2, 2020 at 5:09 am #1264372Hi,
Thanks for the update. So when exactly are you getting these errors? Please try to be as specific as possible. Also you have code which you don’t need, and text which is not commented in your functions.php file:
if( isset( $avia_config['use_child_theme_functions_only'] ) ) { return; } Добавить:
Try removing that first of all.
Best regards,
RikardDecember 2, 2020 at 8:10 am #1264424First, I have never installed Enfold Child. After each update of the Enfold theme, I added all the changes in the code manually.
The error occurred immediately after I added this code in Function.php:
// set builder mode to debug
add_action (‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug ()
{
return “debug”;
}I have given you temporary access. As I understand it, you got the same error. You recommended that I install Enfold Child, which I did. But the error is still present.
I can completely remove all unnecessary code from Function.php, but that doesn’t solve my problem in any way. I’ve already tried ((
I removed the extra code. Uncommented removed too.
Screenshot: https://prnt.sc/vu25vbИзменения кода только в этих файлах:
1. Function.php
2. loop-comments.php
3. loop-index.php
4. postslider.php
5. Single.phpDecember 3, 2020 at 6:06 am #1264667Hi,
I tried removing the code which you are claiming to cause the problem, and the same error message still occurs after that. Please try to remove all the code from your child theme, then add the customisations back one by one to see which of them is causing the problem.
Best regards,
RikardDecember 3, 2020 at 7:50 am #1264691I have removed all modified code from Enfold Child. It did not help.
https://prnt.sc/vus62c
https://prnt.sc/vus78w
https://prnt.sc/vus7w3December 4, 2020 at 4:40 am #1264923Hi,
Then something must be corrupt in the parent theme. Please try to completely delete the parent theme files, then upload a fresh copy with you can download from your Themeforest account.
Best regards,
RikardDecember 4, 2020 at 7:26 am #1264952Now on the site Enfold version – 4.7.6.3. Everything works perfectly. But if I upgrade to Version 4.7.6.4 – Everything breaks.
Do you think it makes sense to do it again?
I forgot to say that I still have css added to the custom.css file. This probably can’t be a problem?
I completely uninstalled Enfold and installed it again. To no avail. As I understand it, it’s not about Enfold Child, but about Enfold.
December 5, 2020 at 12:42 pm #1265166Hi,
Thanks for the update. If this was a general problem with the theme then all users would have it. That is not the case, you are the only user with this problem as far as I know. If everything works running the previous version of the theme, then I would advise that you keep running that.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.