Title: [Plugin: Cleaner Gallery] PHP warning
Last modified: August 20, 2016

---

# [Plugin: Cleaner Gallery] PHP warning

 *  [Cibulka](https://wordpress.org/support/users/cibulka/)
 * (@cibulka)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-cleaner-gallery-php-warning/)
 * Hi, after activating great CLEANER GALLERY plugin, I recieved a PHP warning.
 * “Warning: Creating default object from empty value in XXX\wp-content\plugins\
   cleaner-gallery\cleaner-gallery.php on line 84”
 * Apparently I am not the only one having this problem: [http://www.google.cz/search?q=cleaner+gallery+default+object+warning](http://www.google.cz/search?q=cleaner+gallery+default+object+warning)
 * Any sollutions? I’m no PHP guru, so please go easy on me. 🙂 Thanks!
 * [http://wordpress.org/extend/plugins/cleaner-gallery/](http://wordpress.org/extend/plugins/cleaner-gallery/)
 * _[ Please do not bump, that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).]_

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

 *  [peterjanes](https://wordpress.org/support/users/peterjanes/)
 * (@peterjanes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-cleaner-gallery-php-warning/#post-2939133)
 * You can work around the warning by adding this at line 83 (for plugin version
   0.9.2):
 *     ```
       if ( !$cleaner_gallery ) {
                       $cleaner_gallery = new stdClass;
               }
       ```
   
 * All it does is create an instance of an empty object that the settings will be
   cached in, if it doesn’t already exist.
 *  [supernova1](https://wordpress.org/support/users/supernova1/)
 * (@supernova1)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-cleaner-gallery-php-warning/#post-2939135)
 * Didn’t work
 * The error disappeared, but the images don’t appear.
 *  [peterjanes](https://wordpress.org/support/users/peterjanes/)
 * (@peterjanes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-cleaner-gallery-php-warning/#post-2939136)
 * Haven’t seen that behaviour, but I can’t see any way it would be related to the
   warning (or the fix for it): all the cleaner_gallery_get_setting method does 
   is cache the settings that were in the database. You might want to start a new
   topic, though, since it’s a different bug than what you reported above.

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

The topic ‘[Plugin: Cleaner Gallery] PHP warning’ is closed to new replies.

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

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [peterjanes](https://wordpress.org/support/users/peterjanes/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-cleaner-gallery-php-warning/#post-2939136)
 * Status: not resolved