• cfibanez

    (@cfibanez)


    The tags show normally but I get this error above them in my tag cloud:

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /customers/3/2/8/livejazzlounge.com/httpd.www/livejazzlounge/wp-includes/category-template.php on line 903

    Please help!!!

    Using Unwind theme from SiteOrigin running on WP 5.8.2.

    Thanks.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @cfibanez

    The plugin does not use uasort PHP function, that’s used in WordPress at wp-includes/category-template.php on line 903 (and 901) which is called when the order of tags is not random. It then uses strnatcasecmp function which returns -1 or 0 or 1 depending on which value in the comparison is larger. So it does not return a Boolean value (0 or 1) it returns an Integer value.

    So it’s a bit of a weird issue.

    Which version of PHP are you using? It’s PHP 8, but what’s the full version number?

    Also, do you get the error with the regular WordPress tags widget?

    Thread Starter cfibanez

    (@cfibanez)

    Many thanks fo taking the time to reply!

    PHP version is 8.0.13.

    I get this problem with 3 different tag cloud plugins and widgets, including the regular WP tags widget, CoolTagCloud plugin and code entered directly into the functions.php file.

    Thanks for your help!

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

    Yeah, it’s a bug in WordPress and I’m sure they’ll fix that soon. But you shouldn’t be seeing the error unless you have WP_DEBUG set to true in wp-config.php. If you do have it set to true then switch it over to false, you don’t need that functionality activated.

    Thread Starter cfibanez

    (@cfibanez)

    Thanks very much. That did the trick. Hope this gets fixed soon.

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error: Deprecated: uasort(): Returning bool from comparison function is deprecat’ is closed to new replies.