Title: NextGen Gallery plugin error
Last modified: August 3, 2022

---

# NextGen Gallery plugin error

 *  Resolved [feliperaptor](https://wordpress.org/support/users/feliperaptor/)
 * (@feliperaptor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/)
 * Hello,
 * I have updated to the latest version of NextGen Gallery plugin, 3.28.
 * Whenever I try to add or edit a post I receive this error message: TypeError 
   thrown
 * usort(): Argument #1 ($array) must be of type array, null given
 * I have tested all the plugins. When NextGen is deactivated, the message disappears.
 * Please advise on how to resolve.
 * Thanks.

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15883285)
 * Hi [@feliperaptor](https://wordpress.org/support/users/feliperaptor/),
 * Could you please let us know what editor and PHP version you use for your site?
   We have heard of another similar case happening while JetPack was active but 
   we couldn’t replicate it so far.
 * I am wondering if adding the following constant by FTP to your site’s `wp-config.
   php` file ( somewhere above the `/* That's all, stop editing! Happy publishing.*/`
   line ) will change anything:
 * `define("NGG_DISABLE_SHORTCODE_MANAGER", TRUE);`
    -  This reply was modified 3 years, 10 months ago by [Imagely](https://wordpress.org/support/users/imagely/).
 *  Thread Starter [feliperaptor](https://wordpress.org/support/users/feliperaptor/)
 * (@feliperaptor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15883548)
 * Hello,
 * Thanks for the reply. I am using classic editor and PHP 8.0.
 * I tried to imput that line of code in the FTP, but it gave me this error message:
 * TypeError thrown
    usort(): Argument #1 ($array) must be of type array, null given.
 * Please advise how to resolve.
 * Thanks.
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15883736)
 * [@feliperaptor](https://wordpress.org/support/users/feliperaptor/)
 * Could you please let us know if you have installed JetPack as a must use plugin?
 *  Thread Starter [feliperaptor](https://wordpress.org/support/users/feliperaptor/)
 * (@feliperaptor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15885442)
 * Hello,
 * Yes. WE are using Jetpack. We deactivated Jetpack, but the error message still
   appeared.
 * Please advise.
 * Thanks.
 *  Thread Starter [feliperaptor](https://wordpress.org/support/users/feliperaptor/)
 * (@feliperaptor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15886533)
 * Hello,
 * Yes. We are using Jetpack. We deactivated Jetpack, but the error message still
   appeared.
 * Please advise.
 * Thanks.
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15886957)
 * Hi [@feliperaptor](https://wordpress.org/support/users/feliperaptor/),
 * We hope you wouldn’t mind contacting our support team directly at [https://www.imagely.com/report-bug/](https://www.imagely.com/report-bug/)
   for us to inspect it closer.
 * Thanks

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

The topic ‘NextGen Gallery plugin error’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/nextgen-gallery-plugin-error/#post-15886957)
 * Status: resolved