Title: PHP Warning:  call_user_func_array() amr_debug_time
Last modified: August 21, 2016

---

# PHP Warning: call_user_func_array() amr_debug_time

 *  Resolved [rayman5231](https://wordpress.org/support/users/rayman5231/)
 * (@rayman5231)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/)
 * amr_debug_time
 * is this a valid function in your plug-in?
 * possible conflict with BPS
 * [21-Sep-2013 00:19:38 America/Los_Angeles] PHP Warning: call_user_func_array()
   expects parameter 1 to be a valid callback, function ‘amr_debug_time’ not found
   or invalid function name in /public_html/first-blog/wp-includes/plugin.php on
   line 406
 * WP 3.6.1, Multisite
 * many thanks
 * [http://wordpress.org/plugins/amr-ical-events-list/](http://wordpress.org/plugins/amr-ical-events-list/)

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

 *  [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150716)
 * There is not a conflict with the BPS plugin. This is an isolated coding issue
   in the amr ical events lists plugin. The action/function probably just needs 
   to be called in another way. PHP errors will tell you which plugin, theme, etc.
   has a coding issue that needs to be fixed and then you would fix that issue in
   that plugin, theme, etc.
 * [http://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time?replies=3](http://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time?replies=3)
 *  Thread Starter [rayman5231](https://wordpress.org/support/users/rayman5231/)
 * (@rayman5231)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150724)
 * so like
 * if in debug mode do this?
    if not in debug mode do that?
 * Ann Marie? I really do not want to fiddle with your Code, but I can if need be.
   Please advise when you get a chance.
    Many thanks
 *  [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150725)
 * Since you mentioned you have a Network/Multisite site then I wonder if the issue
   is as simple as this:
 * Maybe a check needs to be done for multisite and load the multisite action instead
   of the plugins_loaded action:
 *     ```
       if ( is_multisite() ) {
       add_action('muplugins_loaded', 'amr_debug_time');
       } else {
       add_action('plugins_loaded', 'amr_debug_time');
       }
       ```
   
 * Network/Multisite specific function:
    [http://codex.wordpress.org/Plugin_API/Action_Reference/muplugins_loaded](http://codex.wordpress.org/Plugin_API/Action_Reference/muplugins_loaded)
 *  [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150727)
 * An additional check for this condition might need to done as well, I think anyway?
   I did not really look too deep at the code in this plugin to see exactly what
   is occuring.
 * [http://codex.wordpress.org/Function_Reference/is_plugin_active_for_network](http://codex.wordpress.org/Function_Reference/is_plugin_active_for_network)
 *  Thread Starter [rayman5231](https://wordpress.org/support/users/rayman5231/)
 * (@rayman5231)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150731)
 * Will stop trying to confuse me with facts, jk
 * so does the change have to be made in AMR’s code or in PHP.INI or WP-settings.
   php?
 * It’s like who’s CORE is this anyway?, Right?
 * Just let me know when this is sorted out, but thanks for keeping me IN the LOOP,
   ok?
 *  [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150737)
 * Those were hints/possible solutions for this Plugin Author to try.
 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150743)
 * HI all,
 * until an update goes up. Quick fix is comment out line 2370 (practically the 
   last line) in amr-ical-events-list-main.php.
 * The debug time function is non essential – a helper function for some folks whose
   ics file loads were timing out. Only used when debugging.
 * `// add_action('plugins_loaded', 'amr_debug_time');`
 * I will either remove it, or change to only run the add action if the GET debug
   parameter is passed.
 *  Thread Starter [rayman5231](https://wordpress.org/support/users/rayman5231/)
 * (@rayman5231)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150745)
 * Thank you I feel much better now. Temp fix in place.
    Really thanks all. Have
   a good weekend.

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

The topic ‘PHP Warning: call_user_func_array() amr_debug_time’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-ical-events-list_f5f4f4.svg)
 * [amr ical events lists](https://wordpress.org/plugins/amr-ical-events-list/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-ical-events-list/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-ical-events-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-ical-events-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-ical-events-list/reviews/)

## Tags

 * [BPS](https://wordpress.org/support/topic-tag/bps/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 8 replies
 * 3 participants
 * Last reply from: [rayman5231](https://wordpress.org/support/users/rayman5231/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-amr_debug_time-1/#post-4150745)
 * Status: resolved