Title: Bug with 0.8 : Warning: call_user_func_array()&#8230;
Last modified: August 21, 2016

---

# Bug with 0.8 : Warning: call_user_func_array()…

 *  Resolved [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/)
 * Hello,
 * I have this error with the 0.8 version.
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, class‘
   Nextpage_Titles_Loader’ does not have a method ‘set_npt_pagenum’ in /homez.311/
   homecineb/test/wp-includes/plugin.php on line 487
 * [http://wordpress.org/plugins/sgr-nextpage-titles/](http://wordpress.org/plugins/sgr-nextpage-titles/)

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

 *  Plugin Author [Sergio De Falco](https://wordpress.org/support/users/sgr33n/)
 * (@sgr33n)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026137)
 * Solved on 0.82, thanks!
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026193)
 * It works.
 * Thank you, that was fast 😉
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026207)
 * Sorry I found an other little bug. I have this error when I am on a categorie
   without article.
 * Warning: Creating default object from empty value in …/test/wp-content/plugins/
   sgr-nextpage-titles/sgr-nextpage-titles.php on line 126
 *  Plugin Author [Sergio De Falco](https://wordpress.org/support/users/sgr33n/)
 * (@sgr33n)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026224)
 * Actually it doesn’t happen to me on 3.6… do you mean an empty category? Which
   WordPress version are you running?
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026263)
 * Yes it is on an empty categorie. And I am on version 3.6
 *  Plugin Author [Sergio De Falco](https://wordpress.org/support/users/sgr33n/)
 * (@sgr33n)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026285)
 * Can you try with the default 3.6 theme? (twentythirteen)
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026288)
 * It’s the same with the default theme (twentythirteen).
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026293)
 * A simple fix is to add a condition when no need to process.
 * Line 126 :
 * public function public_init() {
    // no need to process if ( is_feed() || is_404()
   || true == get_query_var(‘preview’) || empty($post->post_content) ) return;
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026294)
 * My simple fix isn’t working when it’s needed 🙁
 *  Thread Starter [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * (@jeremy9856)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026295)
 * A much better fix I think
 * if(!empty($post->post_content))
    $post->post_content = preg_replace( $pattern,‘
   <!–nextpage–>’, $temp_content );

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

The topic ‘Bug with 0.8 : Warning: call_user_func_array()…’ is closed to new replies.

 * ![](https://ps.w.org/sgr-nextpage-titles/assets/icon-256x256.png?rev=2291460)
 * [Multipage](https://wordpress.org/plugins/sgr-nextpage-titles/)
 * [Support Threads](https://wordpress.org/support/plugin/sgr-nextpage-titles/)
 * [Active Topics](https://wordpress.org/support/plugin/sgr-nextpage-titles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sgr-nextpage-titles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sgr-nextpage-titles/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [jeremy9856](https://wordpress.org/support/users/jeremy9856/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/bug-with-08-warning-call_user_func_array/#post-4026295)
 * Status: resolved