I’m sorry about this… strange also that it didn’t come up at all in testing.
For now as an immediate workaround, please edit your functions.php file and change line 6 from this:
if (is_plugin_active('ics-calendar-pro/ics-calendar-pro.php')) {
to this:
if (function_exists('is_plugin_active') && is_plugin_active('ics-calendar-pro/ics-calendar-pro.php')) {
The is_plugin_active function only exists when users are in the admin area, but the function that’s calling it, r34ics_get_admin_url, should also only be getting called while the user is in admin. I’ll investigate what might be causing this.
Is this fatal error happening on every page of the site, or only on specific pages?
When in Admin. The front end seems to be working.
Thanks for the fast response.
Thanks… working on a patch right now.
OK, version 10.6.1.1 update should be available momentarily. It replaces the use of the is_plugin_active() function, which may not always be defined, with a different conditional that should always work.
FYI: The code you suggeted above seems to NOT fix it.
Thanks.
That’s strange. Did you get a different error message? (In any case, the fix in version 10.6.1.1 is different than what I suggested above. Let me know if that update resolves the issue.)
FYI Here’s the error after making the code change on Line 6 of functions. Seems the same. I haven’t done a letter-by-letter comparison. I put it here for record in case you want to look at it.
Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /home/customer/www/tequestapres.org/public_html/wp-content/plugins/ics-calendar/functions.php:6 Stack trace: #0 /home/customer/www/tequestapres.org/public_html/wp-content/plugins/ics-calendar/ics-calendar.php(120): r34ics_get_admin_url(‘settings’) #1 /home/customer/www/tequestapres.org/public_html/wp-content/plugins/ics-calendar/ics-calendar.php(58): r34ics_update() #2 /home/customer/www/tequestapres.org/public_html/wp-includes/class-wp-hook.php(308): r34ics_plugins_loaded(”) #3 /home/customer/www/tequestapres.org/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /home/customer/www/tequestapres.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/customer/www/tequestapres.org/public_html/wp-settings.php(480): do_action(‘plugins_loaded’) #6 /home/customer/www/tequestapres.org/public_html/wp-config.php(93): require_once(‘/home/customer/…’) #7 /home/customer/www/tequestapres.org/pub in /home/customer/www/tequestapres.org/public_html/wp-content/plugins/ics-calendar/functions.php on line 6
-
This reply was modified 3 years, 1 month ago by
Dave Loebig.
That’s really weird… it’s like the change didn’t “take” somehow, because the code is specifically making sure the function is defined before trying to run it.
Anyway, like I said, the update I put into 10.6.1.1 is different and avoids this function altogether, so it shouldn’t run into the issue. Let me know if you are still having problems after updating to that version.