• So there is an error I get in my ftp log on my widget but it seems to work find. Can anyone help me figure out how to fix this thanks much appreciated! This error is in the widget it self it seems but it runs and acts fine still so I am not sure why I am getting this error.

    [06-Jun-2014 19:20:13 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'ryv_widget' not found or invalid function name in /home1/username/public_html/dev/wp-includes/plugin.php on line 470

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have a bad plugin or theme. Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter zigvt85

    (@zigvt85)

    Ya I tested it on every other theme and it still shows the same error. I didn’t originally create this plugin. I wanted to try and update and so far it all works find I just get that one error log but it shows the plugin working 100% minus that bug lol. Kinda frustrating I am not sure what else to do maybe just hope someone can help me. I believe it has something to do with the new widgets because the old widget was find until I tried to convert it that’s when I got the error.

    This WordPress site I am using the plugin on I have no other plugins active only this one. It has something to do with the new styling of the widget. I think its trying to register it and it does but something is showing up as an error.

    Moderator keesiemeijer

    (@keesiemeijer)

    The widget tries to call a function “ryv_widget” but that function does not exist.

    Can you paste and submit the full code of the widget into a pastebin.com and post the link to it here? see the Forum Rules for posting code and using the pastebin.

    Thread Starter zigvt85

    (@zigvt85)

    Here is the entire widget code. I didn’t want to give out the entire code because I am not the original creator of it. This expires 1month in pastebin.com

    https://pastebin.com/aW9m2AJc

    Thanks,
    Zach

    Thread Starter zigvt85

    (@zigvt85)

    Never mind guys you can close this topic I fixed it. The widget was trying to register 2 widgets but only one was made. I forgot to remove the old code rookie mistake ?? lol now I know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on my widget but seems to work ok…’ is closed to new replies.