New Bug from Today’s Update???

[ad_1]

Plugin Author
room34

(@room34)

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.

Plugin Author
room34

(@room34)

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.

Plugin Author
room34

(@room34)

Thanks… working on a patch right now.

Plugin Author
room34

(@room34)

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.

Plugin Author
room34

(@room34)

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 site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer