• Resolved mnieuwsma

    (@mnieuwsma)


    I’m having a problem trying to submit Constant Contact forms on my sites. They load properly on the page but when hitting submit, I get the following error:
    Catchable fatal error: Object of class WP_Post could not be converted to string in /public_html/wp-includes/formatting.php on line 1031
    I have looked at this line and it is function wp_check_invalid_utf8( $string, $strip = false ) {
    $string = (string) $string;

    Please advise?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Really hard to say what the source of the issue is, truth be told, without what’s known as a stack trace and order in which code is called. We don’t invoke the function above directly, so it’s something done in between the submission of the form, and the attempted processing.

    That said, I submitted to the form twice, once without the email confirmation checkbox, and once with, and neither time did it give me an error. Not saying it’s not an issue, just that thus far I am not managing to recreate.

    Thread Starter mnieuwsma

    (@mnieuwsma)

    I found that ticking the checkbox ‘Submit via Ajax’ stops the error, but the form still does not perform correctly. In this condition, the form submits and the email is sent, but the list is not updated.

    I have taken this parameter off on this form so you can check the error: https://opticallabproducts.com/digital-edition-subscription-form

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That time it did actually go to that error mentioned above, however that sadly still doesn’t give enough information to really know what’s going on and where the issue is.

    Do you know if your hosting is set up to log errors in better detail?

    Also, if you’re willing to let a support member try to dive in deeper to this topic as a whole, please contact apisupport@constantcontact.com and we can take things privately from there. Provide a link to this support thread and mention “Michael WordPress Forums” for the subject.

    Thread Starter mnieuwsma

    (@mnieuwsma)

    Our hosting is set up to log errors but I’m not easily finding anything relevant to this issue. I will send an email to api support.

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds good.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Found that a plugin was inserting its own content/WP_Post object into the $_POST superglobal, and thus our form submission sanitization was fatal erroring due to that object.

    Solution noted and will be in next release.

    Plugin Author Constant Contact

    (@constantcontact)

    Marking as resolved. This will be addressed in the 1.3.5 release.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Catchable Error when submitting form’ is closed to new replies.