• This following error log message is blowing up my page editor. This is my local dev environment so I have the debugging tuned fully enabled. Please make sure you and your dev team all work with your debugging fully enabled on on your dev environments too, to avoid these kinds of issues. This apparently has been deprecated for many years now.

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in?../app/public/wp-content/plugins/popup-maker/classes/Utils/Array.php?on line?142

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @shanemac10,

    Thanks for letting us know.

    Could you send us your full system information via Support Request – Popup Maker?

    We’re currently trying to reproduce this notice so please also send us the steps.

    We’ll wait for your email! ??

    Thread Starter shanemac10

    (@shanemac10)

    @kimmyx

    Currently using 1.20.4 of your plugin, which is the most current version. If you’re not seeing it then can you confirm you have debugging turn on in your wp-config.php file? Like this…

    // if ( ! defined( 'WP_DEBUG' ) ) {
    // define( 'WP_DEBUG', false );
    // }
    if ( ! defined( 'WP_DEBUG' ) ) {
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', true );

    error_reporting(E_NOTICE);
    }


    It looks like the problem is on line 393 in popup-maker/classes/Utils/Array.php. The error message is pretty clear what the problem is:

    Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero

    public static function sort_by_sort( $a, $b ) {
    return $a['sort'] > $b['sort'];
    }

    Looks like you should change it to the PHP Spaceship operator like this…

    public static function sort_by_sort( $a, $b ) {
    return $a['sort'] <=> $b['sort'];
    }

    • This reply was modified 1 month, 1 week ago by shanemac10.
    Thread Starter shanemac10

    (@shanemac10)

    @kimmyx Just to let you know, I will not be creating a support ticket. Everything you need is above.

    Plugin Support Kim L

    (@kimmyx)

    Hi @shanemac10,

    Thanks for the response!

    We’ve forwarded this to our dev team.

    Let us know if you have other questions. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.