Custom Sidebars Pro isn't working

Custom Sidebars Pro won't allow me to position a sidebar (see attached image), it just hangs and kind suggests it's about to do something but does nothing.

Any idea why it's doing this?

Thanks

  • dice
    • Design Lord, Child of Thor

    I've switched them all off except for Custom Sidebars Pro of course and it appears to be working but this is for a sidebar in a post and it states this: ' To attach this sidebar to a unique Post or Page please visit that Post or Page & set it up via the sidebars metabox. '

    I cannot find a metabox in the post?

    It has a 'Sidebars' box in the backend of the post but tells me this:
    'Here you can replace the default sidebars. Simply select what sidebar you want to show for this post!
    All sidebars have been locked, you cannot replace them. Go to the widgets page to unlock a sidebar'

    I'm stuck?

  • Jude
    • DEV MAN

    Hi again Dice

    I just spotted what was going wrong here. You need to explicitly allow the sidebar region in your theme to be replaced. For that you simply need to "Allow a sidebar to be replaced" in the widgets screen.

    There's a great video tutorial explaining how to setup the custom sidebars plugin; when you click the link you will be taken to the relevant part of the video:

    https://www.youtube.com/watch?v=q05O9OFEYHM&list=UULgqhMisF-ykzHZzuMEfV4Q&t=37s

    I was able to replace sidebars on a per post/page basis (see sceenshot)

    Hope that helps

    Jude

  • dice
    • Design Lord, Child of Thor

    I wasn't able to do any more work on this until well after you last posted but it has resolved the problem though inadvertently resulted in another.

    Deactivating 'Black Studio TinyMCE Widget' resulted in all the widgets I'd created with this being deleted too. It shouldn't have done this but for some reason it did.

    I found a response in the plugins support for a similar problem where they describe where the data can be retrieved from a backup but I can't figure out how to find the data in my Dropbox backup of my website.

    Does the following mean anything to you?

    If you have a backup of your database you should be able to recover the old widgets from there. All BSTW data is stored in serialized format inside a record in the wp_options table having option_name = 'widget_black-studio-tinymce'. Data storage is handled by WordPress and not directly by the plugin itself. The widgets data is intentionally kept in the datatbase upon plugin deactivation / deletion to avoid content loss.

  • Jude
    • DEV MAN

    Hi there @Dice

    Oh so sorry to hear that !

    The Fix:

    It sounds simple .. do take a backup before you try it.

    Open both your old database and you're new one using a tool like phpMyadmin (via cPanel) . You can try command line via SSH but that is WP-Foo and discouraged unless you REALLY know what you're doing.

    http://torquemag.io/how-to-use-phpmyadmin-wordpress-database/

    Then open the wp_options table on the old one ... and search for the row that says widget_black-studio-tinymce.

    You will find data like

    a:1:{i:4;a:1:{i:0;a:6:
    {s:3:"SKU";s:0:"";s:4:"name";s:12:"H****apy";s:3:"url";s:72:"http://localhost
    /m*******ress/store/products/hypnotherapy
    /";s:5:"price";s:5:"50.00";s:8:"quantity";s:1:"1";s:8:"download";s:0:"";}}}

    Copy it really carefully, every character is important.

    Next in your current site database create a row in the wp_options table called widget_black-studio-tinymce and paste it there.

    Should do the trick.

    Cheers
    Jude

    PS Potentially a great plugin, but not a good codebase if it can't differentiate deactivate from delete. Anyhoo glad I found out before losing data.

  • dice
    • Design Lord, Child of Thor

    Really struggled with this because it's so new to me.

    After some time I've found widget_black-studio-tinymce in my current DB but I can't figure out how to open an old DB using phpmyadmin in the cPanel.

    Also, can't find the data for the widget.

    Thanks for your help but I'm going to give up for now because this is beyond my capabilities.

  • Michelle Shull
    • DEV MAN’s Apprentice

    Hi there, Dice!

    This is tricky stuff, no worries that it's not easy the first time out. That's why we're here. :slight_smile:

    To look at your old database, we're going to grab a tool: http://www.mysql.com/products/workbench/

    This will let you open up a backup of your old database right on your desktop. No need to use cpanel or PHPMyAdmin. You'll be copying the data from the OLD database, that's why you couldn't find it in the current one.

    You'll go to the same table, wp_options, copy the line similar to Jude's above, and paste it into the widget_black-studio-tinymce.

    If you'd rather we take a crack at this, you can use our secure contact form to send in some info:

    https://premium.wpmudev.org/contact/

    Subject: "Attn: Michelle Shull"
    -WordPress admin username
    -WordPress admin password
    -login url
    -FTP credentials (host/username/password)
    -link back to this thread for reference
    -any other relevant urls
    -the backup file for your old database. You may need to use a service like box.com, mega-upload, or mediafire to upload the file and link us to it, if it's too large to attach via contact form.

    Select "I have a different question" for your topic - this and the subject line ensure that it gets assigned to me.

    Thanks!

  • dice
    • Design Lord, Child of Thor

    Thanks Michelle,

    I've replied via the contact form as you requested.

    I've supplied login detail for Siteground, my hosting company too because backups are on there together with heaps of tools in their cPanel.

    If that's not suffice please let me know.

    Thanks, Dice

  • Adam Czajczyk
    • Support Gorilla

    Hey Dice,

    I hope you're well today!

    I believe @Michelle Shull will agree with me but as you have already publicly posted your access credentials in your other thread (here: https://premium.wpmudev.org/forums/topic/login-details-for-my-website-and-hosting-company - I removed those for your security) please

    immediately change all your logins and passwords to your site (hosting account, FTP, wp-admin)

    and send them in once again as described in Michelle's last post (here: https://premium.wpmudev.org/forums/topic/custom-sidebars-pro-isnt-working#post-888372).

    Please do not post those on forum, use our contact form instead:
    https://premium.wpmudev.org/contact/

    I'm sorry for the trouble but I hope you'll understand that it's all because we care for the safety of your site!

    Cheers,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.