Support

Account

Home Forums ACF PRO Can't convert object to a string

Solved

Can't convert object to a string

  • I think I found a bug. I’m not sure if this is related to WooCommerce or not, but I’m getting a “Can’t convert object to a string” in both: api/api-template.php & api/value.php

    The $post_id is an object, so I simply put in both files:

    if ( is_object( $post_id ) ) {
    return false;
    }

    and that seems to get rid of the error, but not sure if it’s causing more issues.

    • Elliot

    • July 22, 2014 at 10:34 am

    Hi @joelataylor

    Thanks for the bug report. Can you please specify line numbers and also provide the context where this error occurs?

  • Hmmm, well, now that I’ve upgraded to 5.0.2 I can’t reproduce the issue. ha. I’ll reopen if it shows again. Thx!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.