WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Poll
[resolved] old function calls fix code below (4 posts)

  1. Paul Bearne
    Member
    Posted 2 years ago #

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    http://wordpress.org/extend/plugins/cardoza-wordpress-poll/

  2. Paul Bearne
    Member
    Posted 2 years ago #

    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

  3. Paul Bearne
    Member
    Posted 2 years ago #

    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

  4. Vinoj Cardoza
    Member
    Plugin Author

    Posted 2 years ago #

    Code modified in the latest version. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic