• Resolved zeilbauer

    (@zeilbauer)


    Hello,
    only when I change to PHP 8.0.3 we get the following error message via wordpress. With PHP 7.4 there is no problem

    WordPress-Version 5.7
    Aktuelles Theme: the7dtchild (Version 1.0.0)
    Aktuelles Plugin: WP Maintenance Mode (Version 2.3.0)
    PHP-Version 8.0.3

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 194 der Datei /usr/www/users/garagc/wp-content/plugins/wp-maintenance-mode/views/settings.php verursacht. Fehlermeldung: Uncaught ValueError: Unknown format specifier """ in /usr/www/users/garagc/wp-content/plugins/wp-maintenance-mode/views/settings.php:194
    Stack trace:
    #0 /usr/www/users/garagc/wp-content/plugins/wp-maintenance-mode/views/settings.php(194): sprintf()
    #1 /usr/www/users/garagc/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode-admin.php(237): include_once('/usr/www/users/...')
    #2 /usr/www/users/garagc/wp-includes/class-wp-hook.php(292): WP_Maintenance_Mode_Admin->display_plugin_settings()
    #3 /usr/www/users/garagc/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #4 /usr/www/users/garagc/wp-includes/plugin.php(484): WP_Hook->do_action()
    #5 /usr/www/users/garagc/wp-admin/admin.php(259): do_action()
    #6 /usr/www/users/garagc/wp-admin/options-general.php(10): require_once('/usr/www/users/...')
    #7 {main}
     thrown
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @zeilbauer,

    I just found out there is an issue with the German translation, and I suppose you’re using that translation on your website.

    English:
    source <a href="%s" target="_blank">Free Photos</a>

    German:
    Quelle: <a href="%" target="_blank">Free Photos</a>

    You see the error because the format specifier is missing from the translation (it should be %s, not just %), which is an issue when using PHP 8.

    So, until a WordPress translation editor approves my change, the easiest way to solve the issue is to edit that file (/wp-maintenance-mode/views/settings.php) and remove line 194.


    George

    • This reply was modified 3 years, 7 months ago by George J.
    • This reply was modified 3 years, 7 months ago by George J.
    • This reply was modified 3 years, 7 months ago by George J.
    • This reply was modified 3 years, 7 months ago by George J.

    Hallo,

    … plus:
    On our installation, the tabs-content “Module” and “Bot verwalten” and “DSGVO” are not showing.

    If PHP7.4 active, than is it ok (we can use this tabs) again.

    Gru?, Mike

    Hello @mike73,

    Thank you for reporting the issue. Can you please provide the error log?


    George

    … only this?! ?? G, Mike

    WordPress-Version 5.7.1
    Aktuelles Theme: Avada Child (Version 1.0.0)
    Aktuelles Plugin: WP Maintenance Mode (Version 2.3.0)
    PHP-Version 8.0.1

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 194 der Datei /www/wp-content/plugins/wp-maintenance-mode/views/settings.php verursacht.

    Fehlermeldung: Uncaught ValueError: Unknown format specifier “”” in /www/wp-content/plugins/wp-maintenance-mode/views/settings.php:194

    Stack trace:
    #0 /www/wp-content/plugins/wp-maintenance-mode/views/settings.php(194): sprintf(‘Quelle:

    @mike73 Thank you! As far as I see, it’s the same error. You can solve it by removing line 194 from /wp-maintenance-mode/views/settings.php because the translation change is still not approved by the translation editors.

    • This reply was modified 3 years, 7 months ago by George J.

    One of the translation editors approved the change, and the new language files are available for download (you don’t have to do anything if the automatic updater is enabled).

    Ticket closed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem only with PHP 8.0.3 ?’ is closed to new replies.