Title: Error message after &quot;save poll&quot;
Last modified: August 21, 2016

---

# Error message after "save poll"

 *  Resolved [kmand](https://wordpress.org/support/users/kmand/)
 * (@kmand)
 * [13 years ago](https://wordpress.org/support/topic/error-message-after-save-poll/)
 * After creating a poll I get this error message:
 * ( ! ) Warning: Illegal string offset ‘schedule_reset_poll_stats’ in C:\websites\
   insomnia\wp-content\plugins\yop-poll\inc\yop_poll_model.php on line 829
 * …then this:
 * Call Stack
    # Time Memory Function Location 1 0.0005 341968 {main}( ) ..\admin-
   ajax.php:0 2 0.6151 33670776 do_action( ) ..\admin-ajax.php:72 3 0.6151 33672288
   call_user_func_array ( ) ..\plugin.php:406 4 0.6151 33672320 Yop_Poll_Admin->
   ajax_edit_add_new_poll( ) ..\plugin.php:406 5 0.6160 33683784 Yop_Poll_Model-
   >edit_poll_in_database( ) ..\admin.php:7555 Poll successfully Edited!
 * So it works, but I would like to not get this message.
    I am using WP 3.6.1 thanks!
 * [http://wordpress.org/plugins/yop-poll/](http://wordpress.org/plugins/yop-poll/)

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

 *  [droopy57](https://wordpress.org/support/users/droopy57/)
 * (@droopy57)
 * [13 years ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4141932)
 * Hi !
 * in **yop_poll_model.php** on lines **829** & **969**
 * I replaced :
    `if ( 'yes' == $yop_poll_options['schedule_reset_poll_stats'] )
   </em>`
 * by :
    `if ( 'yes' == $request['yop_poll_options']['schedule_reset_poll_stats'])`
 * And it works
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_
 *  [droopy57](https://wordpress.org/support/users/droopy57/)
 * (@droopy57)
 * [13 years ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4141958)
 * Hi
    I can not edit my previous post Here the correction :
 * in **_yop\_poll\_model.php_** on lines 829 & 969
 * I replaced :
    `if ( 'yes' == $yop_poll_options['schedule_reset_poll_stats'] )`
 * by :
    `if ( 'yes' == $request['yop_poll_options']['schedule_reset_poll_stats'])`
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [13 years ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4142000)
 * Hi kmand,
 * Edit yop_poll_model.php and on lines 829 and 969 replace
 * if ( ‘yes’ == $yop_poll_options[‘schedule_reset_poll_stats’] )
 * with
 * if ( isset( $yop_poll_options[‘schedule_reset_poll_stats’] ) && ‘yes’ == $yop_poll_options[‘
   schedule_reset_poll_stats’] )
 * and it should fix the problem.
 * Best wishes,
 * YOP Team
 *  [jaroo](https://wordpress.org/support/users/jaroo/)
 * (@jaroo)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4142129)
 * i tried the last suggestion but the answers cannot be selected plus when you 
   type info under the custom fields i created (name, email), you can only see top
   half of the text. it also has yellow dots on every field created.
 *  [jaroo](https://wordpress.org/support/users/jaroo/)
 * (@jaroo)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4142130)
 * YOP Poll Archive Error Message
 * Warning: Illegal string offset ‘is_default_answer’……\wp-content\plugins\yop-poll\
   inc\yop_poll_model.php on line 3462
 * Help!

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

 The topic ‘Error message after "save poll"’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [jaroo](https://wordpress.org/support/users/jaroo/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/error-message-after-save-poll/#post-4142130)
 * Status: resolved