• Resolved flamdingo

    (@flamdingo)


    Hi
    I have recently installed MaxButtons on my site.

    I use BackupBuddy to take copies of my live site and migrate the copy to a test site for development.

    When i migrated the live site after installing MaxButtons I noticed that the buttons continued to load pages from the live site, rather than the copies of the pages migrated to the test site.

    I referred the issue to iThemes, the developer of BackupBuddy, their response if given below:

    I’m one of the developers for BackupBuddy. I went ahead and downloaded the MaxButtons plugin to look at how it was storing data. I can confirm that they are storing their data in custom tables as json_encoded strings. BUB doesn’t currently migrate URLs in jSON encoded strings for a number of reason.

    We do have it on our feature request list but for now you will have to replace these via the plugin. Thus far, we’ve only found two plugins (including this one) that store text data in a json_encoded format in the database. I’m not sure why they do it like this, but I’m sure they’ve run across this problem with people who use their plugin because even a manual search and replace wouldn’t catch this. You may want to contact them and tell them you’ve moved sites. Ask them if they have a tool that can port the URLs in their json_encoded data.

    Do you have any plans to change how you store the URLs or will I need to amend them manually each time I migrate a site?

    Peter

    https://www.ads-software.com/plugins/maxbuttons/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi Peter,

    Yes it’s indeed on our to-do list but it might be a while. We use json_encoded data for a number of reasons, mostly for scaling reasons of the options.

    At the moment there is no quick way to make this conversion. But you can add the URL in a number of other ways, including inside the shortcode and using a WordPress hook to change it inside code.

    Plugin Author Bas Schuiling

    (@basszje)

    Peter,

    After some internal discussion here, we decided to include this feature in next update, which will be out tomorrow probably.

    Another possibility would be to use relative URL’s in the plugin. Those are much more portable ( and would also allow you to switch between http / https sites for instance ) .

    Thread Starter flamdingo

    (@flamdingo)

    Hi Bas
    Great news. Many thanks for letting me know and the prompt turnaround.

    Best wishes

    Peter

    Plugin Author Bas Schuiling

    (@basszje)

    Hi Peter,

    You can download the new version and check.

    – Backup the database and verify if the maxbuttons table is properly in the backup! It’s very important since the script might fail, and it might kill your buttons. This is strictly on your own risk.

    – Go to settings page –
    – Click the link ‘ I need to bulk edit something’ in the bottom
    – Select ‘URL’ and the search – replace fields.

    Let me know if you run into any problems.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URLs stored as json encoded data’ is closed to new replies.