amr ical events lists
[resolved] PHP Warning: call_user_func_array() amr_debug_time (9 posts)

  1. rayman5231
    Posted 2 years ago #


    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


  2. AITpro
    Posted 2 years ago #

    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.


  3. rayman5231
    Posted 2 years ago #

    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

  4. AITpro
    Posted 2 years ago #

    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:

  5. AITpro
    Posted 2 years ago #

    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.


  6. rayman5231
    Posted 2 years ago #

    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?

  7. AITpro
    Posted 2 years ago #

    Those were hints/possible solutions for this Plugin Author to try.

  8. anmari
    Plugin Author

    Posted 2 years ago #

    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.

  9. rayman5231
    Posted 2 years ago #

    Thank you I feel much better now. Temp fix in place.
    Really thanks all. Have a good weekend.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • amr ical events lists
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic