• Resolved pasglop

    (@pasglop)


    Hello,

    After download and activate the plugin, if i want to go to it dashboard, i’ve got a fatal error :

    Fatal error: Uncaught Error: Unknown format specifier “,”
    in D:\sites\toit\wp-content\plugins\sweeppress\d4plib\dev4press\core\admin\Plugin.php on line 264

    Call stack:

    1. sprintf()
      wp-content/plugins/sweeppress/d4plib/dev4press/core/admin/Plugin.php:264
    2. Dev4Press\v\C\A\Plugin::help_tab_getting_help()
      wp-content/plugins/sweeppress/core/admin/Plugin.php:199
    3. Dev4Press\P\S\A\Plugin::help_tab_getting_help()
      wp-content/plugins/sweeppress/d4plib/dev4press/core/admin/Plugin.php:244
    4. Dev4Press\v\C\A\Plugin::load_admin_page()
      wp-includes/class-wp-hook.php:310
    5. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:334
    6. WP_Hook::do_action()
      wp-includes/plugin.php:517
    7. do_action()
      wp-admin/admin.php:23

    With WP 6.3, PHP 8.0.7, Mysql 5.7.37

    Thanks for your answer

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Hi,

    This is not the problem with the plugin, but with the French translation. At one point, the %s in the string was translated as % only, and that caused the issue. It has been fixed since, so I am not sure why you are getting that error now. This was discussed already here: https://wordpress.org/support/topic/error-1792/

    Try to remove plugin translation file from your installation (it should be in wp-content/languages/plugins folder), and try again. Or switch language to English temporarily to confirm it is the translation issue.

    I have no control over the translations on WordPress.org, and if someone commits wrong translation it can cause problems.

    Milan

    Thread Starter pasglop

    (@pasglop)

    I don’t understand. this is a copy of the french translation, and there is no problem with that.

    This is the validated translation :

    Original chain : To get help with %s, you can start with Knowledge Base list of frequently asked questions, user guides, articles (tutorials) and reference guide (for developers).

    The translation : Pour obtenir de l’aide sur les %s, vous pouvez commencer par la liste des questions fréquemment posées de la base de connaissances, les guides d’utilisation, les publications (tutoriels) et le guide de référence (pour les développeurs/développeuses).

    What i can see in the Plugin.php file, in line 264, is that you use d4plib for textdomain, instead of SweepPress. Is there a reason ?

    regards

    Plugin Author Milan Petrovic

    (@gdragon)

    Folder d4plib contains the shared library and it uses different domain. But, that is not the problem here, problem is that at some point the translation on WordPress.org was invalid, and the MO file download contains broken translation. Now, if I download French translation (after deleting the files I had previously), it downloads translation, and that one string is no longer translated.

    I am not sure what the problem is, but please, go to the wp-content/languages/plugins and delete sweeppress translation files. If the problem is gone, it means you had old translation file. Or, simply try switching to English to see if the problem is gone. It is possible that at different points in time, translation downloaded by WordPress was invalid, and was not properly updated.

    Let me know if the problem is gone when the files are deleted. And, try to download translations directly from WordPress.org manually, and replace them in the languages folder.

    Milan

    Thread Starter pasglop

    (@pasglop)

    Without any translation french file (deleted), the problem is the same, same error, same file, same line. And same thing if i download the .mo file from translation.org.

    I precise that’s it’s sweepPress lite.

    • This reply was modified 2 years, 7 months ago by pasglop.
    Plugin Author Milan Petrovic

    (@gdragon)

    I have set up the blank test website, installed only SweepPress Lite, tried English, French and other languages, I can’t reproduce this error. The line in the code is valid. The only way to trigger the error is to download the invalid translation from WordPress.org and use that one (I have it in backup from previous report – same report same error, same language).

    I will try to reproduce the problem some other way, but the code is all valid, it is not triggering error on it’s own. I will keep you posted over the next week or so, if I find out something new.

    Thread Starter pasglop

    (@pasglop)

    Hello, some news :

    It works with PHP 7.4, but not with PHP 8.0.7…

    Plugin Author Milan Petrovic

    (@gdragon)

    OK, thanks, I will investigate this, and release update as soon as possible.

    Plugin Author Milan Petrovic

    (@gdragon)

    PHP version change did the trick, and I have found the problem, thanks!

    Version 2.3.1 has been released with the fix.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Fatal error’ is closed to new replies.