-
AuthorPosts
-
November 9, 2021 at 3:08 pm #1328370
Hi,
After updating from php 7.4 to php 8 I got a critical error. I did a clean install of WP and the latest version of Enfold (no plugins) but also a critical error here.
WordPress versie 5.8.1
Huidig thema: Enfold (versie 4.8.7.1)
Huidige plugin: (versie )
PHP versie 8.0.11Thanks!
Regards,
FransNovember 10, 2021 at 6:30 am #1328426Hey Frans,
Thanks for the FTP login details, could you share admin WordPress login details in private as well please? Also, are we allowed to activate Enfold on this installation for testing purposes? Is the site a staging or production site?
Best regards,
RikardNovember 10, 2021 at 9:20 am #1328449Hi Rikard,
I have sent you a private message with the login details. Of course, Enfold may be activated.
Regards,
FransNovember 10, 2021 at 1:52 pm #1328496Hi,
Thanks for that. I see that the user you sent us has admin rights, but I can’t see the Enfold menu in the WordPress sidebar for some reason? I tried the direct URL as well, but there’s a WordPress error message saying that the user doesn’t have rights to access the page.
Best regards,
RikardNovember 10, 2021 at 2:27 pm #1328507Hi Rikard,
I have not activated the theme, but it is ready under appearance =>Themes. Can you see it there? When I activate the theme I get that error, hence the FTP data.
Regards,
FransNovember 11, 2021 at 5:35 am #1328592Hi,
Thanks for the update. I can access Appearance fine, but I wanted to check your PHP version, which you can do in the Enfold theme options. Anyway, I activated Enfold and it working as it should, without any error messages. I’m guessing that you are currently running PHP 7.4?
Best regards,
RikardNovember 11, 2021 at 9:06 pm #1328699Hi Rikard,
That is very special. PHP 8 is still active, so not reverted to PHP 7.4.
But I found the error; when the language converts to Dutch it generates an error as I showed in my first post. So it is language related.In the meantime I have heard the same from two of our customers (Dutch) and I have changed them back to PHP 7.4.
Regards,
FransNovember 12, 2021 at 7:09 am #1328745Hi Frans,
Thanks for the update. I’m not sure I understand the part of changing language though, do you mean the general language for WordPress, or are you using a plugin like WPML?
Best regards,
Rikard,November 12, 2021 at 11:45 am #1328777Hi,
Yes, I mean the language of WordPress which you can set on General => Settings. When Enfold is active and you choose Dutch, it will generate an error. But when you choose English you can activate Enfold and everything works normally.
Again it is a bare installation without plugins etc and only WordPress and Enfold. It is a test environment so you can test it all.
Regards,
FransNovember 13, 2021 at 6:48 am #1328841Hi,
Thanks for the update. I changed the file in private to include a temporary fix, and that seems to have worked. I set the WordPress language to Dutch, then activated Enfold, and I can’t see any error message at all. Could you check on your end as well please? If you need help with updating your live sites with this fix, then please include login details for them in private.
Best regards,
RikardNovember 13, 2021 at 4:33 pm #1328879Hi Rikard,
Thank you, I tested it, also in combination with a Child theme, and also with saving pages and posts, and now all without errors. Nice!
I assume this fix will be included in the next update? I then wait for the other installations to upgrade to PHP 8 until an update of Enfold comes out.Regards,
FransNovember 14, 2021 at 8:28 am #1328915Hi Frans,
Great, I’m glad to hear that it’s working now. Yes, the fix will be included in the next release of the theme.
Best regards,
RikardDecember 13, 2021 at 3:43 pm #1332592Hi Rikard,
Hi,
I made a new WordPress installation and installed the latest Enfold version (4.8.8) on it. Unfortunately, it still goes wrong i.c.w. the Dutch language and PHP 8. I had to change the account back to PHP 7.4 to keep the site working.
I had to put this line (line 311) in /includes/admin/option_tabs/avia_blog.php to get the site on PHP 8.
$prof_desc = sprintf( __( ‘If you added Social Profile Links at %sSocial Profiles Tab%s the theme allows you to display these profile links at the bottom of your blog posts.’, ‘avia_framework’ ), ‘‘, ‘‘ );
$prof_desc .= __( ‘Be sure you added a link, otherwise your selection will be ignored.’, ‘avia_framework’ );I had hoped that an update would fix this bug, because there are quite a few Dutch sites that go down this way.
Zou je dat alsnog kunnen doorgeven? Want ik moet nodig de verschillende sites van onze klant updaten.
Regards,
FransDecember 14, 2021 at 6:43 am #1332712Hi Frans,
Thanks for the update. Could you give us access to a site where we can see the problem using the latest version of the theme please?
Best regards,
RikardDecember 14, 2021 at 10:32 am #1332730Hi Rikard,
This is the error (Same as the last one):
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 311 van het bestand /public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php. Foutmelding: Uncaught ValueError: Unknown format specifier “S” in /public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php:311
The chosen language is currently ‘English’, but once you choose ‘Dutch’, you get that error.
Below the login details.
Regards,
FransDecember 14, 2021 at 10:59 am #1332731I also got the same error on PHP 8.0. (everything is woring on php 7.4) Everything is up-to-date. i found an earlyer blog item that this should be fixed in the new version. I have theme version 4.8.8 installed.
WordPress versie 5.8.2
Huidig thema: Enfold Child theme (versie 1.0.0) Huidige plugin: (versie ) PHP versie 8.0.13Foutdetails
===========
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 311 van het bestand /home/xxxxxxx/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php. Foutmelding: Uncaught ValueError: Unknown format specifier “S” in /home/xxxxxx/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php:311
Stack trace:
#0 /home/………/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php(311): sprintf(‘Als u links naa…’, ‘- This reply was modified 2 years, 11 months ago by cvanberkel.
December 14, 2021 at 3:26 pm #1332802Hi @cvanberkel,
Thanks for contacting us!
Could you please start a new thread on https://kriesi.at/support/forum/enfold#new-post and attach FTP and WP admin logins in private content field so we can look into it? :)
Best regards,
YigitDecember 14, 2021 at 3:32 pm #1332806Hi Yigit, sorry, but i don’t have time to put the website back to php 8 and give you access. I almost finished the new site and it has to go online this week. I only wanted you to now that there still is an error in wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php:311 with php 8.0. So you could check it. For me, it’s fine to work with php 7.4 for now. Best Regards, Corne
December 15, 2021 at 8:45 am #1332894Hi Corne,
Thanks for the update. We still haven’t been able to reproduce this problem on our end, so we’re still not sure what is causing it unfortunately. If you need further help, then please copy the site to a staging area, so that we can check it out there.
Best regards,
RikardDecember 15, 2021 at 9:52 am #1332917Hi Rikard,
I have given you full access to a staging site, see my previous response including login details. Allows to reproduce the error.
The workaround you made then was an adjustment in avia_blog.php:
Line 131:
===============
$prof_desc = sprintf( __( ‘If you added Social Profile Links at %sSocial Profiles Tab%s the theme allows you to display these profile links at the bottom of your blog posts.’, ‘avia_framework’ ), ‘‘, ‘‘ );
$prof_desc .= __( ‘Be sure you added a link, otherwise your selection will be ignored.’, ‘avia_framework’ );===============
Regards,
FransDecember 15, 2021 at 3:38 pm #1332974Hi Frans,
We have fixed this problem now, the recent problem was actually coming from the Dutch translation file. If you want to fix this on other sites, then please copy the Dutch translation file under enfold/lang/ to your other sites.
Best regards,
RikardDecember 15, 2021 at 6:49 pm #1333012Hi Rikard,
Thank you for your efforts, I will transfer the custom language files with the updates as well.
Regards,
FransDecember 16, 2021 at 9:30 am #1333049Hi,
Great, I’m glad to hear that this is finally working as it should. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardDecember 16, 2021 at 9:36 am #1333053Hi Rikard,
Thanks again, and you can close this topic.
Have a nice day!
Regards,
FransDecember 16, 2021 at 1:42 pm #1333126Hi,
Glad Rikard could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
AuthorPosts
- The topic ‘PHP 8 Enfold 4.8.7.1 generates a critical error’ is closed to new replies.