Title: array_filter error in edit.php with NextGEN
Last modified: September 28, 2022

---

# array_filter error in edit.php with NextGEN

 *  Resolved [mostman](https://wordpress.org/support/users/mostman/)
 * (@mostman)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/array_filter-error-in-edit-php-with-nextgen/)
 * With NextGEN Gallery enabled I get this error message when I press “Posts”, “
   All posts”, “Pages”, “All Pages”. “Add new” under both Posts and Pages works 
   fine.
    The gallery and all other functions works fine. All other add-ons are 
   disabled. WP 6.0.2. PHP 8.1. NextGEN 3.29.
 * > TypeError thrown
   >  array_filter(): Argument #1 ($array) must be of type array,
   > bool given
 * In debug.log I can find these lines which seems to relate to NextGEN…
 * [28-Sep-2022 18:57:40 UTC] Type: ErrorException; Message: set_time_limit(): Cannot
   set max execution time limit due to system policy; File: /customers/e/b/c/mypage.
   se/httpd.www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/
   dynamic_thumbnails/package.module.dynamic_thumbnails.php; Line: 30;
    [28-Sep-
   2022 18:57:40 UTC] PHP Notice: Type: ErrorException; Message: Implicit conversion
   from float 70.95 to int loses precision; File: /customers/e/b/c/mypage.se/httpd.
   www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/
   package.module.nextgen_data.php; Line: 5436; in /customers/e/b/c/mypage.se/httpd.
   www/wp-content/plugins/slideshow-gallery/includes/errorhandler.php on line 54[
   28-Sep-2022 18:57:40 UTC] Type: ErrorException; Message: Implicit conversion 
   from float 70.95 to int loses precision; File: /customers/e/b/c/mypage.se/httpd.
   www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/
   package.module.nextgen_data.php; Line: 5436;
 * I can’t find any rows in debug.log which seems to refer to edit.php.
    Any ideas
   how troubleshoot this?
 * regards M

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/array_filter-error-in-edit-php-with-nextgen/#post-16053719)
 * [@mostman](https://wordpress.org/support/users/mostman/),
 * None of these are functionally affecting and in fact they shouldn’t display unless
   you have PHP Strict Standards enabled on your server because we purposefully 
   suppress the errors for this function return within the code.
 * Feel free to simply deactivate WP Debug mode by replacing the following line 
   from your wp-config.php file:
 * `define('WP_DEBUG', true);`
 * with:
 *     ```
       ini_set('display_errors','Off');
       ini_set('error_reporting', E_ALL );
       define('WP_DEBUG', false);
       define('WP_DEBUG_DISPLAY', false);
       ```
   
    -  This reply was modified 3 years, 8 months ago by [Imagely](https://wordpress.org/support/users/imagely/).
 *  Thread Starter [mostman](https://wordpress.org/support/users/mostman/)
 * (@mostman)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/array_filter-error-in-edit-php-with-nextgen/#post-16053870)
 * If I understand this correctly, this will only turn off debug and maybe suppress
   error messages, not help me finding out why I can’t open Posts menu, right?
 * To clarify, this happens when I try open “Posts”, “All posts”, “Pages”, “All 
   Pages” under the admin menu when NextGEN Gallery is enabled.
    [https://ibb.co/fkMtN2h](https://ibb.co/fkMtN2h)
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/array_filter-error-in-edit-php-with-nextgen/#post-16053967)
 * [@mostman](https://wordpress.org/support/users/mostman/),
 * You can reach our support team at [https://www.imagely.com/contact/](https://www.imagely.com/contact/)
   and we’ll have a direct look at it.
 * Thanks

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

The topic ‘array_filter error in edit.php with NextGEN’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/array_filter-error-in-edit-php-with-nextgen/#post-16053967)
 * Status: resolved