WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal Error: Call to undefined function get_shortcode_regex() (15 posts)

  1. xzyber
    Member
    Posted 6 years ago #

    Hey guys I just got done with the upgrade...now when I click on my pages I get the following error:

    Fatal error: Call to undefined function: get_shortcode_regex() in .../wp-includes/formatting.php on line 95

    I looked at the code on line 95...

    Line 95: $pee = preg_replace('/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee); // don't auto-p wrap shortcodes that stand alone

    I researched it...found only one solution: Someone said they just deleted line 95...

    But what part of it? All of it? Will deleting this line cause any problems...line 95 must be there for some reason or another...WHAT TO DO!?!?! (sorry had to vent, have had one prob after another after this upgrade!)

    Please help! Thanks!

  2. WizzKid
    Member
    Posted 6 years ago #

    I am getting the exact same problem, please help wordpress team!

  3. moshu
    Member
    Posted 6 years ago #

    Make sure the file wp-includes/shortcodes.php is uploaded and it's not demaged.

  4. WizzKid
    Member
    Posted 6 years ago #

    Thanks, I just reverted back to 2.5 and installed the plugin wp-auto-update and did it from there, works fine now!

  5. xzyber
    Member
    Posted 6 years ago #

    Hey guys! Fixed!

    http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/

    Use the wp-automatic-upgrade plugin to re-install! Awesome plugin, alot quicker too!

    Thanks again!

    -Brian

  6. dohoon
    Member
    Posted 6 years ago #

    i was having the exact same problem and fixed it by just copying all the *.php files in /wordpress folder NOT the folders, just the files.

  7. nomoregrapes
    Member
    Posted 6 years ago #

    Well now upgrade.php isn't showing anything and I can't get to wp-admin.
    I hope this goes better on my other blogs.

  8. pavy
    Member
    Posted 6 years ago #

    Hey guys,

    I had the same exact error and I fixed it simply by re-uploading the shortcodes.php (located in the wp-includes). The error went right away.

  9. zajanatural
    Member
    Posted 6 years ago #

    The only thing that worked for me was to revert to 2.5, download the automatic upgrade plugin. Now the line 95 code is gone and everything is back in order.

  10. brendadada
    Member
    Posted 6 years ago #

    I had used the automatic upgrade plugin suggested above and got exactly the same error message.

    Have just replaces shortcodes.php with a new one from a copy of 2.5.1 and now my blog doesn't load at all. Urgl!

    Any suggestions?

  11. iPaulPro
    Member
    Posted 6 years ago #

    brendadada -

    What ftp program are you using? Sometimes errors in the FTP upload process will cause these types of errors. Re-upload all of the 2.5.1 files BESIDES 'wp-content' and 'wp-config.php'. If you are still having this problem, use a different FTP program.

    I just had the same issue. After a restart of the FTP program and overwrite of the files (minus above), everything works fine.

    Let me know how it goes.

  12. sleepywhisper
    Member
    Posted 6 years ago #

    hey guys, same problem - but made harder.

    I am getting that same error ...shortcode... when I try and use the utoupdater it wont let me saying
    "Warning: copy(/home/guycross/public_html/wordpress/index.php) [function.copy]: failed to open stream: No such file or directory in /home/guycross/public_html/wordpress/wp-content/plugins/wordpress-automatic-upgrade/wpau_upgrade.class.php on line 321
    We could not complete the upgrade please try again later, click here to check the logs"

    so I havent a clue what to do, ideas?
    fortunately my website lets me into the admin pages, which others dont seem to be getting....

  13. sleepywhisper
    Member
    Posted 6 years ago #

    i just deleted the line of code, works fine now

    note to self to upgrade next time around, hopefully get a fixedline 95 back then!!!!

  14. KB
    Member
    Posted 6 years ago #

    I tried the fixes mentioned above, tried different FTP programs, and this problem wouldn't go away. Even tried uploading the files from wordpress that works fine on my localhost. Still got the error.

    The fix that worked for me was deleting line 95.

    Is this going to cause future problems upgrading again (with the database) or shouldn't have to worry?

  15. Zombat
    Member
    Posted 6 years ago #

    Hey everyone, I had this same problem as well.

    Rather than delete line 95 however, I ended up adding the following line to the top of wp-includes/formatting.php:

    require_once('shortcodes.php');

    That solved the problem, and line 95 still gets to do whatever it's doing.

Topic Closed

This topic has been closed to new replies.

About this Topic