Title: [Plugin: Cardoza WordPress Poll] old function calls fix code below
Last modified: August 20, 2016

---

# [Plugin: Cardoza WordPress Poll] old function calls fix code below

 *  Resolved [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-cardoza-wordpress-poll-old-function-calls-fix-code-below/)
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * [http://wordpress.org/extend/plugins/cardoza-wordpress-poll/](http://wordpress.org/extend/plugins/cardoza-wordpress-poll/)

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

 *  Thread Starter [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-cardoza-wordpress-poll-old-function-calls-fix-code-below/#post-2753452)
 * Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not
   be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or init hooks. Please see Debugging in WordPress for more information. (This 
   message was added in version 3.3.) in XXX\wp-includes\functions.php on line 3587
 * Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not
   be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or init hooks. Please see Debugging in WordPress for more information. (This 
   message was added in version 3.3.) in XXX\wp-includes\functions.php on line 3587
 * Notice: Use of undefined constant is_admin – assumed ‘is_admin’ in XXX\wp-content\
   plugins\cardoza-wordpress-poll\cardozawppoll.php on line 36 Notice: register_sidebar_widget
   is deprecated since version 2.8!
    Use wp_register_sidebar_widget() instead. in
   XXX\wp-includes\functions.php on line 3467
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, array
   must have exactly two members in XXX\wp-includes\plugin.php on line 405
 * pasted the code to fix it here [http://pastebin.com/Cfmejufq](http://pastebin.com/Cfmejufq)
 * Paul
 *  Thread Starter [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-cardoza-wordpress-poll-old-function-calls-fix-code-below/#post-2753453)
 * A few more bits
 * change on ln 245 in cardozawppoll.php
 *  if($poll->id == trim($atts[id])){?>
 * to
 *  if($poll->id == trim($atts[‘id’])){?>
 * missing : $vars[‘poll_id’] = $poll->id;
 * on ln 259 cardozawppoll.php
 * and you have left a $count++; on ln 302
 * Hope this helps
 *  Plugin Author [Vinoj Cardoza](https://wordpress.org/support/users/vinojcardoza/)
 * (@vinojcardoza)
 * [14 years ago](https://wordpress.org/support/topic/plugin-cardoza-wordpress-poll-old-function-calls-fix-code-below/#post-2753458)
 * Code modified in the latest version. Thanks

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

The topic ‘[Plugin: Cardoza WordPress Poll] old function calls fix code below’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cardoza-wordpress-poll_b2a382.svg)
 * [Wordpress Poll](https://wordpress.org/plugins/cardoza-wordpress-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cardoza-wordpress-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cardoza-wordpress-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/cardoza-wordpress-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cardoza-wordpress-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cardoza-wordpress-poll/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Vinoj Cardoza](https://wordpress.org/support/users/vinojcardoza/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-cardoza-wordpress-poll-old-function-calls-fix-code-below/#post-2753458)
 * Status: resolved