• When activating the wordpress WP-Piwik plugin, this plugin creates a critical error that blocks everything on the site, including admin pages. After activating, I get the following error in my WP Plugins page:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    I have enabled WordPress logging, and get the following error messages in my wp debug.log:

    [13-May-2024 16:45:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WP_Piwik\Request\curl_exec() in /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php:50
    Stack trace:
    #0 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php(24): WP_Piwik\Request\Rest->curl()
    #1 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request.php(63): WP_Piwik\Request\Rest->request()
    #2 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik.php(1038): WP_Piwik\Request->perform()
    #3 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik.php(494): WP_Piwik->request()
    #4 /var/www/oddcake.net/wp-includes/class-wp-hook.php(324): WP_Piwik->extendWordPressToolbar()
    #5 /var/www/oddcake.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /var/www/oddcake.net/wp-includes/plugin.php(565): WP_Hook->do_action()
    #7 /var/www/oddcake.net/wp-includes/admin-bar.php(95): do_action_ref_array()
    #8 /var/www/oddcake.net/wp-includes/class-wp-hook.php(324): wp_admin_bar_render()
    #9 /var/www/oddcake.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #10 /var/www/oddcake.net/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /var/www/oddcake.net/wp-admin/admin-header.php(267): do_action()
    #12 /var/www/oddcake.net/wp-admin/plugins.php(624): require_once('...')
    #13 {main}
      thrown in /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php on line 50
    [13-May-2024 16:45:09 UTC] PHP Deprecated:  Return type of PSP_Models_Abstract_Domain::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/oddcake.net/wp-content/plugins/premium-seo-pack/models/abstract/Domain.php on line 387
    [13-May-2024 16:45:09 UTC] PHP Deprecated:  Return type of PSP_Models_Abstract_Domain::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/oddcake.net/wp-content/plugins/premium-seo-pack/models/abstract/Domain.php on line 391
    [13-May-2024 16:45:09 UTC] PHP Deprecated:  Return type of PSP_Models_Abstract_Domain::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/oddcake.net/wp-content/plugins/premium-seo-pack/models/abstract/Domain.php on line 395
    [13-May-2024 16:45:09 UTC] PHP Deprecated:  Return type of PSP_Models_Abstract_Domain::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/oddcake.net/wp-content/plugins/premium-seo-pack/models/abstract/Domain.php on line 399
    [13-May-2024 16:45:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WP_Piwik\Request\curl_exec() in /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php:50
    Stack trace:
    #0 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php(24): WP_Piwik\Request\Rest->curl()
    #1 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request.php(63): WP_Piwik\Request\Rest->request()
    #2 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik.php(1038): WP_Piwik\Request->perform()
    #3 /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik.php(494): WP_Piwik->request()
    #4 /var/www/oddcake.net/wp-includes/class-wp-hook.php(324): WP_Piwik->extendWordPressToolbar()
    #5 /var/www/oddcake.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /var/www/oddcake.net/wp-includes/plugin.php(565): WP_Hook->do_action()
    #7 /var/www/oddcake.net/wp-includes/admin-bar.php(95): do_action_ref_array()
    #8 /var/www/oddcake.net/wp-includes/class-wp-hook.php(324): wp_admin_bar_render()
    #9 /var/www/oddcake.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #10 /var/www/oddcake.net/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /var/www/oddcake.net/wp-admin/admin-header.php(267): do_action()
    #12 /var/www/oddcake.net/wp-admin/plugins.php(624): require_once('...')
    #13 {main}
      thrown in /var/www/oddcake.net/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php on line 50

    Here is My Server Info:

    OS Version: Ubuntu Server 22.04 for Raspberry Pi (aarch64)
    WordPress Version: 6.5.3
    Nginx Version: 1.25.5 Mainline
    PHP Version: 8.1.2-1ubuntu2.17

    Could someone please tell me how to fix this critical error, or else release an update to wp-piwik plugin so that this plugin doesn’t disable my entire site with critical errors?

    Please keep me updated about this. Thank you!

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Getting a Critical Error when activating this plugin. Help?’ is closed to new replies.