• While reviewing the error_log file, I found one occurrence of this error message between June 30th and today:
    [24-Jul-2019 05:08:56 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxxxxxxxx/public_html/wp-content/plugins/my-calendar/my-calendar-templates.php on line 32

    Line 32 is this:
    foreach ( $array as $key => $value ) {

    I updated My Calendar to Version 3.1.13 on August 9th so it is possible that this error was resolved in the new version.

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    If you can obtain a trace of this function call, I can explore it; but this would only happen if the function ‘mc_draw_template()’ was called with an $array argument that isn’t an array. Without knowing where the function was called to create this warning, I can’t explore it effectively.

Viewing 1 replies (of 1 total)
  • The topic ‘“Invalid argument supplied for foreach” in my-calendar-templates.php’ is closed to new replies.