Hi, sorry about the issues. The migration from versions under 1.0.0 is a bit messy as some internal things had to be renamed to avoid conflicts.
There are two things that can be attempted (it works only for 1.0.3)
1. Deactivate and reactivate the 1.0.3 version of the plugin
2. Visit this URL: youdromain.com/wp-admin/?widgetshortcode_maintenance=1
Both these operations will attempt to force WordPress to rebuild its widgets and sidebars database.
Otherwise please email me directly matt(at)jwr.sk and I will try to provide more hands-on assistance. Worst case scenario I will help you to rebuild things manually.
Sorry, I meant 1.0.2 version of the plugin
Thank you @jaworskimatt. I have tried both of the above on my live site and neither worked. So it looks like I need to keep it at 0.4.0 and figure out why it keeps auto updating although I have it set NOT to.
I did decide to change themes from TwentyTwentyThree to Astra and rebuild because I keep running into issues with many plugins that I want/need to use with 2023. Not to mention Astra is extremely well known and used, has been around for quite some time, and has great support. To be honest, I really thought that would solve my issue.
I created a staging site from my current site, installed and activated Astra and then upgraded to WS 1.02 but still received the “This block has encountered an error and cannot be previewed.” when trying to insert a Widget Shortcode Block anywhere other than the Sidebar or other Widget area. I went and did the above two items you suggested and lost all the widgets from my sidebar LMFAO and had to recreate. No big deal really, but it didn’t help with the block error issue.
I then decided to deactivate and unistall, clear site and browser cache and download, install & reactivate a clean copy of 1.02 from the WP repo. Still no luck. As a last resort, today I have Restored the 0.4.0 version from my backup and it has given me the capabilities I need to place the widgets wherever I need them.
Now I just need to figure out WTF it keeps updating on me and wiping everything out forcing me to restore the old version from backup when I have it set not to!!! I’m not sure what is wrong with my particular system that this is happening. Any ideas?!
I tried using the 0.3.5 version which does not have any of my changes, but the block also crashes. It seems that this might have been broken somehow for a while now.
It’s likely the JS code is very outdated, frankly I have not refactored it.
I will run this by a JS expert as this seems to be a proper bug.
For now you should be able to use the original (no custom block) flow.
1. Add a widget you want to position in the block editor (probably in the WidgetShortcode position)
2. Copy the shortcode from that widget
3. Add a shortcode block where needed
4. Use the shortcode copied earlier
It’s basically the same thing and at this point I’m not even sure why the custom block exists.
I have just pushed out version 1.1.0 in which the block should work fine. It was also refactored to ensure compatibility with the future WordPress 6.2. Please let me know if it helped.
OMG! OMG! OMG! @jaworskimatt I could just kiss you right now! The 1.1.0 version worked! At least in Astra. I now have a fully functioning Widget in a non-widget area on my Home page in a version other than 0.4.0 – the Moon Phases widget. I am so very excited. I’ll be able to add my forums topics widget and a few others I have wanted as well. I an extremely grateful for the work you have put in the past few days on this.
Just so you know, there are major issues with the TwentyTwentyThree theme that really hung your plugin up. And not just yours. I installed the Easy Upgrade Manager on both my live site running 2023 and my staging site running Astra both of which had auto-updated WidgetShortcode from 0.4.0 to 1.02 the day before although I had it set not to. I set completely BLOCKED Widgetshortcode from being able to update at all with Easy Update Mgr on both sites last night and this morning it still had updated on the live 2023 site but it did not on the Astra site. AND the 1.1 version DID NOT fix my issues on the 2023 site and copying and pasting the shortcode into a shortcode block did not work either! SMFH! The 1.1.0 version seems to be working fine with the Astra theme so I honestly believe that most of the issues stem from the 2023 Theme itself.
Oh well, back to rebuilding my site. At least this time I have a bit more confidence in what I am doing and in the products I am using. Thanks again!
Happy to help and to hear things are working now 🙂 If the plugin continues to perform well, please leave a review, you’ll be first 😉
After some more time passed it became obvious this plugin wouldn’t be sustainable in the current shape due to some bugs in the WordPress API itself. The plugin was thus closed and will be republished as a paid solution once it’s rewritten from the ground up.