CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Cannot instantiate non-existent class

Print topic Send  topic

Author Message
spiderman

Posts: 22
Posted: 10/04/2005, 10:49 AM

When running the examples I get this message after I changed the examples to use the mysql database that came with the software...

The examples run to a point then I get the above error message...

For example I select the "Master-Detail Form for Order Entry" from the main page and it comes up, I then select one of the links to the customer and the error comes up:

Fatal error: Cannot instantiate non-existent class: clsdbintranetdb in C:\Program Files\Apache Group\Apache2\htdocs\CCS\OrderEntry\OrderEntry_events.php on line 96

I check line 96 out in the code and everything looks good?
here is the line of code...
$NewConnection = new clsDBIntranetDB();

I fixed one of these same problems by publishing the entire project and running the example again but it didn't work for two of these same problems this time. The data source is correct but I am not 100% sure how to confirm that down to this line of code?
I can go to the form and display the grid and the properties are pointing to the MyIntranet ODBC that I setup but I am not sure how to follow that down the the object... Totally new to this code charge RAD IDE... So if anyone know how to help I thank you!

Nice software and I am happy that I have about five hours into my studies yet I was able to setup and convert from the jet to mysql for the most part! It works except for the underline apps.

Again Thanks

View profile  Send private message
DonB
Posted: 10/04/2005, 1:15 PM

Did you mean "clsDBInternetDB"? Did you create a Connection in the Project
tree? What is the actual connection name? It should be "IntranetDB", if
your spelling the connection name correctly.

There should be a class defined in your Common.php with the same name,
"clsDBIntranetDB". Otherwise you will get that error message.

Anytime you create or modify a connection you MUST republish the entire
project (not just a page, not just a 'quick publish', either), so that an
updated Common.php gets created.

--
DonB

http://www.gotodon.com/ccbth
spiderman

Posts: 22
Posted: 10/06/2005, 9:02 PM

The example had two connections InternetDB and IntranetDB.
When I created the mysql database and tables I took the second "IntranetDB" and using the ODBC created a system DSN and pointed that to the new database. I used the new name MyIntranet from the DSN.

I have published the entire examples after I saved all the files...

When I click on the different forms and look at the Connection that they are using they have myIntranet in the properties?

In the common.php file there is a class "clsDBintranet" but not "clsDBintranetDB" and yet the apps work part way.

For example the example "Updating Many-to-Many Relations via Multi-Select ListBox" will display and as soon as I select one of the Project links I get this:

Fatal error: Cannot instantiate non-existent class: clsdbintranetdb in C:\Program Files\Apache Group\Apache2\htdocs\CCS\ManyToManyListbox\ManyToManyListbox_events.php on line 29

Any ideas?
Thanks
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.