Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help-I've got the Credit Class Gift Voucher Blues


jamiewalsh

Recommended Posts

Posted

Help me! Here are the vitals:

 

OScommerce version Installed:

$Id: default.php,v 1.81 2003/02/13 04:23:23 hpdl Exp $

 

Credit Class Gift Voucher version uploaded: 5.14

justification for choosing this version: using Paypal without the updated contribution, this is the last version of ccgv without the paypal contribution imbedded in it.

 

1. Uploaded all files after checking them against current versions and adding to new files previous contributions:

specifically:

header tag contribution,

extra (blank) pages/boxes contribution

 

2. successfully dumped .sql file into database.

 

Resulting Error:

see for yourself(turned my php errors on): http://www.silverlakepub.com/catalog/default.php

error reads:

Fatal error: Cannot redeclare tep_parse_input_field_data() (previously declared in /htdocs/www/catalog/includes/functions/general.php:81) in /htdocs/www/catalog/includes/functions/html_output.php on line 15

 

What now? Any ideas really appreciated.

Thanks- :(

Jamie

Posted
check to see if you have the same function in those two files

 

yes so I commented out the display_html file now my error message on the default page reads:

Fatal error: Cannot redeclare create_coupon_code() (previously declared in /htdocs/www/catalog/includes/functions/general.php:17) in /htdocs/www/catalog/includes/add_ccgvdc_application_top.php on line 36

 

this error is in two files that I have uploaded with the ccgv 5.14.

 

did I forget a step? The error message doesn't make sense when the 2 files are NEW files.

 

I need one of the ccgv experts.

Thanks--

Posted

I had these same errors --- I am not sure if what I did is right but but i got it to work (as far as I can tell ... so far).

 

the problem is that

 

/catalog/includes/functions/general.php

 

and

 

/catalog/includes/add_ccgvdc_application_top.php

/catalog/admin/includes/add_ccgvdc_application_top.php

 

have the same function names defined.

 

I figure that the really belonged in general.php. So in the 2 add_ccgvdc_application_top.php files I commented out with //

all the lines between the start and end of the three problematic functions.

 

I was going to go back and double check that the three sets of functions were identical , but haven't gotten around to it yet.

 

Another thing I am noticing is that French has gotten copied into the english language files. Good thing je parle le francais!

 

Kind of makes me nervous; seems like since this is the most heavily downloaded contribution, we OSC users should figure out a way to ensure that it is good and secure code. I for one would be willing to contribute to a bounty.

 

Best wishes,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...