Title: Undefined index: cache_dir error
Last modified: August 21, 2016

---

# Undefined index: cache_dir error

 *  Resolved [anandcpeter](https://wordpress.org/support/users/anandcpeter/)
 * (@anandcpeter)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-cache_dir-error/)
 * Hi,
 * I am on the Genesis theme with the Dynamik Website Builder. I have the plugin
   working properly on another site with the same theme properly.
 * However on another similar site I am getting the following error output when 
   I try to display a gallery in a post:
 *     ```
       Notice: Undefined index: cache_dir in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 140
   
       Notice: Undefined index: cache_dir in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 143
   
       Notice: Undefined index: cache_dir in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 148
   
       Notice: Undefined index: cache_dir in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 149
   
       Notice: Undefined index: cache_dir in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 153
   
       Warning: mkdir() [function.mkdir]: No such file or directory in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 505
   
       Fatal error: Uncaught exception 'UberGalleryException' with message 'Unable to create cache directory, please manually create it' in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php:506 Stack trace: #0 [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php(207): UberGallery->setCacheDirectory('.//photos...') #1 [server path masked]/plugins/simplicity-gallery/simplicity.php(138): UberGallery->createGallery('.//photos...') #2 [server path masked]/wp-includes/plugin.php(199): _simplicity__show('') #3 [server path masked]/wp-includes/post-template.php(166): apply_filters() #4 [server path masked]/themes/genesis/lib/structure/post.php(310): the_content() #5 [server path masked]/wp-includes/plugin.php(429): genesis_do_post_content('_simplicity__sh...', Array) #6 [server path masked] in [server path masked]/plugins/simplicity-gallery/UberGallery/resources/UberGallery.php on line 506
       ```
   
 * This site has the wp-content folder renamed.
    Any help is appreciated! Thanks!
 * [http://wordpress.org/plugins/simplicity-gallery/](http://wordpress.org/plugins/simplicity-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [saiman_thefreeart](https://wordpress.org/support/users/saiman_thefreeart/)
 * (@saiman_thefreeart)
 * [12 years ago](https://wordpress.org/support/topic/undefined-index-cache_dir-error/#post-4428457)
 * Hi,
    Please try the last version – 1.3.
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Undefined index: cache_dir error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplicity-gallery.svg)
 * [Simplicity - WordPress gallery plugin](https://wordpress.org/plugins/simplicity-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplicity-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplicity-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/simplicity-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplicity-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplicity-gallery/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [saiman_thefreeart](https://wordpress.org/support/users/saiman_thefreeart/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/undefined-index-cache_dir-error/#post-4428457)
 * Status: resolved