• Resolved garvidson

    (@garvidson)


    Using Inspired theme seems to have a clash

    Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/arvidson/public_html/wp-content/themes/inspired/framework/functions/common.php:4) in /home/arvidson/public_html/wp-content/plugins/wp-user-frontend/wpuf-functions.php on line 449

    http://wordpress.org/extend/plugins/wp-user-frontend/

Viewing 10 replies - 1 through 10 (of 10 total)
  • RiseCakoPlusplus

    (@risecakoplusplus)

    wordpress-3.5.1 ?

    Thread Starter garvidson

    (@garvidson)

    Just updated to 3.5.1 and same error.
    Is there any work around?

    I have this issue with the beta version 3.6-beta1-24095

    Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/public_html/.co.nz/wp-includes/shortcodes.php:153) in /home/public_html/.co.nz/wp-content/plugins/wp-user-frontend/wpuf-functions.php on line 449

    I’ve half fixed it… but very roughly…
    Commented out the has_shortcode section in wpuf-functions and a few lines where there is has_shortcode in wpuf.php
    It seems to be working so far, but not a very tidy solution.

    The fork version no longer uses has_shortcode() although it is still present in wpuf-functions.php. You can comment it out without any ill effects in the fork. We will remove it in the next release.

    PS It’s only used to reduce the amount of code loaded so it not problematic to comment it out on non fork versions.

    Just comment or remove function has_shortcode in every theme file which is written in error. It works for me.

    please tell me how to fix this?
    my whole site is down:-( my client’s gonna freak! my error reads
    Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/melkbosa/public_html/wp-includes/shortcodes.php:153) in /home/melkbosa/public_html/wp-content/themes/inspired/framework/functions/common.php on line 23

    my front and back end is down

    Plugin Author Tareq Hasan

    (@tareq1988)

    It’s coming from your theme, not from the plugin. The plugins has_shortcode() function has been renamed to wpuf_has_shortcode().

    the solution for inspired theme issue:
    http://support.curtycurt.com/downloads/3.6.patch.zip

    Just copy/replace the attached (unzipped file) into the following folder of your WordPress install.

    wp-content/themes/inspired/framework/functions/

    the file to overwrite is common.php

    THANK YOU GRzell
    This is truly the best of the internet!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error: Cannot redeclare’ is closed to new replies.