• Resolved rick9004

    (@rick9004)


    In my web log (apache) found this error:

    call_user_func_array() expects parameter 1 to be a valid callback, function ‘cptui_register_my_cpts_makingeats’ not found or invalid function name in /var/www/html/wp-includes/class-wp-hook.php on line 286

    I have multiple custom post types. This error occurs any time when a page that uses a custom type for rendering. The custom post seems to be working fine.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you copy/paste an add_action() line from the get code area, without also copy/pasting the function declaration as well?

    Only answer I can think of at the moment for why this would be happening. For what it’s worth, the Get Code section isn’t what does the registering with CPTUI, it’s simply output for copy/paste purposes if you want to migrate away from CPTUI while retaining the settings.

    Thread Starter rick9004

    (@rick9004)

    Thanks. I had a stray leftover line in my functions.php file. WHen I first started to use the plugin I thought that I had to register them via my functions. I missed one line when I took those out.

    Your note pointed me to the solution as I couldn’t find it before.

    • This reply was modified 6 years, 11 months ago by rick9004.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad I could help.

    Have a good rest of your day and happy holidays.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid function call’ is closed to new replies.