• Resolved asteaguinity

    (@asteaguinity)


    As mentioned in the title, after updating the plugin to version 3.8.8, I can’t view the site while still logged in as admin.

    The debug.log shows the following error:

    [29-Dec-2023 18:18:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /wordpress/wp-content/plugins/companion-auto-update/cau_functions.php:65
    Stack trace: 0 /wordpress/wp-content/plugins/companion-auto-update/cau_functions.php(98): cau_incompatiblePlugins() 1 /wordpress/wp-content/plugins/companion-auto-update/cau_functions.php(76): cau_pluginIssueCount() 2 /wordpress/wp-content/plugins/companion-auto-update/companion-auto-update.php(408): cau_pluginHasIssues() 3 /wordpress/wp-includes/class-wp-hook.php(324): cau_checkForIssues() 4 /wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /wordpress/wp-includes/plugin.php(565): WP_Hook->do_action() 6 /wordpress/wp-includes/admin-bar.php(95): do_action_ref_array() 7 /wordpress/wp-includes/class-wp-hook.php(324): wp_admin_bar_render() 8 /wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 9 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 10 /wordpress/wp-includes/general-template.php(3084): do_action() 11 /wordpress/wp-content/themes/askella-child/header.php(29): wp_body_open() 12 /wordpress/wp-includes/template.php(790): require_once(‘…’) 13 /wordpress/wp-includes/template.php(725): load_template() 14 /wordpress/wp-includes/general-template.php(48): locate_template() 15 /wordpress/wp-content/themes/askella/page.php(15): get_header() 16 /wordpress/wp-includes/template-loader.php(106): include(‘…’) 17 /wordpress/wp-blog-header.php(19): require_once(‘…’) 18 /wordpress/index.php(17): require(‘…’) 19 {main}

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter asteaguinity

    (@asteaguinity)

    According to the official WP docs, this isn’t even surprising:
    https://developer.www.ads-software.com/reference/functions/is_plugin_active_for_network/#more-information

    The function just is not defined outside of admin areas, as the necessary include is only done automatically for admin areas.

    I have the same issue, though not on all of my WordPress websites/themes. I’m not sure why some websites have this error and others don’t. It might be related to older themes?

    Plugin Author Papin Schipper

    (@papin)

    Hi @asteaguinity and @sicco this should now be fixed in version 3.8.9

    Hi @papin, thanks for looking into this and creating a fix!

    I just installed 3.8.9, but the problem seems to still exist when I visit some of my websites when I’m logged in (I also cleared cache):

    app_1 | NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /var/www/html/wp-content/plugins/companion-auto-update/cau_functions.php:65
    app_1 | Stack trace:
    app_1 | #0 /var/www/html/wp-content/plugins/companion-auto-update/cau_functions.php(98): cau_incompatiblePlugins()
    app_1 | #1 /var/www/html/wp-content/plugins/companion-auto-update/cau_functions.php(76): cau_pluginIssueCount()
    app_1 | #2 /var/www/html/wp-content/plugins/companion-auto-update/companion-auto-update.php(408): cau_pluginHasIssues()
    app_1 | #3 /var/www/html/wp-includes/class-wp-hook.php(324): cau_checkForIssues(Object(WP_Admin_Bar))
    app_1 | #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    app_1 | #5 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    app_1 | #6 /var/www/html/wp-includes/admin-bar.php(95): do_action_ref_array('admin_bar_menu', Array)
    app_1 | #7 /var/www/html/wp-includes/class-wp-hook.php(324): wp_admin_bar_render('')
    app_1 | #8 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    app_1 | #9 /var/www/html/wp-includes/plug in /var/www/html/wp-content/plugins/companion-auto-update/cau_functions.php on line 65

    Is there anything I can do for you to help track down the problem?

    • This reply was modified 10 months, 3 weeks ago by sicco.
    Plugin Author Papin Schipper

    (@papin)

    Seems it didn’t actually push the fix, should work in version 3.8.9.1 ??

    3.8.9.1 fixes the problem! Thanks @papin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Errors when trying to view site while logged in as admin with 3.8.8’ is closed to new replies.