-
AuthorPosts
-
August 9, 2018 at 4:20 pm #995571
I’m updating from an older version of Enfold (3.5.4) to the current version. I’ve upgraded the site’s PHP, and the new theme works in my WP Engine staging area. When I push the staged site live, I get 500 errors that shut down the front and backend of my website, and need to have it restored to its prior version by my hosting company.
Here’s my first error, which based on another thread, recommended removing the file.
PHP Fatal error: Cannot redeclare av_countdown_events_fallback() (previously declared in /txsvf.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown/events_countdown.php:16) in /txsvf.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown.php on line 8
After removing the events_countdown.php, I received a very similar error.
Fatal error: Cannot redeclare av_upcoming_events_fallback() (previously declared in /nas/content/live/spengleragans/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming/events_upcoming.php:15) in /nas/content/live/spengleragans/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php on line 10
I deleted the parent theme entirely, and installed a new version directly. I then received the first error after pushing the staged site to live. Any thoughts would be much appreciated. Please let me know if you need any other info.
August 9, 2018 at 9:28 pm #995723Hey spengleraganslaw,
DO we have permitting to delete files and upload again?
Best regards,
BasilisAugust 10, 2018 at 2:23 am #995782Yes, please do what is needed.
August 10, 2018 at 4:27 pm #996051Hi spengleraganslaw,
You need to remove this file as well
nas/content/live/spengleragans/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_upcoming.phpIt is better if you upload the theme via FTP, some files moved around and the update process probably did not delete the old copies, so this time you need to reupload the whole theme via FTP.
Best regards,
VictoriaAugust 11, 2018 at 6:07 am #996217I had the same issue updating to 4.4.1 from a few versions back. First tried to update via the WPress backend but got error that there was a missing URL. Then updated with FTP and got the fatal error similar to what is noted above.
I removed the “config-templatebuilder/avia-shortcodes/events_upcoming.php” and “config-templatebuilder/avia-shortcodes/events_countdown.php” that were not inside other folders, and now it works.
I don’t understand why if I uploaded the entire Themes/Enfold folder that it didn’t replace the entire folder, but instead left old files in there. Now I wonder if there are other old files in there that are no longer needed. Just curious, as everything is working.
August 11, 2018 at 10:46 am #996260Hi,
Ftp won’t delete existing files but it will just overwrite files if the file names match. I’d recommend to rename the old theme folder to enfold_bak, then upload the new theme folder “enfold” to wp-content/themes. Then test the website and if everything works you can delete the enfold_bak folder.
Best regards,
DudeAugust 11, 2018 at 4:30 pm #996304Good to know. Thanks!
September 6, 2018 at 1:39 am #1006378Hi, if you do as Dude suggests, rename existing theme folder, FTP the new theme entitled enfold, then delete the old theme folder, what happens to the theme customizations? Aren’t those lost when you replace the theme folder?
I have an enfold 3.2 site running php 5.6 that I am trying to update via the admin panel and get the missing URL error that jh100 referred to.
Thanks for any advice.
September 6, 2018 at 3:46 am #1006401Peylon: I had custom CSS in the Quick CSS as well as in the custom.css file. I found that the Quick CSS was still there after FTPing the new theme folder (copy the quick css code first though just in case).
I replaced the custom.css file in the new Enfold folder with the custom.css file from the old folder so my customizations were all there. I didn’t have any customizations elsewhere. Everything seemed to work fine after doing that.
September 6, 2018 at 5:39 am #1006451Hi,
Thanks for sharing @jh100. Where have you customised the theme @pelyon? If you have everything in your child theme then you should not lose anything on updates, though I would suggest that you keep proper backups of the site in case something should go wrong.
Best regards,
Rikard- This reply was modified 6 years, 2 months ago by Rikard.
September 6, 2018 at 6:36 am #1006467Hi, I only customized Enfold in the Theme options area. Will these customizations survive the update process previously described? I have no child theme. Every time I install and activate a child theme, the theme options I use don’t transfer from the parent Enfold to the child. Do you provide a preconfigured child theme I can use? Thank you!
September 6, 2018 at 7:55 am #1006489Hi pelyon,
Ok, then it should be safe for you to update, but please keep backups if something should go wrong.
If you are switching from parent to child then you need to export and import the theme settings for them to apply, the child theme doesn’t come with any configurations to it.
Best regards,
RikardSeptember 6, 2018 at 5:58 pm #1006761Hey Rikard, last question: What’s the best procedure to export and import the theme settings to the child theme? Thanks again!
-Pelyon
September 6, 2018 at 7:11 pm #1006781Hi,
Have you tried wp-all-in-one migration plugin? This is perfect for backing up and importing all backend settings.
Best regards,
Jordan ShannonSeptember 6, 2018 at 7:20 pm #1006786Hi Jordan, no I have not, but it reads like a solid backup solution. For backups I use Akeeba Backup for my wordpress and joomla sites, and have had good success with it. Site backups are not my current issue, I just want to update my version of Enfold, and have a child theme in place before I do . Thanks for the tip though!
September 7, 2018 at 5:51 am #1006895Hi Pelyon,
You should be able to import and export the theme settings in the theme options, did you check that out?
Best regards,
RikardSeptember 7, 2018 at 9:27 pm #1007307Hi,
Is the idea to export the config file from the enfold theme, then save the config file to the child theme? Any documentation available on this would be much appreciated. Thanks for your patience with me.
-Pelyon
September 8, 2018 at 6:52 am #1007360Hi Pelyon,
Yes, that is exactly what you would be looking to do. Activate the parent then export the theme settings. After that you can activate the child and import the exported settings. If they don’t apply then simply save one of the child theme settings and save again, they should apply correctly after that.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.