Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #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.11

    Thanks!

    Regards,
    Frans

    #1328426

    Hey 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,
    Rikard

    #1328449

    Hi Rikard,

    I have sent you a private message with the login details. Of course, Enfold may be activated.

    Regards,
    Frans

    #1328496

    Hi,

    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,
    Rikard

    #1328507

    Hi 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,
    Frans

    #1328592

    Hi,

    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,
    Rikard

    #1328699

    Hi 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,
    Frans

    #1328745

    Hi 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,

    #1328777

    Hi,

    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,
    Frans

    #1328841

    Hi,

    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,
    Rikard

    #1328879

    Hi 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,
    Frans

    #1328915

    Hi 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,
    Rikard

    #1332592

    Hi 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,
    Frans

    #1332712

    Hi 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,
    Rikard

    #1332730

    Hi 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,
    Frans

    #1332731

    I 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.13

    Foutdetails
    ===========
    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 3 years ago by cvanberkel.
    #1332802

    Hi @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,
    Yigit

    #1332806

    Hi 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

    #1332894

    Hi 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,
    Rikard

    #1332917

    Hi 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,
    Frans

    #1332974

    Hi 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,
    Rikard

    #1333012

    Hi Rikard,

    Thank you for your efforts, I will transfer the custom language files with the updates as well.

    Regards,
    Frans

    #1333049

    Hi,

    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,
    Rikard

    #1333053

    Hi Rikard,

    Thanks again, and you can close this topic.

    Have a nice day!

    Regards,
    Frans

    #1333126

    Hi,

    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

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘PHP 8 Enfold 4.8.7.1 generates a critical error’ is closed to new replies.