• Hello,

    For some days (weeks ?), i have had a problem : the FRENCH translation of Woocommerce was stuck at around 77%, while it should be at 99-100%. So I suspected an error in the plugin somewhere…

    Yesterday, i have received an error from my admin mailbox : Une erreur de type E_ERROR a été causée dans la ligne 203 du fichier (…)www/wp-content/plugins/loco-translate/src/hooks/LoadHelper.php. Message d’erreur : Uncaught Error: Class “Loco_fs_File” not found in (…)www/wp-content/plugins/loco-translate/src/hooks/LoadHelper.php:203

    I thought maybe the plugin was corrupted or something. So i deleted the plugin, and then re-installed it.

    But as soon as i have reinstalled it, i get a fatal error on my website.

    So i deleted the plugin from my FTP. And then, my website was OK again. But :

    1. when going back to the plugins page (on my back-end), i got the message : “L’extension loco-translate/loco.php a été désactivée en raison d’une erreur : Le fichier de l’extension n’existe pas.”
    2. The error logs of my site tells me : 2025-04-16T19:10:46+00:00Critique Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “wp_print_speculation_rules” not found or invalid function name in (…)www/wp-includes/class-wp-hook.php:324 etc…

    I have tried to re-install, but the same problem occured, so i re-deleted the plugin via FTP.

    What’s wrong … ? Can you help debug please ?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Firstly, your translations being “stuck” is normal. These are not translated automatically. It is simply telling you how much has been translated.

    Regarding your actual error – this is strange. It sounds like your Loco Translate installation is incomplete or somehow corrupt.

    Uncaught Error: Class “Loco_fs_File” not found in (…)www/wp-content/plugins/loco-translate/src/hooks/LoadHelper.php:203

    This sounds like the file is missing, or the autoloader is not working (unlikely), or some other code is using the LoadHelper class (also unlikely). Can you check the file exists at src/fs/File.php under the plugin root?

    “L’extension loco-translate/loco.php a été désactivée en raison d’une erreur : Le fichier de l’extension n’existe pas.”

    The extension file doesn’t exist? Have you checked? If the file loco.php doesn’t exist in the plugin root, then something is even more messed up. How did you install this? Is there some detail you’re missing out? If this file doesn’t exist, then your first error could not have occurred.

    Thread Starter divinebox

    (@divinebox)

    Hello,

    I have checked and the file exists at loco-translate/src/fs/File.php ✅ and at loco-translate/loco.php as well ✅

    How did i install the plugin ? The standard way : wpadmin >> plugins >> add new plugin >> loco translate >> install >> activate

    I have been using your plugin for 7 years and everything was OK.

    I have deactivated plugin “query monitor”, and the error disappears. As soon as i reinstall query monitor, the error comes back. So i conclude there is a plugin conflict between Loco and Query Monitor. I’ll let them know, but could you have a look on your side, too, to checker it ?

    Thanks

    Plugin Author Tim W

    (@timwhitlock)

    I don’t know how another plugin could interfere at this level, but post a free download link to the plugin you say is conflicting, and I’ll check it for myself.

    Thread Starter divinebox

    (@divinebox)

    Plugin Author Tim W

    (@timwhitlock)

    I have no such problem installing both of these plugins simultaneously. This includes enabling French as my site language.

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

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