Skip Navigation

[Résolu] "Warning: trim() expects parameter 1 to be string" on post edit form

This support ticket is created Il y a 5 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par julieP Il y a 5 années et 1 mois.

Auteur
Publications
#1368831

All plugins up to date. This appears on frontend when viewing post edit form on frontend:-

Warning: trim() expects parameter 1 to be string, array given in /home/tarasheb/public_html/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/toolset-forms/classes/class.eforms.php on line 990

There are single select fields (checkbox and radio), the only multiple select field is taxonomy and no generic select fields.

I'm not sure when this first arose but definitely in Forms 2.5.2 and 2.5.1.

Any ideas please?

#1368897

In case of interest: I discovered I had failed to change the slug on a custom field I had created 'from existing custom field' so I had two custom fields with the same slug (I'm surprised the new field saved successfully). Once I had corrected the new field slug, the warning stopped appearing