Support » Plugin: Contact Form 7 » Contact Form Message Warning: Illegal string offset

  • Resolved LiliwoL

    (@liliwol)


    Hi , i’m using PHP 5.4

    each one og my forms have the problem of

    <b>Warning</b>: Illegal string offset ‘validation_error’ in <b>(…)/wp-content/plugins/contact-form-7/admin/includes/meta-boxes.php</b> on line <b>97</b>
    M

    in messages part
    even if i change them, this errors come back

    It generates many warnings.
    I remember i encountered the problem, solved it, but since last update, it came back.

    Have any idea how to solve it back again?

    Thansk a lot for that helpful plugin

    https://wordpress.org/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What version of the plugin do you use?

    Contact Form 7 v 3.7.2
    Wordpress last version too

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Contact Form 7 v3.7.2’s admin/includes/meta-boxes.php doesn’t have any ‘validation_error’ in its code. Maybe you have changed the code or you’re using different plugin.

    I didn’t changed that file, and in my meta-boxes.php there is no ‘validation_error’ string too.

    But, if you look at the line 97 there is a code:
    <input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="wide" size="70" value="<?php echo esc_attr( $post->messages[$key] ); ?>" />

    This ‘validation-error’ is a one of those $key.
    I have had many other same error messages about that illegal offset as:
    number too large, date too early, upload failed…

    These messages also appear in the contact form back office in last part called “Messages”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact Form Message Warning: Illegal string offset’ is closed to new replies.