• Resolved dariivanova

    (@dariivanova)


    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

    (@kimabaghdasaryan)

    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

    (@dariivanova)

    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 5 years, 8 months ago by dariivanova.
    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    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

    (@dariivanova)

    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.