• Resolved bd371

    (@bd371)


    Suite à une fausse manip de ma part, j’ai l’erreur :

    Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in /htdocs/wp-content/plugins/user-submitted-posts/library/core-functions.php on line 315

    Je ne suis pas expert et à la ligne 315 j’ai :

    $value = htmlspecialchars_decode($value);

    Je dois rajouter quoi ?

    Merci d’avance pour votre aide

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help.

    That warning does not happen with the default settings.

    What do you have for the setting, “Custom Field 1”:

    • Custom Field Name
    • Custom Field Label

    That way I can repeat the issue and try to resolve asap.

    Thread Starter bd371

    (@bd371)

    Merci pour votre aide.

    Je lui demandai l’adresse mail à nouveau pour l’inscrire. Je me suis aper?u que le mail était affiché sur la page. J’ai donc supprimé le code dans l’urgence.

    J’ose penser que cela va se rétablir à la prochaine mise à jour.

    Plugin Author Jeff Starr

    (@specialk)

    Glad to help anytime.

    If the error happens again, let me know the values of the 2 options above. That way I can take a look and try to help.

    Let me know if any questions about this, or anything else. Thank you.

    Thread Starter bd371

    (@bd371)

    Même si j’ai modifié le formulaire, j’ai toujours l’erreur :

    Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in /htdocs/wp-content/plugins/user-submitted-posts/library/core-functions.php on line 315

    sur la page https://www.m-macitation.com/vos-citations/une-heure-a-attendre-la-personne-quon-aime-cest-une-heure-de-battements/801/

    Plugin Author Jeff Starr

    (@specialk)

    Two points:

    1) The form on that page is not a USP form. It is a comment form, provided by your theme and/or some other plugin.

    2) I do however see the “Warning: htmlspecialchars_decode” warning displayed on the page. As explained before, that warning does not happen when the default plugin settings are used. That is why I ask what you have entered for the following settings:

    • Custom Field 1 > Custom Field Name
    • Custom Field 1 > Custom Field Label

    I need to know what you have for both of those settings, or there is no way for me to replicate the issue and try to help.

    Thread Starter bd371

    (@bd371)

    Excusez moi pour ma réponse tardive.
    Dans le Champ personnalisé 1 > usp_custom_field en demandant l’adresse mail à nouveau.

    Le formulaire m’affichait l’email sur la page alors que je ne voulais que le récupérer.
    J’ai donc supprimé le code qui affichait l’email sur cette page et générer cette erreur.

    Je n’avais pas compris que “usp_custom_field” m’afficherait l’email de l’internaute.

    Plugin Author Jeff Starr

    (@specialk)

    Thank you.

    I’m not sure what you are trying to do, but the error you are getting happens because of the changes made to the above two settings. So to resolve the error, restore the default values for both of those options. The error does not happen when using the default values for the above two options.

    Thread Starter bd371

    (@bd371)

    Merci à vous.

    l’erreur ne se produit plus, c’est déjà ce que j’ai fait, mais je voulais enlever ce code qui apparait, difficile, voir impossible je pense. Ce n’est pas si grave.

    Merci de votre patience et d’avoir pris le temps. Belle journée à vous.

    Plugin Author Jeff Starr

    (@specialk)

    Okay thank you. Glad to hear the error is resolved. Feel free to post again with any further questions, feedback, etc. Glad to help anytime.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Erreur core-functions.php’ is closed to new replies.