FiveStar Posted September 28, 2005 Posted September 28, 2005 Hello, I uploaded all the files and changed all file names that needed to be changed (except catalog/includes/application_top.php which was mysteriously missing???) to install CCGV and when I went to login to oscommerce I got this message: Fatal error: Cannot redeclare create_coupon_code() (previously declared in /home/gioiades/public_html/osCommerce/catalog/admin/includes/functions/general.php:18) in /home/gioiades/public_html/osCommerce/catalog/admin/includes/add_ccgvdc_application_top.php on line 25 line 18 of general.php is: function create_coupon_code($salt="secret", $length=SECURITY_CODE_LENGTH) { and line 25 of ....application_top.php is: function create_coupon_code($salt="secret", $length=SECURITY_CODE_LENGTH) { Any ideas??? Thanks, Lee
Guest Posted September 28, 2005 Posted September 28, 2005 of application_top.php was missing, then your site would not work . . .
FiveStar Posted September 29, 2005 Author Posted September 29, 2005 of application_top.php was missing, then your site would not work . . . OK, I put it in there, but I still get the same error message. ???
♥Vger Posted September 30, 2005 Posted September 30, 2005 CCGV is not the contribution to start off with when new to osCommerce. It is one of the longest and most complicated of modules to install, and it's easy to make a mistake. The only thing to do is to go through the Install html file and check that you have done everything exactly as described. Vger
kittmaster Posted November 22, 2005 Posted November 22, 2005 CCGV is not the contribution to start off with when new to osCommerce. It is one of the longest and most complicated of modules to install, and it's easy to make a mistake. The only thing to do is to go through the Install html file and check that you have done everything exactly as described. Vger my site is heavily modified and I've reinstalled from a know reference 2 and keep coming up with the same error. It is something that is missing or done incorrectly, problem is where my site has the same error unless I comment one of them out. Fatal error: Cannot redeclare create_coupon_code() (previously declared in /homepages/2/d134230169/htdocs/GForce/shopping/includes/functions/general.php:17) in /homepages/2/XXXXXXXXXX/htdocs/GForce/shopping/includes/add_ccgvdc_application_top.php on line 36 Chris
minimal Posted December 22, 2005 Posted December 22, 2005 Any solution on this one...??? well i've installed both oscommerce and the module two times and i still get this error... i've extracted the zip inside the catalog, made the necessary changes and i've got the same error... i've tried to comment the duplicate function definitions but i get other errors then... if someone found the solution to this please help..>!!!! :)
GoGriz Posted December 22, 2005 Posted December 22, 2005 I had the same problem... try removing the ccgv code in general.php I get a paypal error now though :blink:
Jan Zonjee Posted December 22, 2005 Posted December 22, 2005 try removing the ccgv code in general.phpI get a paypal error now though Can't you just add the function to a separate file (in between <?php and ?> of course, upload it to the directory includes and then where the function is in both files just say "require_once('includes/nameoffilewithfunction');" ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.