Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parse error inc.DBAccess.php on line 30
01-05-2011, 09:26 PM,
#1
Parse error inc.DBAccess.php on line 30
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!


Attached Files
.php   inc.Settings.php (Size: 7 KB / Downloads: 10)
.php   inc.DBAccess.php (Size: 7.54 KB / Downloads: 5)
Reply
01-06-2011, 12:21 AM, (This post was last modified: 01-06-2011, 12:25 AM by Doudoux.)
#2
RE: Parse error inc.DBAccess.php on line 30
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
01-06-2011, 05:09 PM,
#3
RE: Parse error inc.DBAccess.php on line 30
(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
01-06-2011, 10:44 PM, (This post was last modified: 01-06-2011, 10:44 PM by Doudoux.)
#4
RE: Parse error inc.DBAccess.php on line 30
hy

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


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

doudoux


Attached Files
.php   inc.Settings.php (Size: 6.97 KB / Downloads: 4)
Reply
01-07-2011, 06:10 PM,
#5
RE: Parse error inc.DBAccess.php on line 30
(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


Attached Files
.php   inc.Language.php (Size: 5.34 KB / Downloads: 1)
.php   inc.ClassUI.php (Size: 25.92 KB / Downloads: 1)
Reply
01-07-2011, 06:34 PM,
#6
RE: Parse error inc.DBAccess.php on line 30
hy

i think you are again a bad path

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

doudoux
Reply
01-07-2011, 06:41 PM,
#7
RE: Parse error inc.DBAccess.php on line 30
(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.


Attached Files
.php   inc.Settings.php (Size: 7.04 KB / Downloads: 4)
Reply
01-07-2011, 06:46 PM, (This post was last modified: 01-07-2011, 06:48 PM by Doudoux.)
#8
RE: Parse error inc.DBAccess.php on line 30
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
01-07-2011, 07:44 PM, (This post was last modified: 01-07-2011, 08:12 PM by robshim.)
#9
RE: Parse error inc.DBAccess.php on line 30
(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


Attached Files
.txt   MYDMS ERROR.txt (Size: 2.26 KB / Downloads: 5)
Reply
01-07-2011, 08:22 PM,
#10
RE: Parse error inc.DBAccess.php on line 30
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: 1 Guest(s)

Contact Us | LetoDMS Community Forum | Return to Top | | Lite (Archive) Mode | RSS Syndication