Title: PHP Notice: Undefined property: stdClass::$options
Last modified: July 4, 2019

---

# PHP Notice: Undefined property: stdClass::$options

 *  Resolved [dariivanova](https://wordpress.org/support/users/dariivanova/)
 * (@dariivanova)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/)
 * I am developer in a project that uses WordPress for its blog. Photo Gallery plugin
   is used in it. A few days ago I updated WordPress and all used plugins, including
   Photo Gallery. I did that for a production and local development environment.
   Current version of plugin is 1.5.29. After the update a PHP Notice has started
   to show in PHP logs **only on production**:
 * **PHP Notice: Undefined property: stdClass::$options in /var/www/uchase/public_html/
   motiviramse/wp-content/plugins/photo-gallery/framework/WD_BWG_Theme.php on line
   1071**
 * I check it and found out that business logic is expecting a **$row** object that
   is extracted from database table **bwg_theme** to have a property **options**.
   Properties of **$row** are formed from columns on **bwg_theme** table.
 * In **production **the table bwg_theme does **not have column options**, but many
   columns every one containing single option.
 * On **local **environment the table **has a column options** and all theme settings
   are saved in it as json.
 * On local environment I have uninstalled the plugin (all tables in database related
   to plugin have been removed) and added it again. I checked the database and saw
   there is options field in bwg_theme table. So I assumed this is the correct state
   of database. I do not understand how on production table ended up with different
   structure.
 * I do not want to uninstall the plugin in production because I will lost current
   galleries. What should I do to prevent this PHP Notice and to not lost my galleries?

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

 *  Plugin Support [Kima Baghdasaryan](https://wordpress.org/support/users/kimabaghdasaryan/)
 * (@kimabaghdasaryan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/#post-11712952)
 * Hi,
 * We are kindly asking you to delete the Photo Gallery plugin from the **Plugins**
   section of your Dashboard. In this case, you will not lose any data or created
   gallery. You will lose galleries if you uninstall the plugin.
 * Also, please navigate to **Photo Gallery > Options** and click on **Save**.
 * Please let me know if you have any further questions.
 * Thank you!
 * Have a nice day!
 *  Thread Starter [dariivanova](https://wordpress.org/support/users/dariivanova/)
 * (@dariivanova)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/#post-11717230)
 * Hi,
 * Problem still persist.
    Here is what I did: 1. Delete Photo Gallery plugin (It
   was already deactivated) 2. Install it again 3. Navigate to Photo Gallery -> 
   Options – slick Save button
 * What else can I do?
    -  This reply was modified 6 years, 11 months ago by [dariivanova](https://wordpress.org/support/users/dariivanova/).
 *  Plugin Support [Kima Baghdasaryan](https://wordpress.org/support/users/kimabaghdasaryan/)
 * (@kimabaghdasaryan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/#post-11732160)
 * Hi,
 * Please delete the theme table in your production development environment, afterwards,
   deactive/active the plugin. You will not lose the galleries, but you will lose
   the Theme.
 * Thank you!
 * Have a nice day!
 *  Thread Starter [dariivanova](https://wordpress.org/support/users/dariivanova/)
 * (@dariivanova)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/#post-11740008)
 * Thank you for your assist!
 * I followed your instructions and all is working right now.

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

The topic ‘PHP Notice: Undefined property: stdClass::$options’ is closed to new 
replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [PHP Notice](https://wordpress.org/support/topic-tag/php-notice/)
 * [Undefined property](https://wordpress.org/support/topic-tag/undefined-property/)

 * 4 replies
 * 2 participants
 * Last reply from: [dariivanova](https://wordpress.org/support/users/dariivanova/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclassoptions/#post-11740008)
 * Status: resolved