Skip Navigation

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

This support ticket is created 5 years, 1 month ago. 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.

Our next available supporter will start replying to tickets in about 2.31 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by julieP 5 years, 1 month ago.

Author
Posts
#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