• Hi,

    I am getting the below issue which is breaking some pages that use the feed. Do you know of a fix for this at all?

    <b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in <b>/home/blogticketmaster/public_html/wp-includes/plugin.php</b> on line <b>496</b>

    I have tried the solutions in the support area with no luck.

    Many thanks!

    Josh

    https://wordpress.org/plugins/feed-json/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nagmay

    (@gabrielmcgovern)

    Not the author, but since I just downloaded the plugin and noticed the same thing…

    Line 52 triggers a function with ‘add_feed’ each time the page loads. Add_feed should only be (and already is) loaded when the plugin is first initialized. So, it looks like 52 is left over from an earlier version. I commented it out without issue:

    // add_action( 'init', array( $this, 'add_feed_json') );

    Great little plugin. Hope this is fixed soon.

    Thanks Nagmay! It works for me as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in Feed’ is closed to new replies.