• Resolved floregonian

    (@floregonian)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    – First, what version of WP you are working with? If 4.3, then please note the message on that plugin’s page, which says: “Compatible up to: 4.2.4

    Second, I recommend asking in this dedicated support sub-forum for better results. There you will be more likely to find a good answer from its developers: https://www.ads-software.com/support/plugin/advanced-custom-fields

    Thread Starter floregonian

    (@floregonian)

    Hi, Tara:

    We’re using WordPress 4.3. Sorry I didn’t post that right away.

    I’ll post my request, including the version of WordPress, in the proper subforum.

    In the meantime, don’t you think it’s still appropriate here, as the problem is also showing up across WordPress on every Featured Image, on every post?

    Jeremy

    Thread Starter floregonian

    (@floregonian)

    Also, let me clarify:

    the “Warning: trim() expects parameter 1 to be string, array given in /home/onehopenetvps/onehope.net/wp-includes/link-template.php on line 3156” error I’m seeing is happening when I’m in the wordpress admin space, using the wordpress editor. It’s not just on the front end.

    Jeremy

    Thread Starter floregonian

    (@floregonian)

    I just rolled back to 4.2.4 for now . . . I need an actively working site. Everything seems to be working just fine. I’ll keep my eye out for other instances of this problem and whether or not they get solved before upgrading to 4.3.

    Thanks!

    Jeremy

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured images are throwing a "trim() expects parameter 1 to be string" error’ is closed to new replies.