WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
Fatal Error (15 posts)

  1. peterarees
    Member
    Posted 2 years ago #

    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/

  2. techtamers
    Member
    Posted 2 years ago #

    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.

  3. Vladimir Anokhin
    Member
    Plugin Author

    Posted 2 years ago #

    What shortcodes you are trying to insert?

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

  4. techtamers
    Member
    Posted 2 years ago #

    I was trying to insert a list.

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

  5. Vladimir Anokhin
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  6. peterarees
    Member
    Posted 2 years ago #

    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.

  7. techtamers
    Member
    Posted 2 years ago #

    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.

  8. Vladimir Anokhin
    Member
    Plugin Author

    Posted 2 years ago #

    I've just released version 3.9.2

    Can you install it and publish results here?

  9. peterarees
    Member
    Posted 2 years ago #

    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

  10. techtamers
    Member
    Posted 2 years ago #

    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.

  11. Vladimir Anokhin
    Member
    Plugin Author

    Posted 2 years ago #

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

  12. cgsciandra
    Member
    Posted 2 years ago #

    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.

  13. jinbatsu
    Member
    Posted 2 years ago #

    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...
    }
    }
  14. daretattoo
    Member
    Posted 1 year ago #

    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

  15. daretattoo
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic