CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Fatal error: Cannot redeclare class clsDBdb in Common.php

Print topic Send  topic

Author Message
zecinho

Posts: 24
Posted: 06/05/2014, 12:48 PM

After years working with CCS4 I finally start a proyect with CCS5. Simple proyect with Php/mysql. One table in database. F9 in order to generate whole proyect, and this error!.
_________________
Jose Maldonado
View profile  Send private message
zecinho

Posts: 24
Posted: 06/06/2014, 9:50 AM

Try again to create a blank page.

Fatal error: Cannot redeclare class clsDBdb in Common.php

Same problem.
_________________
Jose Maldonado
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 06/06/2014, 5:39 PM

try doing a find in you .php or events.php for $$


_________________
Central Coast, NSW, Australia.

View profile  Send private message
zecinho

Posts: 24
Posted: 07/02/2014, 11:45 AM

Well, never call your datasource "db" it must be a reserved word.
_________________
Jose Maldonado
View profile  Send private message
EMG


Posts: 35
Posted: 06/08/2015, 10:01 AM

any solution for this? I'm getting it too.

Cannot redeclare class clsDBETMS
View profile  Send private message
eratech


Posts: 513
Posted: 06/13/2015, 1:05 AM

EMG - are you creating a new connection to the database in your code? the 'clsDBxxxxx' is usually loaded in the page (pagename.php), and doesn't normally get re-declared.

Could you also have an includable page that is re-declaring it?

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 08/16/2015, 12:30 AM

best of my knowledge CC writes all the db connection strings/declarations into common.php and that single file is the best and only place for it.

I do wonder though if multiple references to instantiate the connection occurred in includable page(s), can certain conditions throw the error?
_________________
Central Coast, NSW, Australia.

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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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