• Resolved marcalzieu

    (@marcalzieu)


    Hi everybody

    I have a critical error on the backend when autoptimize is activated. (Frontend work well)
    Trying deactivating all plugin and using default theme do not change anything…
    An help would be really appreciate…

    Thx !

    Stacktrace :

    Fatal error: Uncaught ValueError: Unknown format specifier "C" in /home/sandrin/www/wp-content/plugins/autoptimize/classes/autoptimizeImages.php:1272 Stack trace: #0 /home/sandrin/www/wp-content/plugins/autoptimize/classes/autoptimizeImages.php(1272): sprintf('L\xE2\x80\x99optimisatio...', '<a href="https:...', '</a>') #1 /home/sandrin/www/wp-content/plugins/autoptimize/classes/autoptimizeImages.php(1306): autoptimizeImages->get_imgopt_status_notice() #2 /home/sandrin/www/wp-content/plugins/autoptimize/classes/autoptimizeCacheChecker.php(98): autoptimizeImages::get_imgopt_status_notice_wrapper() #3 /home/sandrin/www/wp-includes/class-wp-hook.php(303): autoptimizeCacheChecker->show_admin_notice('') #4 /home/sandrin/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #5 /home/sandrin/www/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #6 /home/sandrin/www/wp-admin/admin-header.php(287): do_action('admin_notices') #7 /home/sandrin/www/wp-admin/plugins.php(603): require_once('/home/sandrin/w...') #8 {main} thrown in /home/sandrin/www/wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 1272

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    That looks like a problem with the translation marcalzieu, can you try to briefly switch your WordPress account to English (users -> profile) to see if the issue persists?

    If not I’ll be happy to ping someone on the translation team, what language are you on?

    Thread Starter marcalzieu

    (@marcalzieu)

    Thx U r right !
    Putting the whole website to English (Settings->General) make the critical error disapared.
    The language used is french.
    Let me know if I can help to diagnose the problem more precisely.

    Thx

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I contacted one of the members of the fr-FR translation team, I’ll ping you when I hear (read) more 🙂

    Salutations de la (partie Nord de la) Belgique! 😉
    frank

    Thread Starter marcalzieu

    (@marcalzieu)

    Salutation du sud de la France !!!!
    Quand je pense comment je me suis emmerdé avec l’anglais pour ces messages 😉
    Cela a dû se voir je pense… Il est loins le temps où je travaillais en anglais…
    J’espère que malgré le climat et les crises ça ne va pas trop mal pour vous…
    Merci bcp pour l’efficacité, la diligence et le workaround, ca fonctionne tres bien…

    N’hesitez pas a faire appel à moi pour tester ce soucis.

    Encore merci !

    ===========================

    Greetings from the south of France !!!!
    When I think about how I got pissed off with English for these messages ;-)
    It must have been seen I think ... It's a long time ago when I was working in English ...
    I hope that despite the climate and the crises things are not going too badly for you ...
    Thank you so much for the efficiency, diligence and the workaround, it works very well ...
    
    Do not hesitate to call on me to test this problem.
    
    Thanks again !
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Bof, les langues, on doit les apprendre ici en Belgique, étant un pays aussi petit mais ayant quand-même 3 langues officielles (DE/ FR/ NL) et une quatrième qui est partout (EN, obviously) 😉

    Je te tiendra au courant!

    Salut,
    Je viens de revoir la traduction.
    J’attends quelques réponses de Frank pour voir ce qu’il faut corriger.
    Bonne journée,

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Salut css31; est-ce que ça fonctionne maintenant en FR avec les mis-à-jour de fichier langue?

    Salut Frank,

    De mon côté, il n’y avait pas de plantage. Donc je ne peux pas dire si ça va mieux. C’est d’ailleurs étrange qu’une traduction fasse planter, non ?

    Cela dit, toutes les chaînes ont l’air d’êtres traduites, maintenant.

    Bonne journée,

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    zut, la question était plutôt pour marcalzieu en effet 🙂

    C’est d’ailleurs étrange qu’une traduction fasse planter, non ?

    tout à fait; surtout ceci m’étonnait (extrait du erreur original si dessus);
    'L\xE2\x80\x99optimisatio

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, j’ai découvert le problème, qui est assez technique @css31 ; le sprintf modifier n’est pas complète dans %1$Connectez-vous, ça doit être %1$sConnectez-vous et si on est en PHP8 (c’est le cas chez vous marcalzieu ?) ça donne une erreur assez sévère.

    J’ai proposé le changement sur https://translate.ww.wp.xz.cn/projects/wp-plugins/autoptimize/stable/fr/default/?filters%5Btranslated%5D=yes&filters%5Bstatus%5D=waiting, pourrez-vous confirmer Cyrille?

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    La traduction a été approuvé, le mis-à-jour du fichier de traduction devrait arriver plus tard aujourd’hui ou demain marcalzieu 🙂

    Perfect.

    Thanks a lot.

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

The topic ‘Critical Error on Admin panel’ is closed to new replies.