monakur Posted June 22, 2006 Share Posted June 22, 2006 I tried to put a contrib into my site to allow customers to skip the payment page if the total price of their cart is $0 (I sometimes have free digital download samples), but I got a fatal error. I backed up my files first and swapped all the originals back in, but I still get the fatal error. This is the error I receive when trying to go to my checkout_payment.php file on the site: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home2/monarcom/public_html/store/includes/functions/database.php:13) in /home2/monarcom/public_html/store/includes/functions/database.php on line 25 I never even touched the database file though. Any suggestions? Thanks in advance for the help! monakur Link to comment Share on other sites More sharing options...
Terra Posted June 22, 2006 Share Posted June 22, 2006 Monakur - double-posting won't bring you any closer to a solution. Did you at least read my last reply to your previous thread? http://www.oscommerce.com/forums/index.php?sho...mp;#entry882796 The error isn't probably anything to do with the database.php file - it usually occurrs if you try to call a function twice, e.g. by calling application_top.php twice ... and that usually occurs when files get copied into the wrong location. Most common error is to copy a root leve file into language level. Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
monakur Posted June 23, 2006 Author Share Posted June 23, 2006 I didn't mean to double post this topic this time, I think my computer stuck for awhile and I clicked on "post topic" twice...anyway, that is exactly what I did wrong: when I backed up my files, I backed up my root level files, and then tried to swap them back into my language level folders. Anyway, problem solved (for now). Thanks for the help, and sorry for the double post!! Monakur - double-posting won't bring you any closer to a solution. Did you at least read my last reply to your previous thread? http://www.oscommerce.com/forums/index.php?sho...mp;#entry882796 The error isn't probably anything to do with the database.php file - it usually occurrs if you try to call a function twice, e.g. by calling application_top.php twice ... and that usually occurs when files get copied into the wrong location. Most common error is to copy a root leve file into language level. Terra Link to comment Share on other sites More sharing options...
crash3903 Posted June 23, 2006 Share Posted June 23, 2006 I tried to put a contrib into my site to allow customers to skip the payment page if the total price of their cart is $0 (I sometimes have free digital download samples), but I got a fatal error. I backed up my files first and swapped all the originals back in, but I still get the fatal error. This is the error I receive when trying to go to my checkout_payment.php file on the site: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home2/monarcom/public_html/store/includes/functions/database.php:13) in /home2/monarcom/public_html/store/includes/functions/database.php on line 25 I never even touched the database file though. Any suggestions? Thanks in advance for the help! monakur check to see fi you ahve any blanks lines at the top or bottom of the file checkout_payment.php - is so remove the blanks lines and see if that helps The blank line would be before the first <?php and after the last ?> if there is one Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.