If i enable Checkout menu item and click on the link "checkout/process" i get an endless loop.

Comments

cgarvis’s picture

I also have this same bug. I running the latest drupal 5.7 on a local XAMP.

cgarvis’s picture

I think I have hunted down the problem. I'm using the Paypal Pro as the gateway and it seems that the connection to paypal is erroring out and the module doesn't know how to handle this. The problem is in "paypal_api_comms":

function paypal_api_comms($method, $params) {
  $values = array(
    'USER' => paypal_variable_get('paypal_api_username', ''),
    'PWD' => paypal_variable_get('paypal_api_password', ''),
    'VERSION' => '3.2',
    'SIGNATURE' => paypal_variable_get('paypal_api_signature', ''),
    'METHOD' => $method,
  );

  $values+= $params;

  $url = url(paypal_variable_get('paypal_api_url', 'https://api-3t.paypal.com/nvp'), ec_receipt_query_string_encode($values));

  $ret = drupal_http_request($url);

  parse_str(str_replace("\n", '', $ret->data), $response);

  return $response;
}

So the problem is happening at: parse_str(str_replace("\n", '', $ret->data), $response);
The response is returning the object $ret as:

stdClass Object
(
    [error] => 137633144 Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
    [code] => -137633144
)
hass’s picture

A drupal_http_request response should every time be checked for status code 200 to be save...

sodani’s picture

I'm getting this problem too. I've tried on 2 different environments (local and remote) and am getting the same thing. One thing I've noticed is that there's no where to enter in your paypal account information - I believe this is crucial for it to redirect to paypal.com properly. Perhaps this is part of the problem.

sodani’s picture

Actually, I just tried with the Authorize.net payment gateway and I'm getting the same result, so I guess the problem wasn't with the paypal module...

matt@antinomia’s picture

Subscribing...

I'm getting an endless redirect loop when I click the "Place your order" button, whether I have Auth.net, COD, or no payment method enabled. Using 5.x-4.x-dev.

cgarvis’s picture

If you are using XAMP, then XAMP is your problem. XAMP has issues with OpenSSL and PHP. Still this function should catch the error thrown by drupal_http_request.

cbernick’s picture

Has anyone been able to figure this out? This error is a total roadblock for me being able to stand up DrupalECommerce for my site.

Thanks.

Anonymous’s picture

I too am getting this error.
I have Drupal 5.7 with the cart and checkout modules, but without any payment modules enabled.

Anonymous’s picture

Priority: Normal » Critical

Forgive me if I'm doing the wrong thing, but I changed the priority to critical as I can't use my ecommerce site until this gets fixed...

shunshifu’s picture

same issue here

jonathan_hunt’s picture

Haven't tried ec-4.x yet, but is this 'normal' caching issue on 3.4 relevant? http://drupal.org/user/28976

Anonymous’s picture

Status: Active » Closed (fixed)
hass’s picture

Is this bug fixed?

mo6’s picture

Try to disable caching in Drupal and see if this fixes the problem.