• Since upgrading my servers to PHP8, trying to open the health check details site will create the following error:

    Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/.sites/768/site4/web/wp2016/wp-content/plugins/amp/src/Admin/SiteHealth.php:548
    Stack trace:
    #0 /home/.sites/768/site4/web/wp2016/wp-content/plugins/amp/src/Admin/SiteHealth.php(548): preg_match('/max-age=[1-9]/', Array)
    #1 /home/.sites/768/site4/web/wp2016/wp-content/plugins/amp/src/Admin/SiteHealth.php(634): AmpProject\AmpWP\Admin\SiteHealth::AmpProject\AmpWP\Admin\{closure}(Array)
    #2 /home/.sites/768/site4/web/wp2016/wp-content/plugins/amp/src/Admin/SiteHealth.php(491): AmpProject\AmpWP\Admin\SiteHealth->check_for_page_caching()
    #3 /home/.sites/768/site4/web/wp2016/wp-content/plugins/amp/src/Admin/SiteHealth.php(249): AmpProject\AmpWP\Admin\SiteHealth->get_page_cache_detail(true)
    #4 /home/.sites/768/site4/web/wp2016/wp-content/plugins/health-check/includes/class-health-check.php(321): AmpProject\AmpWP\Admin\SiteHealth->persistent_object_cache()
    #5 /home/.sites/768/site4/web/wp2016/wp-includes/class-wp-hook.php(307): Health_Check->enqueues('tools_page_heal...')
    #6 /home/.sites/768/site4/web/wp2016/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #7 /home/.sites/768/site4/web/wp2016/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #8 /home/.sites/768/site4/web/wp2016/wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'tools_page_heal...')
    #9 /home/.sites/768/site4/web/wp2016/wp-admin/admin.php(239): require_once('/home/.sites/76...')
    #10 /home/.sites/768/site4/web/wp2016/wp-admin/tools.php(40): require_once('/home/.sites/76...')
    #11 {main}
      thrown

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Maybe this plugin is dead. No response to moste of the questions and no changes since 8 months …

Viewing 1 replies (of 1 total)
  • The topic ‘Incompatible with php8’ is closed to new replies.