• Resolved Glostog

    (@glostog)


    I noticed some errors from the contact form page on my website..

    Initially I was getting:
    mod_fcgid: stderr: PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in*****gloucesterphotographer/wp-includes/formatting.php on line 3192, referer: http://www.gloucesterphotographer.com/contact-me/

    I changed the date dropdown box to a plain text field, the error has now moved to..

    mod_fcgid: stderr: PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in*****gloucesterphotographer/wp-includes/formatting.php on line 3205, referer: http://www.gloucesterphotographer.com/contact-me/

    line 3192 is this bit..

    function esc_textarea( $text ) {
    $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( ‘blog_charset’ ) );
    /**
    * Filter a string cleaned and escaped for output in a textarea element.
    *
    * @since 3.1.0
    *
    * @param string $safe_text The text after it has been escaped.
    * @param string $text The text prior to being escaped.
    */
    return apply_filters( ‘esc_textarea’, $safe_text, $text );
    }

    Sorry for rambling… I can’t figure it out but my contact page is pretty simple if it helps get to the bottom of it.

    All best
    SI

    http://www.gloucesterphotographer.com

    https://ww.wp.xz.cn/plugins/si-contact-form/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Si, I had a look at your website and tried to test the contact form. When do you say you see those errors?

    What WordPress version do you have installed? What contact form version are you running?

    Thread Starter Glostog

    (@glostog)

    Hi MBR,

    I have WordPress 4.0.1 the en-gb version.
    Fast Secure contact form 4.0.30

    I see the errors in the server log, the form seems to function fine when I test it. I receive emails and it diverts to another page after completion. I don’t like not knowing why there is an error though.

    Many thanks for your help.
    Si

    Okay thank you for reporting, just one question how long have you being receiving this error in your server?

    Thread Starter Glostog

    (@glostog)

    I don’t always check the server logs. I first noticed these errors around a week-10 days ago. It could have been there before that but it wasn’t there a month ago.
    Many thanks

    Thread Starter Glostog

    (@glostog)

    OK, I’ve worked out the problem with mine….

    Another site was linking through to “contact-me” rather than “contact”. It looks like WordPress was cleaning the link…

    This still doesn’t explain why it started to happen recently as the linked from site has been around years. I’m also not sure that explains the actual error being reported (Text area element).

    Si.

    Hi Si it could have being a cache problem. Or do you use CDN by any chance?

    Thread Starter Glostog

    (@glostog)

    Hi MBR,
    I don’t use a CDN, I use Wordfence on the site.
    There was a real error. An old site was linking to the wrong URL and WordPress was correcting it (which is pretty bloody clever). 🙂
    This link has worked before without me realising that the URL was wrong, so the error has served its purpose allowing me to correct the error in routing. I still don’t understand why it shows the error it does, which would suggest a form problem, but hey-ho… The error itself is now sorted out.

    All best
    Si

    Hi Si, that is great news. So does that mean that your issue is resolved? If it is can you mark this support thread as resolved.

    Thank you

    Thread Starter Glostog

    (@glostog)

    Resolved. The error was in the link…
    Many thanks
    Si

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

The topic ‘invalid multibyte sequence…. Textarea escapes…’ is closed to new replies.