gee807 Posted January 20, 2010 Posted January 20, 2010 Getting the following errors when trying to order with credit card through our store. Any help appreciated! Warning: fopen(/usr/lib/libpopt12.a) [function.fopen]: failed to open stream: Permission denied in /home/austmau1/public_html/includes/modules/payment/cc.php on line 202 Warning: Cannot modify header information - headers already sent by (output started at /home/austmau1/public_html/includes/modules/payment/cc.php:202) in /home/austmau1/public_html/includes/functions/general.php on line 29
web-project Posted January 20, 2010 Posted January 20, 2010 you need to investigate the php code for you standard credit card payment method, as should be noting like this code it: fopen the above is part of php code which tries to contact with other website to send the data, the standard credit card payment method should only record the cc details to database but not send any data to other website. P.S. It seems to me more common modules come now with some insecure code. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
gee807 Posted January 20, 2010 Author Posted January 20, 2010 Thank you web-project for your reply :) line 202 that the error refers to is as below... $FH = fopen($FN, 'a'); and this is the section its in: if (strlen($infotxt)>250) { $FH = fopen($FN, 'a'); if ($FH) { fwrite($FH, $infotxt); fclose($FH); Any tips on how to fix it? Thanks again, Amy
♥mdtaylorlrim Posted January 21, 2010 Posted January 21, 2010 libpopt is a linux library that is used for parsing command line parameters. I don't know if it is the same one referenced in your code though. It probably should not even be in osC code, if that is what it is. And what cc.php module are you using? The stock one that comes with osC or from an add-on. Is this a new shop or one that has been running fine for a while? If this started occurring in a working shop I would be suspicious of hacked code. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
web-project Posted January 22, 2010 Posted January 22, 2010 Thank you web-project for your reply :) line 202 that the error refers to is as below... $FH = fopen($FN, 'a'); and this is the section its in: if (strlen($infotxt)>250) { $FH = fopen($FN, 'a'); if ($FH) { fwrite($FH, $infotxt); fclose($FH); Any tips on how to fix it? Thanks again, Amy the above code simply use the data and record to file as seems to me, but non of the oscommerce cc modules do sort of stuff, as it should be recorded to database - very suspicious module you are using... you need report / flag this module for oscommerce admins as it come very insecure to use it. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.