Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parse error inc.DBAccess.php on line 30
#1
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!
Reply
#2
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";
//include "http://kuka/letoDMS-2.0.2/adodb/" 

doudoux
Reply
#3
(01-06-2011, 12:21 AM)Doudoux Wrote: 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";
//include "http://kuka/letoDMS-2.0.2/adodb/" 

doudoux

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
Reply
#4
hy

PHP Code:
/var/www/mydms
it's for linux :-)


try
PHP Code:
C:/wamp/www/mydms
in inc.Settings.php

doudoux
Reply
#5
(01-06-2011, 10:44 PM)Doudoux Wrote: hy

PHP Code:
/var/www/mydms
it's for linux :-)


try
PHP Code:
C:/wamp/www/mydms
in inc.Settings.php

doudoux

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
Reply
#6
hy

i think you are again a bad path

can you give your last "inc.Settings.php"

doudoux
Reply
#7
(01-07-2011, 06:34 PM)Doudoux Wrote: hy

i think you are again a bad path

can you give your last "inc.Settings.php"

doudoux

attached.
Reply
#8
Your folder is mydms and not letodms
Your system is Windows


PHP Code:
// path to where mydms is located
var $_rootDir "/var/www/letoDMS-2.0.2/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/letoDMS-2.0.2/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "/var/www/letoDMS-2.0.2/data/"

==>

PHP Code:
// path to where mydms is located
var $_rootDir "C:/wamp/www/mydms/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/mydms/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "C:/wamp/www/mydms/data/"

doudoux
Reply
#9
(01-07-2011, 06:46 PM)Doudoux Wrote: Your folder is mydms and not letodms
Your system is Windows


PHP Code:
// path to where mydms is located
var $_rootDir "/var/www/letoDMS-2.0.2/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/letoDMS-2.0.2/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "/var/www/letoDMS-2.0.2/data/"

==>

PHP Code:
// path to where mydms is located
var $_rootDir "C:/wamp/www/mydms/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/mydms/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "C:/wamp/www/mydms/data/"

doudoux

Thanks, I should have spotted that! Sad
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
Your system is Windows


PHP Code:
// path to where mydms is located
var $_rootDir "/var/www/letoDMS-2.0.2/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/letoDMS-2.0.2/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "/var/www/letoDMS-2.0.2/data/"

==>

PHP Code:
// path to where mydms is located
var $_rootDir "C:/wamp/www/mydms/";

// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot "/mydms/";

// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir "C:/wamp/www/mydms/data/"

doudoux

Thanks, I should have spotted that! Sad
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.

Sorry forgot to attach error log
Reply
#10
Check your database settings.

Generally, user for mysql is "root" and not "admin"...

PHP Code:
var $_dbUser "admin"
Reply


Forum Jump:


Users browsing this thread: