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 |
|
|
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 |
|
|
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.
|
|
|
zecinho
Posts: 24
|
Posted: 07/02/2014, 11:45 AM |
|
Well, never call your datasource "db" it must be a reserved word.
_________________
Jose Maldonado |
|
|
EMG
Posts: 35
|
Posted: 06/08/2015, 10:01 AM |
|
any solution for this? I'm getting it too.
Cannot redeclare class clsDBETMS
|
|
|
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 |
|
|
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.
|
|
|