• Resolved awitchawakens

    (@awitchawakens)


    Hello, I hope someone can help me. I have gotten PeepSo Foundation to work wonderfully with my current website which I built using the TwentyTwentyThree Theme and the Full Page Editor. The theme did not support sidebars and widgets so I installed Widgetshortcode 0.4.0 and came up with a design which works very well althought there were a few bugs such as the COMMUNITY section and Cover do not appear on the Profile Widget on the page although they do appear in the Widget preview and although the photos appear in both the Widget preview and in the template, they do not appear on the page for some reason, I was still extremely happy with it.

    I was happy when I saw that there was an upgrade available and hoped that these bugs might be addressed so I went ahead and upgraded. Unfortunately, not only did it not fix the bug issues, it broke ALL of my Widgets! All of them now do not appear on the live page and when I go to the template, wherever I had placed a Widget block, I get the following message – “This block has encountered an error and cannot be previewed.” There is nothing that can be done to the block when clicked on. It’s just dead.

    I have tried some different things. Amongst them are the following:

    • I have deactivated ALL of my plugins, cleared my site cache as well as my browser cache and reinstalled a new copy of the plugin from the WP repo. CHANGED NOTHING
    • I restored my 0.4.0 plugin from a backup and it brought everything back to good BUT despite the fact that I have it on the list of plugins NOT to be auto-updated, for some reason the past two mornings when I got online, it was updated and everything was broken again and I had to go back in and restore the old version from backup once again. I don’t understand why this is happening.

    I honestly don’t know what is going on but could use some help ASAP!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Matt Jaworski

    (@jaworskimatt)

    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.

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    Sorry, I meant 1.0.2 version of the plugin

    Thread Starter awitchawakens

    (@awitchawakens)

    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?!

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    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.

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    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.

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    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.

    Thread Starter awitchawakens

    (@awitchawakens)

    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!

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    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 😉

    Plugin Author Matt Jaworski

    (@jaworskimatt)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘All of my Widgetshortcode Widgets from 0.4.0 broke when upgrading to 1.0.2’ is closed to new replies.