• Resolved vijaiya

    (@vijaiya)


    Hi,

    I’m currently running the latest PHP 8.5, and I’m also using the latest versions of WP Statistics, WordPress, and my other relevant plugins.

    I noticed the following warning in the WP Statistics Tracker Debugger:

    Type: Deprecated
    Message: Method SplObjectStorage::attach() is deprecated since 8.5; use method SplObjectStorage::offsetSet() instead.

    The Tracker.js Status and Hit Endpoint Status are both successful, so tracking appears to be working correctly.

    Could you please confirm whether this warning is generated by WP Statistics itself or by one of its dependencies?

    Since I’m using the latest PHP 8.5 and the latest software versions, should WP Statistics be updated to replace SplObjectStorage::attach() with SplObjectStorage::offsetSet() for full PHP 8.5 compatibility?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi,

    Thank you for reporting this.

    Since both Tracker.js Status and Hit Endpoint Status are successful, tracking itself appears to be working. The message is a PHP 8.5 deprecation warning rather than a tracking failure.

    I checked the current WP Statistics source and did not find a direct SplObjectStorage::attach() usage in the plugin code, so this may be coming from a dependency or another runtime path loaded during the tracker/debugger request.

    We have opened this for review so we can reproduce it under PHP 8.5 and clean up the compatibility warning where needed:

    https://github.com/wp-statistics/wp-statistics/issues/1133

    For now, if tracking is successful, you can continue using the plugin. The warning should not mean that visits are not being recorded.

    Thanks again for catching this early.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.