PHP / osCommerce code help

What we are needing is an experienced PHP programmer with osCommerce and CRE Loaded knowledge. We have a site that is up and running, but we are now receiving the following error message after we process our credit cards.

Warning: Cannot modify header information - headers already sent by (output started at /html/catalog/includes/modules/payment/[url removed, login to view]) in html/catalog/includes/functions/[url removed, login to view] on line 47

The credit cards are processed at the merchant just fine, but we are getting the error when redirecting to a page (We believe). We started getting this after we added the following code to the [url removed, login to view] file mentioned in the error.

exec($cmd, $return_string);

if ( empty($return_string) && $this->logfile) { // using exec no curl errors can be retrieved

error_log("Error from cURL using exec() since there is no $return_stringn", 3, $this->logfile);


if ($this->logfile) {

error_log("IGS RESPONSE using exec(): " . $return_string[0] . "n", 3, $this->logfile);


elseif ($this->use_exec == '1') { // if NOT (function_exists('exec') && $this->use_exec == '1'

if ($this->logfile) {

error_log("Sorry, exec() cannot be calledn", 3, $this->logfile);


} else{ // default behavior: cURL is assumed to be compiled in PHP

// echo "curl command<br>" . $cmd . "<br>";

$ch = curl_init();


curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1);

curl_setopt ($ch, CURLOPT_POST, 1);

curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);


curl_setopt ($ch, CURLOPT_PROXY, "[url removed, login to view]:3128");

curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

if ($this->logfile) {

error_log("IGS REQUEST: " . $return_string . "n", 3, $this->logfile);


$return_string = curl_exec ($ch);

if (curl_errno($ch) && $this->logfile) {

$error_from_curl = sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch));

error_log("Error from cURL: " . $error_from_curl . "n", 3, $this->logfile);


if ($this->logfile) {

error_log("RESPONSE: " . $return_string . "n", 3, $this->logfile);


curl_close ($ch);


Line 47 from the [url removed, login to view] file is:

header('Location: ' . $url);

We need a developer to modify this code to ensure it will work. We do not believe it is due to a space issue of any file as this error usually appears.

Evner: PHP, Indkøbsvogne, Web Design

Se mere: oscommerce code, oscommerce innovative gateway error, oscommerce modify header information headers already sent, programmer on line, programmer code, php programmer on line, php programmer developer, php developer information, php developer code, our code, no code, it developer php, echo design, developer code, code line, code developer, code 1, & code, php return_string, oscommerce code header, oscommerce default coding, oscommerce php code post error, oscommerce error_log, oscommerce innovativephp, default code osc headerphp

Om arbejdsgiveren:
( 1 bedømmelse ) Oakland, United States

Projekt ID: #305162

Tildelt til:


I have read your problem's detail. I think may be the MODULE_PAYMENT_INNOVATIVE_CURL application's problem. I think I can solve it by debug the website online.

$50 USD på 1 dag
(16 bedømmelser)

5 freelancere byder i gennemsnit $77 på dette job


I have developed payment gateway solutions. See by example the demo of a payment services site I just completed at [login to view URL] . I definitely can debug this problem. Flere

$230 USD på 1 dag
(1 bedømmelse)

will do it in few hours.

$30 USD in 0 dage
(0 bedømmelser)

I'll give u solution within 2 hours.

$35 USD in 0 dage
(0 bedømmelser)

Hi, Kindly view PM for details.

$40 USD på 1 dag
(0 bedømmelser)