• Hi,

    I just tried to update to the latest version of WP and am now getting this message:

    Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/content/c/c/h/cchaput64/html/wp-includes/shortcodes.php:153) in /home/content/c/c/h/cchaput64/html/wp-content/themes/higher/functions.php on line 1889

    Can anyone help me resolve this?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    your theme “higher” seems tobe the issue.

    Try:

    – uploading a fresh copy of the theme.

    – Or, try switching to the unedited default, core-bundled Theme (such as Twenty Twelve, Twenty Thirteen or Twenty Fourteen) for a moment using the WP dashboard to rule out any theme-specific issue. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    Thread Starter cchaput64

    (@cchaput64)

    Hi,

    Thanks for your help! It definitely seems to be Higher, I renamed it it and I was able to access my admin panel. I’m trying to find a current version of Higher to add back in…getting there. Thanks again, I appreciate it.

    -Chris

    Moderator t-p

    (@t-p)

    I renamed it it and I was able to access my admin panel.

    This indicates your current “Higher” theme is broken

    I think you may have trouble finding a recent version of the theme higher, I could not find an update.

    the problem with the update to version > 3.6 is that the function
    has_shortcode conflicts with the in-built wordpress funtion has_shortcode

    Solution: replace all references

    has_shortcode

    in your functions.php file with

    has_shortcode_higher

    and your theme/website is running again!

    @wptestert
    Thank you mate, you’re a life saver!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error when updating WP’ is closed to new replies.