![]() |
Parse error inc.DBAccess.php on line 30 - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Installation Problems (https://community.letodms.com/forumdisplay.php?fid=9) +--- Thread: Parse error inc.DBAccess.php on line 30 (/showthread.php?tid=217) Pages:
1
2
|
Parse error inc.DBAccess.php on line 30 - robshim - 01-05-2011 Issues : I get this error: 'Parse error: parse error in C:\wamp\www\mydms\inc\inc.DBAccess.php on line 30'. Line 30 is a '{' Steps to get the error msg : Running index.php (out.ViewFolder.php) for the first time after installation. Error msg : 'Parse error: parse error in C:\wamp\www\mydms\inc\inc.DBAccess.php on line 30' LetoDMS Version : 2.0.2 LetoDMS Installed URL : ( optional) local hospital intranet server PHP version : 5.2.9-2 MYSQL Version : 5.1.33 Windows : Windows 2003 running WAMP have you followed the installation instructions from LetoDMS - yes Attach your inc.Settings.php to the thread. Many thanks! RE: Parse error inc.DBAccess.php on line 30 - Doudoux - 01-06-2011 Hy In file " inc.Settings.php", try : PHP Code: var $_ADOdbPath = "/var/www/letoDMS-2.0.2/adodb/"; and in your file "inc.DNAccess.php", replace PHP Code: include $settings->_ADOdbPath . "adodb.inc.php"; doudoux RE: Parse error inc.DBAccess.php on line 30 - robshim - 01-06-2011 (01-06-2011, 12:21 AM)Doudoux Wrote: Hy Hi thanks for that. I now get: "Warning: include(/var/www/mydms/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\mydms\inc\inc.DBAccess.php on line 20 Warning: include() [function.include]: Failed opening '/var/www/mydms/adodb/adodb.inc.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\mydms\inc\inc.DBAccess.php on line 20 Fatal error: Call to undefined function adonewconnection() in C:\wamp\www\mydms\inc\inc.DBAccess.php on line 84" Please note I have named the root folder 'mydms' not 'letoDMS-2.0.2'. Rob RE: Parse error inc.DBAccess.php on line 30 - Doudoux - 01-06-2011 hy PHP Code: /var/www/mydms/ try PHP Code: C:/wamp/www/mydms/ doudoux RE: Parse error inc.DBAccess.php on line 30 - robshim - 01-07-2011 (01-06-2011, 10:44 PM)Doudoux Wrote: hy Thank you for your really prompt and helpful answers. We are getting there! I now have a login page, with a few errors. It seems to want to access 'letoDMS-2.0.2' rather than my folder 'mydms' not sure what to do about that. Anyway here are the errors and I have attached the inc.Language.php file Warning: include(/var/www/letoDMS-2.0.2/languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\mydms\inc\inc.Language.php on line 41 Warning: include() [function.include]: Failed opening '/var/www/letoDMS-2.0.2/languages/English/lang.inc' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\mydms\inc\inc.Language.php on line 41 and also on line 27 of lang.inc : readdir () : supplied argument is not valid directory resource and the same on lines 104 and 106 of inc.ClassUI.php phew! and also l RE: Parse error inc.DBAccess.php on line 30 - Doudoux - 01-07-2011 hy i think you are again a bad path can you give your last "inc.Settings.php" doudoux RE: Parse error inc.DBAccess.php on line 30 - robshim - 01-07-2011 (01-07-2011, 06:34 PM)Doudoux Wrote: hy attached. RE: Parse error inc.DBAccess.php on line 30 - Doudoux - 01-07-2011 Your folder is mydms and not letodms Your system is Windows PHP Code: // path to where mydms is located ==> PHP Code: // path to where mydms is located doudoux RE: Parse error inc.DBAccess.php on line 30 - robshim - 01-07-2011 (01-07-2011, 06:46 PM)Doudoux Wrote: Your folder is mydms and not letodms Thanks, I should have spotted that! ![]() Got the login page OK, but logging in as admin / admin get this error: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error." More information about this error may be available in the server error log. (01-07-2011, 07:44 PM)robshim Wrote:(01-07-2011, 06:46 PM)Doudoux Wrote: Your folder is mydms and not letodms Sorry forgot to attach error log RE: Parse error inc.DBAccess.php on line 30 - Doudoux - 01-07-2011 Check your database settings. Generally, user for mysql is "root" and not "admin"... PHP Code: var $_dbUser = "admin"; |