Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / DeBug-Log file created on every order for Malformed value for session-based shipping

DeBug-Log file created on every order for Malformed value for session-based shipping

Views: 16,955

Results 21 to 26 of 26
27 Apr 2022, 7:03 AM
#21
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

DeBug-Log file created on every order for Malformed value for session-based shipping

lat9:

What shipping modules are enabled?

Just Advanced Shipper on my site.

27 May 2022, 9:42 PM
#22
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

Re: DeBug-Log file created on every order for Malformed value for session-based shipping

twitchtoo:

Debug Log:
[18-May-2021 02:23:21 America/Chicago] PHP Notice: Malformed value for session-based shipping module; customer will need to re-select: false in includes/classes/order.php on line 327

Suggested fix at least for this variant of the issue:

https://github.com/zencart/zencart/pull/4829

19 Jul 2022, 1:46 PM
#23
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
365
Plugin Contributions:
0

Re: DeBug-Log file created on every order for Malformed value for session-based shipping

Update: Unfortunately, I still received another debug log after I used the fix mentioned above. This log is triggered by the table.php. I'm using the table.php based on version $Id: DrByte 2020 Sep 29 Modified in v1.5.7a (from zc 1.57d). This issue is intermitted. Typically I will receive one log once per month or so.

[12-Jul-2022 11:12:32 America/New_York] PHP Notice: Malformed value for session-based shipping module; customer will need to re-select: {"id":"","title":"Table Rate (Best Way)","cost":76.9899999999999948840923025272786617279052734375} in /public_html/includes/classes/order.php on line 324

Line 324 is the following:
trigger_error('Malformed value for session-based shipping module; customer will need to re-select: ' . json_encode($_SESSION['shipping']), E_USER_NOTICE);

My site (v1.57d) doesn't offer free shipping option.

The shipping methods my site offers are the following:

fedexwebservices
storepickup
table
usps

Here are the payment methods:
paypal express
paypal payment pro

I'm currently using OPC plug-in, but I still received this intermittent issue before I installed OPC.

21 Jul 2022, 2:14 PM
#24
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
365
Plugin Contributions:
0

Re: DeBug-Log file created on every order for Malformed value for session-based shipping

Update. I just noticed that zc 1.5.8 Alpha was just released. I uploaded the table.php file from it to my site (direct link). It seems working without log files, and I will report if this issue happens again.

8 Aug 2022, 8:10 PM
#25
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
365
Plugin Contributions:
0

Re: DeBug-Log file created on every order for Malformed value for session-based shipping

One more update. Today I received the same error again. So the table.php from zc 1.5.8 Alpha does not fix this intermittent issue.

7 Feb 2024, 3:33 AM
#26
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: DeBug-Log file created on every order for Malformed value for session-based shipping

I'm guessing this is a dead issue, but I'll report anyway.

Just upgraded from 156 to 157d and am getting this error.

It occurs regularly and is triggered by two possibilities.

BTW my options are store pickup and zipship.

If the customer changes the address to successfully make zipship an option then I get the error.

Or if I select store pickup, then press continue, the error is also then triggered.