WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes stop working after 3.4.1 upgrade (21 posts)

  1. Jonathan Goodman
    Member
    Posted 1 year ago #

    I run several websites and upgraded to 3.4.1 all in one day. Immediately, after the upgrades all plugins that used shortcodes stopped working. Has anyone else experienced this problem? Is WordPress Core Development aware of this issue?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Whatever this is, it's specific to your sites. Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

  3. Jonathan Goodman
    Member
    Posted 1 year ago #

    All plugins were deactivated. Most plugins were completely removed from the server and then re-installed problem still occurring.

    Sites were switched back to Twenty Eleven problem still occurring.

    Plugin folder was reset problem still occurring

    All files except the wp-content folder re-installed problem still occurring.

    It's not just my site. Take a look at all these conversations. Everyone is thinking the plugins are at fault but all these plugins fail after upgrading to 3.4.1

    http://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-jetpack-shortcode-embeds-and-rss-feeds?replies=2

    http://wordpress.org/support/topic/plugin-cf-internal-link-shortcode-debug-errors?replies=2

    http://madebyraygun.com/support/topic/errors-running-on-wp-3-4-1/

    http://www.kriesi.at/support/topic/several-issuesquestions

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    All of those issues are completely different. This particular issue is specific to your sites.

  5. Jonathan Goodman
    Member
    Posted 1 year ago #

    If it's specific to my site then can you give me some scenarios why shortcodes might stop working. We've already gone through your recommended actions. I can't be the only person on the planet to have ever had shortcodes stop working. What should I be looking for? How can I get shortcodes to work again?

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I can't be the only person on the planet to have ever had shortcodes stop working

    You're the only person running 3.4 that I've seen with this particular problem here. Have you tried a vanilla install on another server?

  7. Jonathan Goodman
    Member
    Posted 1 year ago #

    Please clarify "vanilla".

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    No plugins or themes installed - ie as it came out of the box following the install process.

  9. Jonathan Goodman
    Member
    Posted 1 year ago #

    In order to resolve this issue we had to role back the PHP upgrade from 5.3.14 back to 5.3.13. We also switched the PHP ini short_open_tag from off to on. I would appreciate it if WordPress would review the new PHP upgrade to see why there might have been this conflict.

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm using PHP 5.3.14 on a couple of my sites without any problems.

  11. Jonathan Goodman
    Member
    Posted 1 year ago #

    Do you have video running on any of those sites?

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Not that I recall but I'd be happy to try one for you. Are these embedded videos from (day) YouTube? Or self-hosted videos? If it's the latter, what video player plugin are you using?

  13. Jonathan Goodman
    Member
    Posted 1 year ago #

    I would appreciate you doing that test. These are self hosted videos using mediaelement.js (http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/) but once that failed I also tried Secure HTML5 Video Player (http://wordpress.org/extend/plugins/secure-html5-video-player/). I was getting a black box with a "Download File" link in it.

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you tried http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/ It's a little more recent than either of the other two.

  15. Jonathan Goodman
    Member
    Posted 1 year ago #

    The video was just to most obvious issue that was resolved by rolling back the PHP version. There were other minor shortcode issues throughout all of the sites. Do you have any issue when you install either one of my suggested plugins or the JW Player?

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Not seeing any issues with core shortcodes after installing JW Player. Nor any problems with a CF7 shortcode.

  17. Jonathan Goodman
    Member
    Posted 1 year ago #

    It must have to do with the Amazon Web Services servers.

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    Sorry - I don't have any experience using Amazon Web Services. :-( Do you have access to any other PHP 5.2.14 servers?

  19. davidklaw
    Member
    Posted 1 year ago #

    I'm having a similar issue with WordPress 3.4.1 on an EC2 server with PHP 5.3.14. On 2 separate projects I've had issues not with shortcodes not working at all, but rather with them not parsing arguments correctly.

    I spent a lot of time looking in to it last night and it turned out to be this line of code in /wp-includes/shortcodes.php in the shortcode_parse_atts() function:

    $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);

    In my staging environment this replace is essentially wiping out all of the shortcode arguments. Commenting it out fixes the problem. I've found this issue discussed in several other places but none include a solution.

    If there's anything else I can provide that can help figure this one out let me know.

  20. Brett
    Member
    Posted 1 year ago #

    Thanks David for finding this. I was having this problem too. I posted about it here:

    http://wordpress.org/support/topic/captions-disappearing

    But once I applied your "fix" above it was resolved. This seems like a pretty significant flaw in the core code.

  21. dmiyares
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic