Title: Error code 7
Last modified: August 21, 2016

---

# Error code 7

 *  Resolved [crowdgallery](https://wordpress.org/support/users/crowdgallery/)
 * (@crowdgallery)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-code-7-9/)
 * When uploading images to a new gallery I get an error code 7. Also there is a
   message that safe mode is on. Is there a connection between those two? And if
   not how do I solve this error code?
 * thanks
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

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

 *  Thread Starter [crowdgallery](https://wordpress.org/support/users/crowdgallery/)
 * (@crowdgallery)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-code-7-9/#post-4312074)
 * One step further: it seems to have something to do with a maximum 4MB upload.
   Anyone any idea on how to stretch that amount?
 *  [tizz](https://wordpress.org/support/users/tizz/)
 * (@tizz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-code-7-9/#post-4312225)
 * Connection or not, you have to ask anyway to your provider to set the Safe mode
   off, and the max upload limit is imposed by the server configuration, not by 
   WP.
    For the error, it should be useful to know if it’s the same with the WP 
   media library upload. If so, isn’t definitely a Nextgen problem.
 *  Thread Starter [crowdgallery](https://wordpress.org/support/users/crowdgallery/)
 * (@crowdgallery)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-code-7-9/#post-4312226)
 * I have managed to solve it by adding an php.ini file to the wp-admin folder.
   (
   make a new document and save it as php.ini in the wp-admin folder) With these
   lines:
 * post_max_size = 50M
    upload_max_filesize = 40M max_execution_time = 900 memory_limit
   = 30M

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

The topic ‘Error code 7’ 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/)

## Tags

 * [Error 7](https://wordpress.org/support/topic-tag/error-7/)

 * 3 replies
 * 2 participants
 * Last reply from: [crowdgallery](https://wordpress.org/support/users/crowdgallery/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/error-code-7-9/#post-4312226)
 * Status: resolved