Tagged: upgrade
-
AuthorPosts
-
June 8, 2022 at 6:29 am #1354476
Hello. I’d like to update my theme in hopes that it corrects a php8 error that I am seeing. I have Enfold Child theme active. My child theme says v1 and my Enfold theme (not active) says version 4.2.5. The Child concept confuses me a bit so I’m unsure if my Child theme is inheriting any files from the Enfold theme or if they are truly separate themes.
What is the best way to update my child theme to the latest version? There is not an auto-update option available.
June 8, 2022 at 8:55 am #1354488Hey Andy,
You shouldn’t have to update anything in your child theme, unless you run into problems. The update to 4.9.x has to be done manually from the version you are running, please refer to my replies in this thread: https://kriesi.at/support/topic/enfold-4-5-theme-update-update-failed-download-failed-a-valid-url-was-not-pro/#post-1021541
You can either update manually via FTP: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update, or use a plugin to upload the theme zip file: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
If that doesn’t work then please try to delete the whole theme folder, then replace it with the new version. Make sure that you have backups of the site before starting updating.
Also please read this after you have updated: https://kriesi.at/documentation/enfold/theme-registration/Best regards,
Rikard- This reply was modified 2 years, 5 months ago by Rikard.
June 8, 2022 at 6:17 pm #1354553Thanks, Rikard. This all worked perfectly!
1. Did a manual update
2. Registered token.
3. Ran the primary update to v5
4. Fixed a few issues post-upgrade (replacing header/footer files and adding the extra function to the functions.php page)As my final step, we are trying to transition to php8, but every time I try, I get the same “Critical Error” warning from wordpress. When we dug into the logs, this was the error message:
26 PHP Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /nas/content/live/blink2stg/wp-content/themes/enfold/functions-enfold.php on line 293
How do we resolve this particular issue?
June 9, 2022 at 6:09 am #1354585Hi 44doors,
Thanks for the update.
Can you give temporary admin access as well as FTP access and post it here privately.Best regards,
NikkoJune 9, 2022 at 6:31 am #1354589Hi, Nikko. I have set you up as admin and shared sftp access to our staging server. Thanks!!
June 10, 2022 at 5:05 am #1354747Hi 44doors,
Thanks for providing us with a staging site and access to it.
I could not find the issue because the staging site uses PHP 7.4.
I also tested Enfold 5.0 on my with PHP 8.0 and 8.1 but I could not replicate the same issue.
Checking functions-enfold.php on line 293, does not seem to contain the type of code that should produce the issue: https://stackoverflow.com/questions/61432488/php-error-unparenthesized-a-b-c-d-e-is-deprecated-use-either-a
Can you switch the staging site’s PHP version to PHP 8? since I could not replicate it on my end.Best regards,
NikkoJune 10, 2022 at 6:00 am #1354749Hi, Nikko. I have converted the environment to PHP8 so you should be able to trigger the failure now. Thank you for the assistance!
June 10, 2022 at 6:29 am #1354752Hi 44doors,
Thanks for doing that.
I tried to check it and the error seems to be coming from Tabs Builder By Xgenious which I have removed (basically I just moved it from plugins folder to wp-content) and it seems to work properly now. Please check and review the site and let us know if you can see other issues.Best regards,
NikkoJune 10, 2022 at 6:30 am #1354753Ahhhh – thank you for pinpointing the source. We use this plugin as part of our layout. Do you have another tab plugin that you recommend? Many Thanks!!
June 10, 2022 at 6:36 am #1354754Hi 44doors,
I don’t have any plugin that I could recommend however you can report the issue with the plugin when PHP 8 is used so the author can fix it and you can still use the plugin.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.