Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Delphi For PHP > Installation and Configuration
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Installation and Configuration Need help installing Delphi for PHP? Having trouble configuring it? Post your questions here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 1st July 2009, 16:47
D4PHP Enthusiast
 
Join Date: Mar 2009
Posts: 131
kelinda is on a distinguished road
Default Wamp + firebird

Hello

Hi have a db named WEB_ORDINI.gdb, in the hide of DFPHP I set the driver name on borland_ibase and the databasename: WEB_ORDINI.gdb, i put the db,gds32.dll, and all file deployed with wizard procedure, in the folder C:\wamp\www , the WAMPSERVER is goingon good...,
version firebird is 1.2...when i run the project in DFPHP the database is connected correctly ...
the problem is that,when i click on link localhost , i can see the first page, but the second one, that call the connection on firebird db, i show this error
below....can i do something?
thanks

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 129

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 129
Application raised an exception class EDatabaseError with message 'Cannot connect to database server'
Click for detailed informationCallstack #0 File: C:\wamp\www\ufrmLog.php Line: 7
|_Callstack #1 File: C:\wamp\www\uDataMod.php Line: 24
|_Callstack #2 File: C:\wamp\www\vcl\classes.inc.php Line: 1880
|_Callstack #3 File: C:\wamp\www\vcl\classes.inc.php Line: 1977
|_Callstack #4 File: C:\wamp\www\vcl\classes.inc.php Line: 587
|_Callstack #5 File: Line:
|_Callstack #6 File: C:\wamp\www\vcl\classes.inc.php Line: 510
|_Callstack #7 File: C:\wamp\www\vcl\classes.inc.php Line: 1232
|_Callstack #8 File: C:\wamp\www\vcl\db.inc.php Line: 391
|_Callstack #9 File: C:\wamp\www\vcl\system.inc.php Line: 330
|_Callstack #10 File: C:\wamp\www\vcl\dbtables.inc.php Line: 154
|_Callstack #11 File: C:\wamp\www\vcl\db.inc.php Line: 431
|_Callstack #12 File: C:\wamp\www\vcl\dbtables.inc.php Line: 286
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 5th July 2009, 13:18
D4PHP Guru
 
Join Date: Nov 2007
Posts: 223
u.masotti is on a distinguished road
Default

Hi,
try to answer step by step...

Quote:
Originally Posted by kelinda View Post
Hi have a db named WEB_ORDINI.gdb,
rename database when offline with other more confortable extension. Firebird suggest to have .fdb extension to database file, exp. on windows where .gdb is reserved for system use. Another reason to do so, is that for historical reasons, .gdb is for Interbase database files. Now that projects are definitively forked, it's a good reason to identify which is which.
Quote:
Originally Posted by kelinda View Post
in the hide of DFPHP I set the driver name on borland_ibase
No, select "firebird" in Adodb components (i.e. general Database components) instead and don't use Interbase dedicated component to interface to Firebird. There are some little differences for SELECT spec. in SQL language and PHP software querying for metadata can't create correct queries...
Quote:
Originally Posted by kelinda View Post
and the databasename: WEB_ORDINI.gdb, i put the db,gds32.dll, and all file deployed with wizard procedure, in the folder C:\wamp\www , the WAMPSERVER is goingon good...,
After deplying with wizard, have you checked that there aren't any other gds32.dll hidden somewhere in server's directories? There must be only one, and it must be the Firebird's one version. Check with file properties.
Quote:
Originally Posted by kelinda View Post
version firebird is 1.2...
Uh? Sure? Maybe you mean 2.1...
Quote:
Originally Posted by kelinda View Post
when i run the project in DFPHP the database is connected correctly ...
I'm almost sure: it's another server... don't confuse each other.
Quote:
Originally Posted by kelinda View Post
the problem is that,when i click on link localhost , i can see the first page, but the second one, that call the connection on firebird db, i show this error
below....can i do something?
thanks

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 128

Notice: Undefined index: line in C:\wamp\www\vcl\classes.inc.php on line 129

Notice: Undefined index: file in C:\wamp\www\vcl\classes.inc.php on line 129
As I see you have error level to notice (good to debug).
Obviously, the first thing I'd check is: what happens at line 128 and 129 of classes.inc.php?
Undefined index means (indirectly) that maybe a NULL or void string is replacing a meaningful information among other things.
In my D4PHP version that happens in a the exception management, retrieving information from the stack for trace, so don't care for the moment.
Quote:
Originally Posted by kelinda View Post
Application raised an exception class EDatabaseError with message 'Cannot connect to database server'
Click for detailed informationCallstack #0 File: C:\wamp\www\ufrmLog.php Line: 7
|_Callstack #1 File: C:\wamp\www\uDataMod.php Line: 24
|_Callstack #2 File: C:\wamp\www\vcl\classes.inc.php Line: 1880
.....
Ok. What is line 24 of uDataMod.php?
Try to attach some of your code, so it's possible to identify what happens exactly.
ANother thing: in my version of D4PHP sources line 1880 of classes.inc.php is a comment. Which version of D4PHP are you using now?
__________________
Ciao.
Mimmo.

Last edited by u.masotti; 5th July 2009 at 13:24. Reason: Version of D4PHP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 9th July 2009, 14:20
D4PHP Enthusiast
 
Join Date: Mar 2009
Posts: 131
kelinda is on a distinguished road
Default Installation and Configuration

Thanks a lot..
i will try step by step...

by by
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:35.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use