• Resolved tikitorcher

    (@tikitorcher)


    I am developing a theme with a local environment and a hosted environment. Each time I export my database from my local and import to my hosted instance (myphp admin > import), all of the settings for this plugin are reset. I have to reselect colors, etc each time. I am not sure if the settings aren’t being properly saved, exported, imported, or something else. Anyone else having this issue with this plugin? Any ideas?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Hello @tikitorcher ,

    Technically this should work fine. We have done this type of things many times and never seen any issue like this.

    Did you try to check the database entry for it?

    Regards
    -Nirmal

    Thread Starter tikitorcher

    (@tikitorcher)

    Yes, I looked into the database entry as well. Most of the data seems to be stored a single field. After a fresh import, I diffed these fields and they were identical. However not of the options I had set were actually working at that time.

    Once I logged into the hosted site and made a plugin config change (eg set a color) the database entry changed drastically, with many options being set to zero on the hosted DB entry. I am not sure what causes the plugin to ignore the initial DB entry.

    Thread Starter tikitorcher

    (@tikitorcher)

    I believe my issue was actually caused by how php serialized arrays. Serialized PHP unfortunately stores a string length for each string for some reason… :/ I was doing find/replaces on my database export to modify the url for localhost, so that is what corrupted the database entry used by this plugin.

    I finally figured this out based on
    this article.

    Thank you for responding back and for the nice plugin,
    Thanks!!

    • This reply was modified 7 years, 1 month ago by tikitorcher. Reason: fixing broken link
    Plugin Author Magnigenie

    (@magnigenie)

    Hello @tikitorcher ,

    It’s good to hear that you figured out the problem.

    Let me know if you need any further help and please leave a review for the plugin as it keeps us motivated to keep the plugin updated and provide support.

    Regards

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

The topic ‘When restoring database, this plugin is reset’ is closed to new replies.