Title: Error: sort() expects parameter 1 to be array
Last modified: July 22, 2019

---

# Error: sort() expects parameter 1 to be array

 *  [Melatti](https://wordpress.org/support/users/melatti/)
 * (@melatti)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-sort-expects-parameter-1-to-be-array/)
 * The plugin seens to worked fine for some time, but after I deleted and reinstalled
   because weird behavior this is populating my logs:
 * [Mon, 22 Jul 2019 13:41:47 +0000] WARNING: sort() expects parameter 1 to be array,
   object given in /var/www/wordpress/wp-content/plugins/psn-pagespeed-ninja/ress/
   classes/plugin/lazyload/lazyload.php on line 27
    /var/www/wordpress/wp-content/
   plugins/psn-pagespeed-ninja/ress/classes/plugin/lazyload/lazyload.php:27 <- /
   var/www/wordpress/wp-content/plugins/psn-pagespeed-ninja/ress/ressio.php:62 <-/
   var/www/wordpress/wp-content/plugins/psn-pagespeed-ninja/public/class-pagespeedninja-
   public.php:491 <- /var/www/wordpress/wp-includes/functions.php:4339 <- /var/www/
   wordpress/wp-includes/class-wp-hook.php:286 <- /var/www/wordpress/wp-includes/
   class-wp-hook.php:310 <- /var/www/wordpress/wp-includes/plugin.php:465 <- /var/
   www/wordpress/wp-includes/load.php:954
 * I have tried another reinstall, restarting services and even reboot

The topic ‘Error: sort() expects parameter 1 to be array’ is closed to new replies.

 * ![](https://ps.w.org/psn-pagespeed-ninja/assets/icon.svg?rev=1722219)
 * [PageSpeed Ninja - Cache, Minify, Defer CSS JavaScript, Critical CSS, Optimize Images, Convert WebP](https://wordpress.org/plugins/psn-pagespeed-ninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/psn-pagespeed-ninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/psn-pagespeed-ninja/)
 * [Active Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/psn-pagespeed-ninja/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 0 replies
 * 1 participant
 * Last reply from: [Melatti](https://wordpress.org/support/users/melatti/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-sort-expects-parameter-1-to-be-array/)
 * Status: not resolved