• Resolved ispreview

    (@ispreview)


    When I enable this plugin, and only this plugin, under the latest release of WordPress with PHP 8.2 and debugging enabled, then the following error appears inside the main WP Admin Dashboard screen – inside the “At a glance” box.

    Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /../wp-includes/functions.php on line 423

    Looks like WPPP is passing some information to the function in functions.php that isn’t right.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @ispreview,

    The plugin hasn’t been tested with PHP 8.2 yet but thanks for the heads up, I’ll look into this as soon as I can.

    Regarding the issue itself, it’s just a deprecation notice. It won’t affect the functionality of the plugin nor of your site so it can be ignored for the time being. If you’re seeing this on a live website, consider setting WP_DEBUG in wp-config.php to ‘false’ to remove said notice from view.

    Thread Starter ispreview

    (@ispreview)

    Found a few more PHP 8.2 deprecations and warnings in the very latest Popular Posts release over the weekend. This time they show on the main WP admin dashboard screen, but under the ‘Trending Now’ window:

    Warning: Undefined property: stdClass::$comment_count in /../wp-content/plugins/wordpress-popular-posts/src/Admin/Admin.php on line 1155

    Warning: Undefined property: stdClass::$comment_count in /../wp-content/plugins/wordpress-popular-posts/src/Admin/Admin.php on line 1155

    Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /../wp-includes/functions.php on line 423

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

The topic ‘PHP8.2 Bug with WP Popular Posts’ is closed to new replies.