From: Craig J. C. H. <cr...@go...> - 2005-10-22 03:05:23
|
>>> IMAP server is UW-IMAP. >>> PHP 4.4.0 (Zend 1.3.0) >>> Web Server: Apache 1.3.33 >>> Server OS: FreeBSD 4.11 >>> Database MySQL 4.1.9-log (Pear is installed) >>> Installation: Downloaded from SquirrelMail then uploaded to server >>> SquirrelMail Version 1.4.5 >>> Plugins: Squirrelspell 0.3.7, Image_buttons 1.4, Delete_move_next 3.0, >>> abook_take 1.3, calendar 2.0.1, calendar_sql_backend 1.1-2.0, filters >>> 0.8.3, newmail 2.1, translate 1.4, addgraphics 2.3, Compatibility 1.3 >>> >>> SquirrelMail is in a sub-domain. >>> >>> Steps taken to install >>> >>> 1. Database created using the supplied script (Readme) >>> 2. Modified $cal_dsn >>> ='mysql://user:password@localhost/squirrelmail_calendar. >>> Changed user name, password, server name, and database name >>> 3. In "calendar" changed /data/confirg.php $cal_admins = array( help >>> text ); to include an administer >>> 4. Added 2 lines in /config/config.php >>> $plugins[4] = 'calendar'; >>> $plugins[5] = 'calendar_sql_backend'; >>> 5. Turned on error reporting in /plugins/calendar/data/config.php >>> >>> Inside SM under "Options" I can find the "Calendar Administration" >>> and "Calendar Preferences". Clicking "Calendar Administration" then >>> "Calendars" gives an error message "current username is "abc"; >>> admin username is "abc"; are they equal? YES >>> >>> Clicking on a calendar or calendar related button or link gives the >>> below >>> error. Clicking again often clears it up. >>> >>> Fatal error: Undefined class name 'db' in >>> /www/XX/plugins/calendar_sql_backend/functions.php on line 37 >>> >>> >>>>Try editing calendar_sql_backend/functions.php, and change line 12 to >>>>read: >>>>include('DB.php'); >>>>That is, change include_once to include. >>>> >>>>- Paul >>>> >>>>>I edited calendar_sql_backend/functions.php and changed line 12 to >>>>>include('DB.php'); but it doesn't seem to fix the problem. >>>> >>>>OK, please try to copy that line, placing the copy of it *INSIDE* the >>>>cal_get_database_connection() function, just 15 lines below. Does that >>>>help? >>>> >>> On 2005/10/21 Craig Wrote: >>> >>> I copyed line 12 and added as follows; (line numbers added for clarity) >>> 26: function cal_get_database_connection() >>> 27: { >>> 28 include('DB.php'); >> >> Change to: >> >> include_once('DB.php'); >> >> And try again. >> > Hi Paul, > I made the change but I still have the below error message. It is still > irregular, works sometimes but not others and I get this error no matter > where I connect from. What other factors could be affecting this, is there > some MySQL setting that needs adjustment? > > "Fatal error: Undefined class name 'db' in > /www/XX/plugins/calendar_sql_backend/functions.php on line 38" > > Craig Additional Information Clicking on "Edit Holidays" in "Calendar Administration" gives the following error; Fatal error: Call to undefined function: cal_sql_get_all_global_holidays_do() in /www/XXX/plugins/calendar_sql_backend/setup.php on line 520 |