Project Detail

PHP / osCommerce code help  

PHP / osCommerce code help is project number 305162
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: sharemin

Budget: $30-250

Created: 08/24/2008 at 21:58 EDT

Bid Count: 5

Average Bid:
$ 77

10/23/2008 at 21:58 EDT

Project Creator: ppte
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (1 reviews)

Bid On This Project
 

Description

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/innovative.php:460) in html/catalog/includes/functions/general.php 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 innovative.php 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_URL, MODULE_PAYMENT_INNOVATIVE_URL);
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, "https://proxy.shr.secureserver.net: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 general.php 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.


Additional files submitted:
innovative.php
general.php

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

1 day

08-24-2008 23:13 EDT

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.

help

 

40

1 day

08-25-2008 09:09 EDT

Hi, Kindly view PM for details.

help

 

230

1 day

08-25-2008 09:36 EDT

I have developed payment gateway solutions. See by example the demo of a payment services site I just completed at http://www.electronics-software.com/MBtest/MifraBillTestSite . I definitely can debug this problem. Do consider this needs to be done on a temp copy of the affected files running in a gateway demo mode so as not to shut down the site. All gateways (I have seen at least) provide this capability. Thus I can resolve and most important do have a safe method to carry out the task.

help

 

30

0 days

08-25-2008 07:22 EDT

(No Feedback Yet)

will do it in few hours.

help

 

35

0 days

08-25-2008 01:20 EDT

(No Feedback Yet)

I'll give u solution within 2 hours.

help


    Bid on this Project