• Received the following error on updating to 3.6 a few minutes ago, please help?

    Thank you!

    Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/content/50/9945150/html/wp-includes/shortcodes.php:153) in /home/content/50/9945150/html/wp-content/themes/mharris/framework/functions/framework-functions.php on line 77

Viewing 11 replies - 1 through 11 (of 11 total)
  • There’s an issue in your theme. FTP into your site (or whatever file management application your host provides) & rename the wp-content/themes/mharris folder to wp-content/themes/mharris-old. This will activate the default theme and allow you back into your site.

    Thread Starter CalaveraKid

    (@calaverakid)

    Thank you, but I already was able to do that and switched to a default theme, but the answer doesn’t provide instruction on how to fix this issue with the theme involved.

    I have reached out to the theme developer for help, is that my only recourse, or do you have a suggestion on fixing this particular issue?

    Thanks! 🙂

    is that my only recourse

    Yes it is. It seems the theme is incompatible with WordPress 3.6.

    can you upload the code of functions.php at pastebin.com and share the pastebin link? we can check the code and give the idea.

    Thread Starter CalaveraKid

    (@calaverakid)

    Sure, here you go! This is the framework-functions.php code called out in the above error:

    wp-content/themes/mharris/framework/functions/framework-functions.php

    http://pastebin.com/Six8cnJK

    Here is the modified code http://pastebin.com/Z9h4D3nb .

    First keep a backup of functions.php file and modify the code by my edited code. Hope that site will be back

    Thread Starter CalaveraKid

    (@calaverakid)

    Updated with new code, following errors now showing across header of live site (also note the file in question is NOT functions.php but framework-functions.php):

    Warning: Missing argument 2 for has_shortcode(), called in /home/content/50/9945150/html/wp-content/themes/mharris/functions/conditional_scripts.php on line 54 and defined in /home/content/50/9945150/html/wp-includes/shortcodes.php on line 153

    Warning: Missing argument 2 for has_shortcode(), called in /home/content/50/9945150/html/wp-content/themes/mharris/functions/conditional_scripts.php on line 58 and defined in /home/content/50/9945150/html/wp-includes/shortcodes.php on line 153

    Warning: Missing argument 2 for has_shortcode(), called in /home/content/50/9945150/html/wp-content/themes/mharris/functions/conditional_scripts.php on line 63 and defined in /home/content/50/9945150/html/wp-includes/shortcodes.php on line 153

    Warning: Missing argument 2 for has_shortcode(), called in /home/content/50/9945150/html/wp-content/themes/mharris/functions/conditional_scripts.php on line 63 and defined in /home/content/50/9945150/html/wp-includes/shortcodes.php on line 153

    You need to go back to whoever developed this theme for you.

    Thread Starter CalaveraKid

    (@calaverakid)

    Okay, thanks anyway for you time 🙂

    Ok. you need to contact with theme developer. Lot of files are using this function. So You need to update the theme based on WP 3.6.

    Hi CalaveraKid! Your theme is not compatible with WordPress 3.6 and if you would want to use that same theme again, you might need to downgrade your wordpress and re-installing the previous version. Just make sure to back up all your files first before doing this. You can do this using FTP. =)

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