• On the site https://onehope.net we have Advanced Custom Fields running and many of the images the ACF plugin is using are throwing a specific error:

    “Warning: trim() expects parameter 1 to be string, array given in /home/onehopenetvps/onehope.net/wp-includes/link-template.php on line 3156”

    The weird thing is that when I go to any page, post, or custom category (we have several) to look at an individual post, I see the same error where the featured image used to be.

    “Warning: trim() expects parameter 1 to be string, array given in /home/onehopenetvps/onehope.net/wp-includes/link-template.php on line 3156”

    Even stranger, when I click on “Set Featured Image,” I get the media chooser with the correct image selected. Which means that WordPress is writing the file to the database correctly. It’s just being read incorrectly. Both on the front end and on the back end.

    Anyone else seeing this? Any ideas what might be going wrong?

    Thanks for your help!

    Jeremy

    https://www.ads-software.com/plugins/advanced-custom-fields/

  • The topic ‘images are throwing a "trim() expects parameter 1 to be string" error’ is closed to new replies.