Guest Posted August 10, 2005 Posted August 10, 2005 I just finished installing the CCGV contribution, and now I can't login to the admin console. I get this error when I try Fatal error: Cannot redeclare create_coupon_code() (previously declared in /home/leisuret/public_html/osCommerce/catalog/admin/includes/functions/general.php:17) in /home/leisuret/public_html/osCommerce/catalog/admin/includes/add_ccgvdc_application_top.php on line 25 I double checked to see if it was right. Should both declarations be needed? Or can one of them be dropped? Thanks in advance!
greysun Posted August 10, 2005 Posted August 10, 2005 You can only declare a variable once. If it is being declared from one page and that page is also including the text from the other as I suspect from the names of the files it is then you would need to remove on decleration. This is just speaking in general terms though. unfortunately I am not familiar with the contribution you are working with but would be happy to take a look at the two files if removing one of the declerations doesnt solve the problem
Guest Posted August 10, 2005 Posted August 10, 2005 You can only declare a variable once. If it is being declared from one page and that page is also including the text from the other as I suspect from the names of the files it is then you would need to remove on decleration. This is just speaking in general terms though. unfortunately I am not familiar with the contribution you are working with but would be happy to take a look at the two files if removing one of the declerations doesnt solve the problem <{POST_SNAPBACK}> I appreciate your help. I was going to post that I had fixed it by removing the declaration from both admin/includes/functions/general.php and catalog/includes/functions/general.php. That seems to have fixed that fatal error. But now I have another one. I am testing the ccgv system and dummying an order, but when I hit the continue button on the payment info page, i get this error message: Fatal error: Cannot redeclare class order_total in /home/leisuret/public_html/osCommerce/catalog/includes/classes/order_total.php on line 13 I have checked line 13 in that file and compared it to the stock version. Everything looks good, but it will not go through. Any suggestions anyone???
greysun Posted August 10, 2005 Posted August 10, 2005 Is it possible this is alrerady declared in another file from the ccgv system. Try again removing the decleration temporarily to see if it resolves the issue
Recommended Posts
Archived
This topic is now archived and is closed to further replies.