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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Paul

    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

    (@vinojcardoza)

    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.