Title: Warning: call_user_func_array() [function.call-user-func-array]: First argument
Last modified: March 8, 2017

---

# Warning: call_user_func_array() [function.call-user-func-array]: First argument

 *  [larryb44](https://wordpress.org/support/users/larryb44/)
 * (@larryb44)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-call-user-func-array-first-argument/)
 * Warning: call_user_func_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ” was given in /home1/larryb44/public_html/
   wp-includes/class-wp-hook.php on line 298 ……appears on front page of [http://www.ussfranklindroosevelt.com](http://www.ussfranklindroosevelt.com)
   PLEASE HELP!

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

 *  [cy_borg5](https://wordpress.org/support/users/cy_borg5/)
 * (@cy_borg5)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-call-user-func-array-first-argument/#post-9270143)
 * I have the same problem on two of my blogs. I see that this message has not been
   replied in three months. Is this plug-in still supported or not?
 *  [antoiiine](https://wordpress.org/support/users/antoiiine/)
 * (@antoiiine)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-call-user-func-array-first-argument/#post-9324912)
 * Since Updating to 4.7 I have the same problem. It would be great to know if this
   plug-in is still supported or not?
 *  [gerryhickman](https://wordpress.org/support/users/gerryhickman/)
 * (@gerryhickman)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-call-user-func-array-first-argument/#post-9615212)
 * This PHP warning might be related to a change in WordPress core 4.7.x related
   to new class ‘wp-includes/class-wp-hook.php’. As it’s a warning, you would not
   normally see it in the browser, unless you’d enabled WP_DEBUG or told PHP to 
   display errors.
 * Here’s a possible fix, it’s experimental only, but it’s only one line, so quite
   easy to revert.
 * make a backup, then edit collapsPage.php, change this line near the top (look
   out for word wrap, this code is only two lines)
 *     ```
       //add_action('wp_head', wp_enqueue_script('jquery'));
       add_action('wp_enqueue_scripts', function(){wp_enqueue_script('jquery');});
       ```
   
 * reload the page to test. On my system, the warning went away after this change,
   and the JavaScript is still able to expand and collapse.
    -  This reply was modified 8 years, 8 months ago by [gerryhickman](https://wordpress.org/support/users/gerryhickman/).

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

The topic ‘Warning: call_user_func_array() [function.call-user-func-array]: First
argument’ is closed to new replies.

 * ![](https://ps.w.org/collapsing-pages/assets/icon-256x256.gif?rev=2886541)
 * [Collapsing Pages](https://wordpress.org/plugins/collapsing-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-pages/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [gerryhickman](https://wordpress.org/support/users/gerryhickman/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-function-call-user-func-array-first-argument/#post-9615212)
 * Status: not resolved