Title: NextGen Gallery post error (error solution)
Last modified: August 31, 2016

---

# NextGen Gallery post error (error solution)

 *  [kiwifraise](https://wordpress.org/support/users/kiwifraise/)
 * (@kiwifraise)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/nextgen-gallery-post-error-errorsolution/)
 * Hi !
    I’m using WP 4.4.2 + WPML (latest) + NextGen Gallery (latest), and in a
   multisite configuration (8 sites).
 * I noticed when you are in a post, if you try to add something with the green 
   nextgen gallery button (in the toolbar), you have the following fatal error :
 * Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/nextgen-
   gallery/products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.
   php on line 325
 * tried default theme and no active plugins (except nextgen), same trouble.
 * after reaching the file, I just added a simple conditional test like :
 * if (isset($wp_filter[‘after_setup_theme’][1])) {
    //foreach loop }
 * and everything is working after re-enabling themes and plugins.
    You should just
   check that, hope I’ll see that in a future upgrade!
 * Thx!

The topic ‘NextGen Gallery post error (error solution)’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [kiwifraise](https://wordpress.org/support/users/kiwifraise/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/nextgen-gallery-post-error-errorsolution/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
