Title: Creating default object from empty value &amp; select display type
Last modified: August 31, 2016

---

# Creating default object from empty value & select display type

 *  Resolved [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/)
 * I’ve done a bit of research and see that this problem crops up on occasion, but
   no solution for current version of NextGen. The software was working beautifully
   until the latest update to the WordPress platform. I tested by deactivating all
   other plugins and using the TwentySixteen theme and clearing the cache as well
   as optimizing the database.
 * Here are the errors:
 * 1. Creating default object from empty value in public_html/wp-content/plugins/
   nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/package.module.
   attach_to_post.php on line 668
 * 2. I am not able to select the display type when trying to insert gallery on 
   a page.
 * Thank you for any and all assistance.
 * LJ
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6934977)
 * Hello out there… checking in to see if anybody is looking into this or has an
   idea for me. I see answers to more recent posts. Feeling a bit over-looked ;-
   0.
 * Thank you,
    LJ
 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6934993)
 * Also, I uninstalled and installed the plugin 4 times. Once through ftp just to
   see if that could shake it loose. No luck.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935069)
 * [@phrasewrite](https://wordpress.org/support/users/phrasewrite/) – You mentioned“
   optimizing the database”, what did that entail?
 * As it is, we’re not seeing this issue ourselves with current versions of NextGEN
   Gallery and WordPress core so there could be conflict somewhere that has now 
   arisen with another item on your site.
 * Have you tried deactivating all of your plugins, clearing your browser cache (
   and site caches if you are using a caching plugin), then reactivating the NextGEN
   plugin?
 * If this fixes the problem then it was likely one of the deactivated plugins that
   was causing an issue. Now, retrace your steps activating each plugin and re-checking
   to see if the problem returns. If it does then that last activated plugin was
   probably the one. Keep reactivating and in most cases it is also best to keep
   checking after each plugin, sometimes there may be more than one plugin on a 
   site that will create an issue. If you do find one (or more) plugins causing 
   this problem we would greatly appreciate your feedback on them so the developers
   may address them as soon as they can.
 * Also to note, in rare cases it may be the theme itself that is causing a conflict
   so while you have just the NextGEN plugin activated you might consider temporarily
   switching to one of the default WordPress Twenty series themes and see if this
   corrects the issue as well.
 * If the problem still persists after all of this we would still want to know, 
   even more so, as we will still want to sort out the issue and may need additional
   details.
 * Thanks!
 * – Cais.
 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935077)
 * [http://EDAnimeProductions.com](http://EDAnimeProductions.com) is the site.
 * **Here’s the order in which I tested. **
    1. research the heck out of it on the
   forums 😉 2. delete NextGen through the admin plugins area. Reinstall by auto-
   download and auto-install. Activate NextGen only and see if error occurs. It 
   does. 3. Deactivate all plugins and switch theme to TwentySixteen. Reactivate
   NextGen only and see if error persists. It does. 4. Keeping all plugins deactivate,
   delete NextGen through the admin plugins area. Reinstall by auto-download and
   auto-install. Activate NextGen only and see if error occurs. It does. 5. Delete
   NextGen through admin plugins area and reinstall by downloading zip to local 
   computer and upload to site through ftp. Activate NextGen only and see if error
   occurs. It does. 6. Deactivate NextGen. 7. Reactivate Avada theme, so as to not
   lose configurations in next step. 8. Clean database through WP database cleanup
   and optimizer. Optimize database. 9.Reactivate NextGen and test. Problem exists.
   10. Reactivate all other plugins and test again for kicks-and-grins. Problem (
   of course) exists.
 * And that’s where I am with this. Happy to send to you admin access and ftp.
 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935080)
 * Thanks!
    LJ
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935098)
 * [@phrasewrite](https://wordpress.org/support/users/phrasewrite/) – You may need
   to do a complete clean install of NextGEN Gallery … we have seen some instances
   where some database “cleaners” and “optimizers” will cause significant problems
   for NextGEN Gallery.
 * Try the following to completely remove NextGEN Gallery from your site …
 * This process will generally work but we recommend you have a complete fully verified
   back-up of your site just in case you run into any problems:
 * Use FTP to remove NextGEN Gallery related folders.
    Then use something like [http://wordpress.org/plugins/wpdbspringclean/](http://wordpress.org/plugins/wpdbspringclean/)
   to delete all the ngg tables. Then use something like [http://wordpress.org/plugins/database-peek/](http://wordpress.org/plugins/database-peek/)
   to search through the remaining tables for NGG references. Then use something
   like [http://wordpress.org/plugins/edit-any-table/](http://wordpress.org/plugins/edit-any-table/)
   to delete all of these database entries.
 * Tables typically involved: wp_ngg_*, wp_options, wp_postmeta, and wp_usermeta
 * Thanks!
 * – Cais.
 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935101)
 * Thank you. Will do this today.
 * LJ
 *  Thread Starter [design](https://wordpress.org/support/users/phrasewrite/)
 * (@phrasewrite)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935106)
 * No luck. Fresh install into a thoroughly sanitized database. So, I’ll use another
   gallery for this particular site. But, if you do receive reports of this from
   others, and find that an update to the NGG plugin solves it, would you message
   me directly?
 * And thank you for your fantastic-personal tech support. You are a gem.
 * LJ
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935125)
 * [@phrasewrite](https://wordpress.org/support/users/phrasewrite/) – Thanks for
   the update … we’ll see what we can do about a notification; you might need to
   watch the new releases and their changelogs in the meantime.
 * – Cais.

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

The topic ‘Creating default object from empty value & select display type’ 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

 * [default object](https://wordpress.org/support/topic-tag/default-object/)
 * [display type](https://wordpress.org/support/topic-tag/display-type/)
 * [empty value](https://wordpress.org/support/topic-tag/empty-value/)

 * 9 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-select-display-type/#post-6935125)
 * Status: resolved