Forums / Built-in Shipping and Payment Modules / Blank Page when continue checkout

Blank Page when continue checkout

Locked

Views: 1,564

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Oct 2009, 1:35 AM
#1
scottwww1 avatar

scottwww1

New Zenner

Join Date:
Jun 2009
Location:
Otorohanga, New Zealand
Posts:
25
Plugin Contributions:
0

Blank Page when continue checkout

I have used the "enable_error_logging.php" file and here is the info from the txt file in the cache folder

[01-Oct-2009 20:29:28] PHP Fatal error: Cannot use object of type queryFactoryResult as array in /home/baitboar/public_html/includes/modules/payment/paymate.php on line 47

the paymate.php file shows

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYMATE_ZONE > 0) ) {
    $check_flag = false;
    $check_query = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYMATE_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
    while (!$check_query->EOF) {
      if ($check_query['zone_id'] < 1) {
        $check_flag = true;
        break;
      } elseif ($check_query['zone_id'] == $order->billing['zone_id']) {
        $check_flag = true;
        break;
        $check_query->MoveNext();

Red area is line 47

any help would be great thanks, it is happening on a few websites now

Richard

2 Oct 2009, 2:00 AM
#2
scottwww1 avatar

scottwww1

New Zenner

Join Date:
Jun 2009
Location:
Otorohanga, New Zealand
Posts:
25
Plugin Contributions:
0

Re: Blank Page when continue checkout

Found this from a old post I had posted

http://www.zen-cart.com/forum/showthread.php?t=134192

Your problem is directly related to your payment module ... it's evidently got several errors in it.

Namely it's not utilizing the correct syntax when making database calls.

For example, all the references to $check_query['FIELD_NAME_HERE'] should be $check_query->fields['FIELD_NAME_HERE']

I'm guessing that the same error likely occurs elsewhere in the same module.

I have added this into 2 areas of the Paymate Payment Module

Thanks
Richard Scott
:blush:

2 Oct 2009, 3:47 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank Page when continue checkout

You show at least two references to the:
$check_query['FIELD_NAME_HERE']

and they should all be $check_query->fields['FIELD_NAME_HERE'] ...

You may also need at the start of that function:
global $db;

if it is not already there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Jun 2010, 9:52 AM
#4
jezndi avatar

jezndi

New Zenner

Join Date:
Jun 2010
Posts:
1
Plugin Contributions:
0

Re: Blank Page when continue checkout

This is exactly the problem I've been experiencing with a fresh install of 1.3.9d. I installed the paymate module 1.0.1 from
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=999

Were it not for the debug that's appearing in the cache folder, I'd have been lost on this one.

I've fixed the two instances on lines 47 and 50 and the module now works.

I might suggest that that module was written for PHP 4, and could probably do with an overhaul to bring it up to PHP5 standards.

8 Jul 2010, 5:43 AM
#5
sancho avatar

sancho

New Zenner

Join Date:
Jun 2009
Posts:
39
Plugin Contributions:
0

Re: Blank Page when continue checkout

I have emailed them and have no response yet :(

My issue is the orders arnt coming through to me, the emails come withtn he customers details but no actual items are on there and the orders do not show in zen cart admin :| Any ideas anyone?