Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dmonnier

    (@dmonnier)

    What version of PHP are you running?

    Thread Starter Ali Qureshi

    (@parorrey)

    I’m on PHP 5.2. I got it resolved by changing following:

    /*add_action( ‘widgets_init’, function(){ register_widget( ‘CSSable_Countdown_Widget’ ); });
    */

    add_action(‘widgets_init’,
    create_function(”, ‘return register_widget(“CSSable_Countdown_Widget”);’)
    );

    I think you should update it in the plugin as well for backward compatibility.

    great plugin btw! worked perfectly after update.

    Plugin Author dmonnier

    (@dmonnier)

    That’s what I thought. I researched a bit and PHP 5.3+ is required for anonymous inline functions. I’ll un-anonymize it for the next release. Thank you for the bug-find!

    I got these error when i try to activate the plugin

    Fatal error: Cannot redeclare my_enqueue() (previously declared in /homepages/42/d506544751/htdocs/basar/wp-content/plugins/cssable-countdown/CSSable-Countdown.php:154) in /homepages/42/d506544751/htdocs/basar/wp-content/plugins/cssable-countdown/CSSable-Countdown.php on line 154

    any help please? ??

    Change your my_enqueue() method like
    function my3_enqueue() {
    // functions
    }
    add_action(‘wp_enqueue_scripts’, ‘my3_enqueue()’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin could not be activated: fatal error’ is closed to new replies.