Support » Plugin: Boxtal Connect - Boxtal, shipping for all. » WP 5.7 FR error : WP_Scripts::localize called incorrectly

  • Just to let you know, running the plugin with WordPress 5.7, we can see the following problem with the Boxtal plugin (noticeable only when debug mode is enabled) :

    Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. (This message was added in version 5.7.0.)
    in […]/functions.php on line 5313

    Environnement : WordPress bedrock 5.7 in french running on php 7.4 (64bit)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author boxtal


    Hello @duckeater ,

    Many thanks for the warning, we really appreciate! We will look into this asap and see what we can do to fix this! We’ll make sure to write a follow-up reply!

    Boxtal Team

    Plugin Author boxtal


    `Hello again,

    Just a quick follow-up to let you know we’ve looked into it and it seems that this isn’t causing issues at the moment. We’ll keep looking into it for monitoring in case there are any changes!

    Many thanks again for reaching out!
    Boxtal Team

    Je me permets de réouvrir ce topic, j’ai également le même soucis sur mon site, dès que j’active le plugin boxtal (je ne l’utilisais pas avant et je voulais le mettre en place) j’ai la même remarque relevé par @duckeater:
    “Notice: WP_Scripts::localize est appelée de la mauvaise manière. Le paramètre $l10n doit être un tableau. Pour transmettre des données arbitraires aux scripts, utilisez plutôt la fonction wp_add_inline_script(). Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 5.7.0.) in D:\xamp\htdocs\creation\wp-includes\functions.php on line 5313”
    Je suis sur la dernière version de WordPress 5.7.2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 5.7 FR error : WP_Scripts::localize called incorrectly’ is closed to new replies.