If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Troubleshooting - checkout_confirmation - Step 3 of 3

Troubleshooting - checkout_confirmation - Step 3 of 3

Started by amandarm on 13 Mar 2015, 2:07 PM · Views: 582

Results 1 to 8 of 8
13 Mar 2015, 2:07 PM
#1
amandarm avatar

amandarm

New Zenner

Join Date:
Feb 2015
Location:
Hotchkiss, CO
Posts:
15
Plugin Contributions:
0

Post #1 by amandarm

Hi Everyone,

Could I possibly get another set of eyes. There seems to be something not closed on my checkout_confirmation page as the right sidebar and footer have gone missing. Any help spotting the problem would be most appreciated.

ZC Version: 1.5.1
Site: http://metimemelts.com/

Problem - Step 3 of 3 (Checkout Confirmation)

Thanks,
Amanda

13 Mar 2015, 2:11 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #2 by lat9

Look in your store's /logs folder; there will be a myDEBUG*.log file that identifies the source of the "partial whitescreen" issue.

13 Mar 2015, 2:19 PM
#3
amandarm avatar

amandarm

New Zenner

Join Date:
Feb 2015
Location:
Hotchkiss, CO
Posts:
15
Plugin Contributions:
0

Post #3 by amandarm

The log shows me this:

PHP Fatal error: Function name must be a string in /home/metime5/public_html/includes/modules/payment/paypal/paypal_functions.php on line 919

So I look and the php file in that area says:

// check subtotals
if ((strval($optionsST['subtotal']) > 0 && strval($subTotalLI) > 0 && strval($subTotalLI) != strval($optionsST['subtotal'])) || strval($subTotalLI) - strval($sumOfLineItems) != 0) {
$ipn_logging('getLineItemDetails 5', 'Line-item subtotals do not add up properly. Line-item-details skipped.' . "\n" . strval($sumOfLineItems) . ' ' . strval($subTotalLI) . ' ' . print_r(array_merge($optionsST, $optionsLI), true));
$optionsLI = array();
$optionsLI["item_name_0"] = MODULE_PAYMENT_PAYPAL_PURCHASE_DESCRIPTION_TITLE;
$optionsLI["amount_0"] = $sumOfLineItems = $subTotalLI = $optionsST['subtotal'];
}

I'm not sure how to fix this.

13 Mar 2015, 2:55 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #4 by rodg

amandarm:

The log shows me this:

PHP Fatal error: Function name must be a string in /home/metime5/public_html/includes/modules/payment/paypal/paypal_functions.php on line 919

So I look and the php file in that area says:

// check subtotals
if ((strval($optionsST['subtotal']) > 0 && strval($subTotalLI) > 0 && strval($subTotalLI) != strval($optionsST['subtotal'])) || strval($subTotalLI) - strval($sumOfLineItems) != 0) {
$ipn_logging('getLineItemDetails 5', 'Line-item subtotals do not add up properly. Line-item-details skipped.' . "\n" . strval($sumOfLineItems) . ' ' . strval($subTotalLI) . ' ' . print_r(array_merge($optionsST, $optionsLI), true));
$optionsLI = array();
$optionsLI["item_name_0"] = MODULE_PAYMENT_PAYPAL_PURCHASE_DESCRIPTION_TITLE;
$optionsLI["amount_0"] = $sumOfLineItems = $subTotalLI = $optionsST['subtotal'];
}

I'm not sure how to fix this.

This looks like a small typo/error/bug in the code.

See the $ symbol that I've highlighted? Good. Just remove the $ and resave the file.

Cheers
RodG

ps. Devs please take note. This 'bug' exists in V1.5.3 & 1.5.4 (haven't checked other versions)
pss. I see that this is already known http://www.zen-cart.com/showthread.php?210886-Paypal-Standard-Need-some-major-Help

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

13 Mar 2015, 3:04 PM
#5
amandarm avatar

amandarm

New Zenner

Join Date:
Feb 2015
Location:
Hotchkiss, CO
Posts:
15
Plugin Contributions:
0

Post #5 by amandarm

OMG...You're AWESOME!!! Thanks so much. My customer will be thrilled!!! :)

13 Mar 2015, 3:08 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #6 by lat9

RodG beat me to it ...

13 Mar 2015, 3:12 PM
#7
amandarm avatar

amandarm

New Zenner

Join Date:
Feb 2015
Location:
Hotchkiss, CO
Posts:
15
Plugin Contributions:
0

Post #7 by amandarm

You're awesome too...thanks for all ya'lls help. :)

13 Mar 2015, 3:40 PM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #8 by rodg

amandarm:

OMG...You're AWESOME!!!

No more than many others around here. I just happened to be the 1st to respond, and I was only able to identify this because you'd already followed up on lat9's suggestion. :) Thanks anyway. :-)

amandarm:

Thanks so much. My customer will be thrilled!!! :)

After reading the other thread (that I posted a link to), this problem would only occur if PayPal IPN was being used, so if you want to thrill your customer even more, I'd strongly suggest that you recommend they do away with IPN and use PayPal Express instead.

PPE has many benefits over the somewhat obsolete IPN method (and no downside).

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.