WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Error message in widget + all polls page (3 posts)

  1. Ludivine_Bene
    Member
    Posted 11 months ago #

    Hi,

    I've just updated the Yop poll plugin into my 3.5.2 version of WordPress and now have an error message:

    Warning: Illegal string offset 'is_default_answer' in /homepages/5/d478148160/htdocs/wordpress/wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3462

    Warning: Illegal string offset 'is_default_answer' in /homepages/5/d478148160/htdocs/wordpress/wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3462

    Warning: Illegal string offset 'is_default_answer' in /homepages/5/d478148160/htdocs/wordpress/wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 3462

    Yes, it appears three times.

    Thanks a lot.
    Ludivine

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Ludivine,

    Please edit inc/yop_poll_model.php and on lines 3462 and 3456 replace

    if ( 'yes' == $answer_options['is_default_answer'] )

    with

    if ( isset( $answer_options['is_default_answer'] ) && 'yes' == $answer_options['is_default_answer'] )

    If you can not edit the file please get back to us and we will assist.

    Best wishes,

    YOP Team

  3. Ludivine_Bene
    Member
    Posted 11 months ago #

    Perfect !

    Thanks a lot YOP team! ;)

Reply

You must log in to post.

About this Plugin

About this Topic