• Resolved Nazrinn

    (@nazrinn)


    This is a minor issue, but I thought I could report it there.

    My website runs on PHP 8 and I get this error when I am on the plugin page.
    Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in [site directory in server]/wp-content/plugins/optimole-wp/vendor/codeinwp/themeisle-sdk/src/Modules/Rollback.php on line 82

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Vytis

    (@bvytis)

    Hi @nazrinn,

    Thank you for reporting the issue.

    I’m trying to replicate this issue on my end with PHP 8 and I’m not able to see it. I wonder did it happen after specific action that you performed? Did you offloaded images to Optimole’s CDN and then rolled them back after which the error appeared or it was just random?

    Maybe you can also share a screenshot from the plugins page with this error?

    Thank you for your cooperation!

    Thread Starter Nazrinn

    (@nazrinn)

    Good question.

    I’ve had it for a while, from my staging environment to my live site. I believe this happened when I started using cloud integration. Here is a screenshot of the plugin page.

    My Optimole config reads as follow:

    
    General
    Enable image replacement > True
    Scale images & Lazy load > False
    Enable error diagnosis tool > False
    Clear cached resource > Has been used multiple times
    
    Advanced
    Compression
    Enable network based optimizations > True
    Serve CSS & JS through Optimole > False (True at some point, but caused me problems)
    Enable Gif to Video conversion > False
    Image Compression > 75 (Medium)
    
    Resize
    Enable Smart Cropping > True
    Enable Retina images > True
    Resize large images original source > 2000 x 1500
    
    Exclusions
    [0] > Is SVG
    
    Cloud integration
    Enable cloud library browsing > False
    Enable offloading images > True
    Offload existing images / Restore offloaded images > All images are synced
    

    I don’t remember doing anything special for this to happen and I don’t remember rolling back the files for this error to appear.
    But this is indeed a PHP 8 warning.

    • This reply was modified 3 years, 7 months ago by Nazrinn.

    • This reply was modified 3 years, 7 months ago by Themeisle.
    Plugin Support Vytis

    (@bvytis)

    Hi @nazrinn,

    Thank you for sharing more details, this should be fixed with the next release of the plugin.

    Thread Starter Nazrinn

    (@nazrinn)

    Yay! Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated error when using PHP 8’ is closed to new replies.