Support » Plugin: GCal Events List » [Plugin: GCal Events List] Cannot redeclare add_styles()

  • Upon activation I received the following error:

    Could not activate since the plugin caused a fatal error

    Fatal error: Cannot redeclare add_styles() (previously declared in /domain.tld/public_html/wp-content/plugins/easing-slider/easingslider.php:98) in /domain.tld/public_html/wp-content/plugins/gcal-events-list/gcal_events_list.php on line 197

    So it seems like this plugin does not work very well alongside the Easing Slider plugin =)

Viewing 1 replies (of 1 total)
  • Plugin Author veleno


    maybe I have found the problem. gcal_events_list makes use of a function named add_styles(). This function registers a style sheet.
    easingslider makes use of a similar function with the same name. I will fix this asap. In the meanwhile you can rename the function in gcal_events_list.php on line 29 and line 190.

    This is the original code:

    029. add_action('wp_print_styles', 'add_styles');
    190. function add_styles() {...}

    Try this code (not tested):

    029. add_action('wp_print_styles', 'add_gcel_styles');
    190. function add_gcel_styles() {...}

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: GCal Events List] Cannot redeclare add_styles()’ is closed to new replies.