Guest Posted July 22, 2005 Share Posted July 22, 2005 I did a manual install of 3.0.1 and the cart appears to work, BUT, when I try to access the admin /store/admin/index.php I receive the following error. Fatal error: Cannot redeclare class db in d:\Webs\wyman consulting\store\classes\db.inc.php on line 3 I checked all the includes, they are all include_once, so I don't think that is the problem. PHP 5.0.3 MySQL 5.0.9 John Quote Link to comment Share on other sites More sharing options...
Guest Nanz Posted July 25, 2005 Share Posted July 25, 2005 I am getting this same error, any help would be much appreciated Quote Link to comment Share on other sites More sharing options...
Guest [email protected] Posted August 19, 2005 Share Posted August 19, 2005 i've got this error at the same point as well - any updates on fixing this issue/ i like the look of this software but can't get into admin to customize googled around and see absolutely no answers to this so far, i've examined the includes but can't see any problems from a novice coders pov... thx for any help. ms windows server 2003 php 5.0.4 mysql 4.1 Quote Link to comment Share on other sites More sharing options...
Guest gone_fishing Posted August 19, 2005 Share Posted August 19, 2005 I think there is a problem running Cubecart with php 5. Don't no if that has been fixed or not. http://bugs.cubecart.com/?do=details&id=123 /Peter Quote Link to comment Share on other sites More sharing options...
Guest [email protected] Posted August 19, 2005 Share Posted August 19, 2005 OK - I think I've fixed this issue - at least worked around it and seen no problems so far. You might want to try it also and see if it's a reasonable alternative. In /classes/db.inc.php go to around line 30 before you see 'class db {' for the first time. Insert this without the quotes before that line" if ( !class_exists( "db" ) ) { " At the end of the file, immediatly after you see "} // end of db class" insert a new line and a "}". Save and you should be good. I don't know how good this is but it works for me by just not reloading the class since it's used elsewhere. I started to just go change the class name and all the calls to it but that was too much work. Let me know! Quote Link to comment Share on other sites More sharing options...
Guest e-sellitall Posted September 12, 2005 Share Posted September 12, 2005 Worked for me.... Excellent advice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.