Title: Invalid function call
Last modified: December 16, 2017

---

# Invalid function call

 *  Resolved [rick9004](https://wordpress.org/support/users/rick9004/)
 * (@rick9004)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-function-call/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-function-call%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-function-call/#post-9789185)
 * 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](https://wordpress.org/support/users/rick9004/)
 * (@rick9004)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-function-call/#post-9800025)
 * 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 8 years, 5 months ago by [rick9004](https://wordpress.org/support/users/rick9004/).
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-function-call/#post-9800132)
 * 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.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-function-call/#post-9800132)
 * Status: resolved