From: Gary K S. Jr <ga...@st...> - 2010-05-07 01:46:36
|
So I take it the calendar plugin should be activated. This is from my config.php file $plugins[0] = 'compatibility'; $plugins[1] = 'check_quota'; $plugins[2] = 'timeout_user'; $plugins[3] = 'squirrelspell'; $plugins[4] = 'postfixadmin'; $plugins[5] = 'calendar_sql_backend'; $plugins[6] = 'shared_calendars'; I thought the shared_calendar plugin had the calendar functions built in. When I enable the calendar plugin, Squirrelmail has fatal PHP errors and does not display anything. My PHP error log. PHP Fatal error: Cannot redeclare squirrelmail_plugin_init_calendar() (previously declared in /usr/local/www/squirrelmail/plugins/shared_calendars/setup.php:21) in /usr/local/www/squirrelmail/plugins/calendar/setup.php on line 20, referer: https://systems.stinnettfamily.com/squirrelmail/src/signout.php Thanks again, Gary I thought I would add the lines in the files that are showing the errors for more info. My /shared_calendars/setup.php file has as follows from line 14 to 26 /** * Register this plugin with SquirrelMail * */ function squirrelmail_plugin_init_calendar() { global $squirrelmail_plugin_hooks; $squirrelmail_plugin_hooks['menuline']['calendar'] = 'cal_menu_link'; $squirrelmail_plugin_hooks['optpage_register_block']['calendar'] = 'cal_options_block'; $squirrelmail_plugin_hooks['generic_header']['calendar'] = 'small_calendar_style'; $squirrelmail_plugin_hooks['left_main_after']['calendar'] = 'render_small_calendar'; My /calendar/setup.php file has as follows from line 13 to 29 /** * Initialize the plugin * @return void */ function squirrelmail_plugin_init_calendar() { global $squirrelmail_plugin_hooks; $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar'; } /** * Adds Calendar link to upper menu * @return void */ function calendar() { displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right'); echo " \n"; } ------------------------------------------------------------------------------ ----- squirrelmail-plugins mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squ...@li... List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins |