WordPress.org

Support

Support » Plugins and Hacks » My Calendar » [Resolved] [Plugin: My Calendar] Fatal Error

[Resolved] [Plugin: My Calendar] Fatal Error

  • When I install My Calendar this pops up:

    Fatal error: Cannot redeclare my_calendar_today() (previously declared in /home/site/public_html/wp-content/plugins/my-calendar/my-calendar-widgets.php:8) in /home/site/public_html/wp-content/plugins/my-calendar/my-calendar-widgets.php on line 8

    It shuts down the whole of WordPress, have to manually delete the my calendar plug-in directory to stop the error. It’s the only calendar installed. It’s odd that it seems to be declaring it twice on the same line.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Managed to fix it by adding some if(!function_exists()) around the redeclaring functions. After my_calendar_today(), my_calendar_today_control() threw up the same error, as well as my_calendar_upcoming() and my_calendar_upcoming_control().

    Plugin Author Joe Dolson

    @joedolson

    That’s curious. That function is *not* declared twice, so I’m not at all certain why you’d be getting that error. It seems like the wrapper function (init_my_calendar_today) is actually getting called twice, which would conceivably throw a problem. Are you trying to use two instances of the widget on one page, or something like that, perhaps?

    No, not at all. Don’t even get to set up any widgets or anything like that after installation. All of WordPress throws the error immediately upon activation of the plug-in, including the Admin section, hence the need to manually delete the folder.

    I am having a similar issue, actually the exact same error. I am wondering if there is a plugin conflict? I have deleted the files and deleted the database tables, but still gives an error

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: My Calendar] Fatal Error’ is closed to new replies.
Skip to toolbar