WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
Fatal Error (5 posts)

  1. LrdPhoenix
    Member
    Posted 3 years ago #

    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.

  2. LrdPhoenix
    Member
    Posted 3 years ago #

    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().

  3. Joe Dolson
    Member
    Plugin Author

    Posted 3 years ago #

    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?

  4. LrdPhoenix
    Member
    Posted 3 years ago #

    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.

  5. brian7997
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic