Title: php warning
Last modified: September 9, 2021

---

# php warning

 *  Resolved [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-warning-309/)
 * Hi,
    In the php error log, there are two warnings. My galleries still load and
   display. Please advise. WP – 5.8.1, NextGEN Gallery – 3.16, php – 7.4.10
 * PHP Warning: Invalid argument supplied for foreach() in /my-domain/wp-includes/
   script-loader.php on line 2678
    PHP Warning: in_array() expects parameter 2 to
   be array, null given in /my-domain/wp-content/plugins/nextgen-gallery/products/
   photocrati_nextgen/modules/nextgen_gallery_display/module.nextgen_gallery_display.
   php on line 210

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

 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-warning-309/#post-14866539)
 * Hi [@francoc30](https://wordpress.org/support/users/francoc30/),
 * First of all, I am wondering if you can try re-installing NextGen Gallery. That’d
   require downloading NextGen Gallery new then installing it from your site’s **“
   Dashboard -> Plugins -> Add new -> Upload plugin”** with the files replacement
   to see if that will clear the warning.
 *  Thread Starter [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-warning-309/#post-14867311)
 * Hi mihai-imagely,
    Do I download and reinstall 3.16 or an earlier version? To
   reinstall, I need to deactivate and delete the existing NGG first, right? Or 
   just deactivate and reinstall on top of it. Will this action also delete all 
   my NGG settings, galleries and albums? These actions will be on a production 
   site. That makes me very nervous.
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-warning-309/#post-14869679)
 * Hi [@francoc30](https://wordpress.org/support/users/francoc30/),
 * Let’s try downloading and re-installing NGG 3.16 first. If using WP 5.6 or a 
   newer version it will allow you to rewrite the plugin’s files without the need
   to deactivate and delete NGG plugin first. This may potentially result in settings
   reset ( rarely ) but it will not affect any of the existing galleries or albums.
    -  This reply was modified 4 years, 9 months ago by [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/).

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

The topic ‘php warning’ 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: [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/php-warning-309/#post-14869679)
 * Status: resolved