• peterarees

    (@peterarees)


    Suddenly getting this error on attempting to insert any shortcode:
    Fatal error: Cannot redeclare su_relative_time() (previously declared in /home/wsiebus/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php:6) in /home/wsiebus/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php on line 39

    I upgraded to 3.9.1 but this made no difference. I have not made any recent changes to plugin etc., but have deactivated a number of the most recent additions, but this makes no difference either.

    Previously used shortcodes still work ok.

    I checked this out on a client site also and found the same problem.

    Any help appreciated.

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

Viewing 14 replies - 1 through 14 (of 14 total)
  • techtamers

    (@techtamers)

    So glad it’s not me! Had exactly the same experience. Was working fine last night for a demo, then this morning got that error message.

    Plugin Author Vova

    (@gn_themes)

    What shortcodes you are trying to insert?

    Please be more informative. It will help me to help you.

    techtamers

    (@techtamers)

    I was trying to insert a list.

    Just went to prior version 3.7.0 and didn’t get that error message.

    Plugin Author Vova

    (@gn_themes)

    Do you using Seo Ultimate plugin? Or may be other plugins that may have prefix SU?

    I can’t get this error on my clean WordPress installation…
    This means that you may have other plugins, that conflicts with my plugin.

    Thread Starter peterarees

    (@peterarees)

    In my case inserting any shortcode triggered the error. However they can still be inserted manually.
    I do not use SEO Ultimate or any plugins with an SU prefix. More fundamentally this worked fine until a couple of days ago and then the error appeared.

    techtamers

    (@techtamers)

    Not using SEO Ultimate. Have shortcode set to gn_codes so shouldn’t be a conflict.

    Just went back and installed 3.7.0 with exactly same blog and it works fine. No error code. So I just won’t upgrade for now.

    Plugin Author Vova

    (@gn_themes)

    I’ve just released version 3.9.2

    Can you install it and publish results here?

    Thread Starter peterarees

    (@peterarees)

    Just tried 3.9.2 – slightly different error:

    Fatal error: Cannot redeclare shortcodes_ultimate_relative_time() (previously declared in /home/wsiebus/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php:11) in /home/wsiebus/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php on line 44

    techtamers

    (@techtamers)

    Sorry – just installed 3.9.2 and got

    Fatal error: Cannot redeclare shortcodes_ultimate_relative_time() (previously declared in /home/jeanet04/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php:11) in /home/jeanet04/public_html/wp-content/plugins/shortcodes-ultimate/lib/twitter.php on line 44

    on very same post on which 3.7.0 worked.

    Plugin Author Vova

    (@gn_themes)

    Thank you for reports.
    I’ll try to fix this bug in next version.

    cgsciandra

    (@cgsciandra)

    Love your plugin. Suddenly I’m getting “access denied” for non-Admin Level users. I use “User Role Editor” to edit roles. Didn’t make any changes before problem started.

    Over the past few weeks I’ve updated to the latest WordPress, User Roll Editor, and Shortcode Ultimate 3.9.2. A lot of finger-pointing possibilites! Any ideas? Thank you.

    Hello,

    For me the Fatal Error is in /lib/widget.php
    For quick dirty fix, I just use function_exists and class_exists.

    Like this:
    original code:

    function shortcodes_ultimate_load_widgets() {
    			register_widget( 'Shortcodes_Ultimate_Widget' );
    		}

    I replace with this:

    if (!function_exists('shortcodes_ultimate_load_widgets')) {
    		function shortcodes_ultimate_load_widgets() {
    			register_widget( 'Shortcodes_Ultimate_Widget' );
    		}
    	}

    And
    original code:

    class Shortcodes_Ultimate_Widget extends WP_Widget {
    ...... lot of code around 50 lines
    }

    replace with:

    if (!class_exists('Shortcodes_Ultimate_Widget')) {
    		class Shortcodes_Ultimate_Widget extends WP_Widget {
    ..... lot of code around 50 lines
    }
    }

    @techtamers:
    you can do like this:
    original code:

    function shortcodes_ultimate_relative_time( $original, $do_more = 0 ) {
    ... lot of code...
    }

    replace with this:

    if (!function_exists('shortcodes_ultimate_relative_time')) {
    		function shortcodes_ultimate_relative_time( $original, $do_more = 0 ) {
    ... lot of code...
    }
    }

    Just installed the plugin and i’m getting the same Fatal error: Cannot redeclare su_heading_shortcode() (previously declared in C:\xampp\htdocs\SimplexThemes\wp-content\plugins\shortcodes-ultimate\lib\shortcodes.php:10) in C:\xampp\htdocs\SimplexThemes\wp-content\plugins\shortcodes-ultimate\lib\shortcodes.php on line 16

    Any solution yet???
    Thanks in advance

    Works just fine now. I deleted the file shortcodes.php that i’ve created previously. I’m heppy now :)))

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Shortcodes Ultimate] Fatal Error’ is closed to new replies.