• I have always loved Shortcoder. I’ve used it broadly for years, and have over 100 shortcodes, most of them providing jQuery. It is a boon to an amateur with some knowledge of scripting. I maintain online forms for a religious congregation, as a volunteer.

    I updated to the latest version of Shortcoder today. I then started examining elements subject to shortcodes, and none of them worked.

    What I discovered in doing some digging was that the update had deleted all the backslashes in my shortcodes’ javascript/jquery strings.

    So, for example, every time an apostrophe or similar punctuation had been escaped in a string variable definition, the script broke entirely.

    Less fatal, but more difficult to find and fix: \n, the line break character, became the character n, so lots of pages are now peppered with n’s. Just try searching for the single letter n in a 1000 line script …

    It’s taking me hours of sweat and blood to try to find and correct all of the damage to the scripts. In many cases I have backup copies locally, but in some cases I don’t.

    I’m hoping to fall in love with Shortcoder all over again, but I’m not sure how.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author vaakash

    (@vaakash)

    Hi @lscoltri,

    Nothing to worry about.
    Your old shortcodes which were created in 4.x are still in place.

    You can delete v5.x and install v4.x from below link and continue using as normal.
    https://www.ads-software.com/plugins/shortcoder/advanced/

    Meantime I’ll check this issue.

    Also if possible could you please share any shortcode content which is formatted incorrectly after 4.x to 5.x upgrade ?

    Sorry for the inconvenience !

    Plugin Author vaakash

    (@vaakash)

    Hi @lscoltri,

    The issue of script/style tags being removed is fixed in v5.0.4. Please install it and you will get your shortcode content back.

    Thanks,
    Aakash

    We have this same issue. Reverting to 4.6 works fine, however then updating back to 5.1 the problem with missing \ symbols remains.

    This may be due to already converting to 5.x earlier.

    What are the steps to *safely* go from 4.6 to 5.x when that process was already done in the past and you want a fresh start?

    Note: we simply renamed the new plugin directory and copied the 4.6 files back in this case.

    Thanks,
    Tim

    Plugin Author vaakash

    (@vaakash)

    Hi @mindcue,

    Updating to v5.0.4 and above will automatically fix the issue by getting the content as they were in v4.6

    Could you please explain what do you mean by missing “symbols” ?

    Thanks,
    Aakash

    Hi Aakash,

    I was referring to the backslash symbol \ disappearing, as in the original post.

    I tried updating to 5.1 from 4.6 and the problem remains. I’m guessing this was due to updating this way earlier and the 5.x data not being replaced?

    This is what we did:
    1) updated from 4.x to 5.x before the fix was in place
    2) discovered the problem noted above
    3) saw this thread, and copied the 4.6 version to the plugin directory, with different directory name
    4) renamed the existing live 5.x version directory, then renamed the 4.6 version to make it the active version
    5) at this point we see the shortcodes with \ correctly
    6) then we updated that 4.6 version to 5.1 via WordPress
    7) the problem returned

    So it appears that because we’d already updated to 5.x in the past it didn’t rescan and replace the previously updated shortcodes (from #1 above).

    What is the safest way forward to update to 5.1 at this point?

    Thanks,
    Tim

    Tim Gary

    (@mindcue)

    Can we please have a step by step outline of what’s needed to recover from this issue when we updated from 4.6 to 5.x prior to the “fix”?

    Since we updated already, there are already shortcodes in the new locations.

    I’m assuming that’s why updating again doesn’t do anything.

    The question is, what’s the *safe* way to handle this?

    Right now we have 4.6 data. We also have pre “fix” 5.x data. So when we try updating from 4.6 to 5.x (fixed) it doesn’t seem to do anything.

    What are the steps to fix this specific situation?

    Do we export 4.6 data, then update to 5.x (latest), then delete all the broken shortcodes there, then import?

    Seems like that’s the most likely case, but we don’t want to loose, nor break anything.

    Thanks

    Plugin Author vaakash

    (@vaakash)

    Hi Tim,

    Just upgrading to v5.x should be enough.

    Shortcoder has logic to automatically update the correct data from v4.6

    There are no active issues and your issue seems to be the last.

    To udnerstand what is the state of the upgrade on your side, I need to first login to your setup and see. Can you please send me your site url, a temporary administrator username and password to my contact form below ?

    https://www.aakashweb.com/contact/

    I’ll login and check the issue ASAP.

    Thanks,
    Aakash

    Tim Gary

    (@mindcue)

    Hi Aakash,

    I’ve contacted you via your site. Much appreciated.
    -Tim

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Latest update broke most of my shortcodes’ is closed to new replies.