• Resolved Robin Labadie

    (@robin-labadie)


    Hi,

    ~4 months ago, a user mentioned deprecations under PHP 8.5, noticed with Query Monitor (WP plugin).

    The previous topic mentioned the error could easily be fixed with the next update. However multiple updates occurred without any of them fixing the issue.

    I guess this happens because the topic was then locked by mods just because multiple people (including me) commented for having the same exact issue and adding details. Then it was forgotten.

    This is showed on basically every page I visit on my site with your plugin:

    The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead

    wp-content/plugins/wp-piwik/libs/matomo-php-tracker/MatomoTracker.php:2197

    require_once(wp-content/plugins/wp-piwik/classes/WP_Piwik/AjaxTracker.php)
    wp-content/plugins/wp-piwik/classes/WP_Piwik/AjaxTracker.php:17

    wp_piwik_autoloader()
    wp-content/plugins/wp-piwik/wp-piwik.php:40

    WP_Piwik\AIBotTracking->get_tracker()
    wp-content/plugins/wp-piwik/classes/WP_Piwik/AIBotTracking.php:228

    WP_Piwik\AIBotTracking->is_doing_ai_bot_tracking_this_request()
    wp-content/plugins/wp-piwik/classes/WP_Piwik/AIBotTracking.php:209

    WP_Piwik\AIBotTracking->do_ai_bot_tracking()
    wp-content/plugins/wp-piwik/classes/WP_Piwik/AIBotTracking.php:112

    do_action('wp_footer')
    wp-includes/general-template.php:3429

    wp_footer()
    wp-includes/general-template.php:3429

    Extension : wp-piwik

    Previous deprecation was the exact same except line changed from 2195 to 2197.

    For a reminder, there was also a second deprecation :

    Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in /var/www/wordpress/wp-content/plugins/wp-piwik/classes/WP_Piwik/Request/Rest.php on line 87

    Can you please fix these deprecation issues?

    And mods, please do NOT remove comments or lock threads when everybody tries to resolve an actual issue. That is counter productive and makes a quick fix take months when it should take an hour.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.