WordPress.org

Forums

Easy Recipe
[resolved] Getting 'WARNING: ' from easy recipe (8 posts)

  1. Alfred K
    Member
    Posted 1 year ago #

    Hey I'm getting this warning on my xxxxx.com/wp-admin/edit.php?post_type=recipes live website but not on my local. Any help would be great as to remedy this problem.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'EasyRecipe' does not have a method 'thePost' in /home/xxxxx/public_html/wp-includes/plugin.php on line 546

    Thanks a lot

    https://wordpress.org/plugins/easyrecipe/

  2. Alfred K
    Member
    Posted 1 year ago #

    Any update on this?

    Thanks

  3. migusto.mk
    Member
    Posted 1 year ago #

    I have the same problem, alfredk did you find any solution?

  4. Alfred K
    Member
    Posted 1 year ago #

    Hey Founds a fix for this one. I put this script in my functions.php
    Everything seems to be working smooth!

    remove_action('the_post', array($this, 'thePost'));

  5. migusto.mk
    Member
    Posted 1 year ago #

    Alfredk, thanks a lot, works perfectly...

  6. foodfa7
    Member
    Posted 1 year ago #

    AlfredK, can you specify where exactly you put the script? Which functions.php file (of the theme, or of wp-includes), and in which line/ place exactly? Sorry, not really familiar with coding...

  7. Alfred K
    Member
    Posted 1 year ago #

    Hey Foodfa7, Just paste it at the bottom of your functions.php. I usually put my custom functions at the bottom under some commented out notes.

    // custom function
    remove_action('the_post', array($this, 'thePost'));

    Something like that

    Gooe luck

  8. foodfa7
    Member
    Posted 1 year ago #

    Thanks a lot AlfredK - works!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Recipe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.