WordPress.org

Forums

Contact Form 7
[resolved] Contact Form Message Warning: Illegal string offset (5 posts)

  1. LiliwoL
    Member
    Posted 1 year ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    What version of the plugin do you use?

  3. LiliwoL
    Member
    Posted 1 year ago #

    Contact Form 7 v 3.7.2
    Wordpress last version too

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. LiliwoL
    Member
    Posted 1 year ago #

    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"

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic