WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Error: Call_user_func_array? (12 posts)

  1. NovaScotiaGuy
    Member
    Posted 1 year ago #

    Glad to find this new plug-in - lots of potential!

    I am getting this error across top of my screen: <<<b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, class 'Yop_Poll_Public_Admin' does not have a method 'do_shortcode' in ...>>>

    Is this a theme issue? A class has to be added to css in the theme?

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

  2. NovaScotiaGuy
    Member
    Posted 1 year ago #

    Deleted $this->add_filter( 'widget_text', 'do_shortcode'); from public-admin.php The script has now gone off front header of site but no idea if this will hinder the program.

  3. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hey NovaScotiaGuy

    Thank you for giving our plugin a try.

    Can you give us more details on the problem you are facing?
    Did the error showed up right after the install?

    Looking forward for your reply.
    YOP Team

  4. NovaScotiaGuy
    Member
    Posted 1 year ago #

    An error message popped up underneath the head banner of our site as soon as it was activated:

    <b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, class 'Yop_Poll_Public_Admin' does not have a method 'do_shortcode' in <b>/home/atlanti2/public_html/wp-includes/plugin.php</b> on line <b>170</b>
    <div class="social_media_top widget_text substitute_widget_class"> <div class="textwidget"></div>
    </div>

    It showed at the same place as vr-visitas media area stats but don't know if that has any meaning.

    I thought I might have to cut and paste a class from Yop plug-in into theme (U-design) area. However I went to public-admin.php of Yop plugin and deleted
    $this->add_filter( 'widget_text', 'do_shortcode');

    It seems to be working with that deletion but I do not know if there will be problems elsewhere because of that.

    No problem visible yet due to deletion of line.

    Like this program, have messed with many many plugins and also trying to paste outside WP php scripts for few weeks. Thanks, good luck with the plugin.

  5. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    We have just released a new version that should fix the issue you are experiencing.

    Please update to the latest version and let us know if you still encounter any problems.

    Thank you
    YOP Team

  6. NovaScotiaGuy
    Member
    Posted 1 year ago #

    It now does this:

    <b>Warning</b>: Missing argument 1 for do_shortcode(), called in /home/atlanti2/public_html/wp-content/plugins/yop-poll/inc/public-admin.php on line 11 and defined in <b>/home/atlanti2/public_html/wp-includes/shortcodes.php</b> on line <b>144</b>
    <

  7. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hey NovaScotiaGuy

    We have just released a new version that should fix the issue you are experiencing.

    Please update to the latest version and let us know if you still encounter any problems.

    Thank you
    YOP Team

  8. NovaScotiaGuy
    Member
    Posted 1 year ago #

    No error messages now. However - a widget no longer works - a text widget used as spacer to move statistics down below our logo in the top area social media section.

  9. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Could you send us the link to your blog so we can take a look?

    Eventually, you can email us the link at support[a!t}yourownprogrammer.com.

    Thank you.
    YOP Team

  10. NovaScotiaGuy
    Member
    Posted 1 year ago #

    We sent an email link twice to support[a!t}yourownprogrammer.com. "Resolved" notice has since popped up without any investigation or solving of problem. Perhaps mail is going to junk bins.

    To re-introduce problem - plugin is forcing stats in site media area to go to far top of page - nulling widgets used as spacers.

  11. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hey NovaScotiaGuy

    I am sorry about this. It looks like your emails ended up in junk folder.

    I now see your emails and will address this shortly.

    Thank you.
    YOP Team

  12. NovaScotiaGuy
    Member
    Posted 1 year ago #

    Thanks - new update has fixed problem!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.