Forums / Addon Payment Modules / hang on checkout_payment page - bitcoin problem

hang on checkout_payment page - bitcoin problem

Views: 1,911

Results 1 to 5 of 5
14 May 2013, 6:36 PM
#1
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

hang on checkout_payment page - bitcoin problem

On the advice of my webhost to try to get a cron job script to work, I followed their instructions to switch my PHP version from 5.3 to 5.2. Doing so appears to have broken zencart.

It appears to work at first, but it hangs at this point:

file
includes/templates/mistik/templates/tpl_checkout_payment_default.php

line
$order_totals = $order_total_modules->process();

First, is there any known issue that could cause the page to hang here?

Below are the changes my webhost had me make to switch from PHP 5.3 to 5.2:

Add this line to htaccess:

AddHandler application/x-httpd-php52 .php

Run these commands in shell:

cp /usr/local/php52/lib/php.ini ~/php.ini
echo "SuPHP_ConfigPath $HOME" >> ~/public_html/.htaccess

To reverse the changes, I deleted php.ini and removed the new lines from .htaccess. No effect, still hangs on the payment page.

My webhost is of no help so far. They say everything looks good.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

14 May 2013, 6:59 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: hang on checkout_payment page - bitcoin problem

  1. What exactly do you mean by "hanging"? Are you getting some choking sound coming through your computer speakers? Getting a blank page? Getting an error on-screen?
    :eek:

  2. How exactly do you know that it's "hanging" on that particular line?

  3. And if it is actually having a problem on that line, then it means it's having trouble processing the active order-total modules (as you can tell by the PHP code you quoted). So this begs the question of which order-total modules you've enabled, and which ones you've added onto your store. (Yes, that gets into the many Posting Tips questions which shows when you post a new thread on the forum ... please answer those when posting!!!!!! It's very hard to give useful answers without having the context, without knowing the big picture about your site.)

  4. And there should be something in the error logs. As you know, in v1.3.9 the /cache/ folder will contain myDebug-xxxxxxx.log files disclosing your PHP errors. What's showing there when this "hanging" occurs?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2013, 7:28 PM
#3
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: hang on checkout_payment page - bitcoin problem

Thanks for the reply!

What I meant was the page output stops just before that line.

As I looked into your questions, I checked the debug logs as you suggested (didn't even know about those!) and it was my custom bitcoin order total module that was going haywire. So I removed it and everything is great!

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

14 May 2013, 7:48 PM
#4
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: hang on checkout_payment page - bitcoin problem

Just to add more details, the bitcoin module had communication problems with the mtgox server, and I didn't have enough error handling, so it broke the whole thing. The PHP switch was totally coincidental, I think.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

14 May 2013, 9:25 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: hang on checkout_payment page - bitcoin problem

Glad you found the root cause!

You might contact the bitcoin module author to have them build in some functionality to gracefully fail or disable itself if communication problems like that happen, similar perhaps to the way the UPS or USPS shipping modules simply say "sorry, this option isn't available at this moment" when communication times out ... instead of crashing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.