Title: PHP WARNING
Last modified: June 29, 2021

---

# PHP WARNING

 *  Resolved [elemontsystem](https://wordpress.org/support/users/elemontsystem/)
 * (@elemontsystem)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-294/)
 * Next gen gallery after the update gives me this error when opening the website
   [http://www.tramedutore.it](http://www.tramedutore.it)
    Then everything seems
   to be working properly. You can help me? Thank you Iginio DeMonti
 * > [error] [client 108.162.246.60] – [http://www.tramedautore.it](http://www.tramedautore.it)–
   > AH01215: PHP Warning: Invalid argument supplied for foreach() in /web/htdocs/
   > www.tramedautore.it/home/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   > modules/third_party_compat/module.third_party_compat.php on line 148: /web/
   > htdocs/www.tramedautore.it/home/index.php
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-294%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14606984)
 * Hi [@elemontsystem](https://wordpress.org/support/users/elemontsystem/),
 * We do apologize for the inconveniences created. The warning that you have reported
   is going to be resolved in the upcoming NGG update.
 * In the meantime as a workaround you can edit wp-config.php file and replace the
   following line of code to hide all the Warning and Notices from your site’s pages:
 * `define('WP_DEBUG', false);`
 * with these:
 *     ```
       ini_set('display_errors','Off');
       define('WP_DEBUG', false);
       define('WP_DEBUG_DISPLAY', false);
       ```
   
 * Thanks for your understanding
 *  Thread Starter [elemontsystem](https://wordpress.org/support/users/elemontsystem/)
 * (@elemontsystem)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14607015)
 * PS: I have already tried to reinstall the plugin
 *  Thread Starter [elemontsystem](https://wordpress.org/support/users/elemontsystem/)
 * (@elemontsystem)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14607022)
 * Ok Grazie!!!
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14709410)
 * Hi [@elemontsystem](https://wordpress.org/support/users/elemontsystem/),
 * Following-up on the issue that you have reported. It got resolved within the 
   latest version of NextGen Gallery.
 * Sorry for the inconveniences created,
    Imagely Team
 *  Thread Starter [elemontsystem](https://wordpress.org/support/users/elemontsystem/)
 * (@elemontsystem)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14709587)
 * Tutto risolto bene! Grazie.
    Iginio

Viewing 5 replies - 1 through 5 (of 5 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [elemontsystem](https://wordpress.org/support/users/elemontsystem/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-294/#post-14709587)
 * Status: resolved