Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: hang on checkout_payment page after downgrading PHP version

    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?


    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: hang on checkout_payment page after downgrading PHP version

    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!

  4. #4
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: hang on checkout_payment page after downgrading PHP version

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: hang on checkout_payment page after downgrading PHP version

    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.

 

 

Similar Threads

  1. v151 Problem installing BIPS Bitcoin plugin
    By liz5384 in forum Addon Payment Modules
    Replies: 1
    Last Post: 22 Apr 2015, 10:40 AM
  2. Replies: 6
    Last Post: 18 May 2010, 08:23 AM
  3. install hang on license page
    By meshgraphics in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 29 Jan 2009, 03:45 PM
  4. hang between header and page
    By j-m in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 15 Jan 2007, 01:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR