Title: Warning: Creating default object from empty value
Last modified: August 20, 2016

---

# Warning: Creating default object from empty value

 *  [Bob Rockefeller](https://wordpress.org/support/users/bobrocke/)
 * (@bobrocke)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-5/)
 * I have my PHP errors on a pretty strict and I’m getting this warning raised by
   NextGEN Gallery v1.9.10:
 * Warning: Creating default object from empty value in
    wp-content/plugins/nextgen-
   gallery/nggfunctions.php on line 554
 * That line is:
    552 // No images found, set counter to 0 553 if (!isset($galleries[
   $key]->counter)){ 554 $galleries[$key]->counter = 0; 555 $galleries[$key]->previewurl
   = ”; 556 }
 * Is that on the bug list? Already fixed?
 * Bob
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘Warning: Creating default object from empty value’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Bob Rockefeller](https://wordpress.org/support/users/bobrocke/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-5/)
 * Status: not resolved