Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

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

    On every order placed, there is a debug file created for: PHP Notice: Malformed value for session-based shipping module; customer will need to re-select: false in /includes/classes/order.php on line 322

    I cannot track down whats causing the error.
    Using 1.5.7a PHP v7.3.21 (Zend: 3.3.21)

    Using the shipping mod "StorePickup"
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

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

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

    Shipping modules are supposed to set the $_SESSION['shipping'] to an array of details, starting with the data POSTed by the customer's selections during checkout.
    In your case, 'false' is being set instead.

    So ... something is setting the shipping method to an invalid format.

    I just tried to replicate the problem, without success, as follows:

    v157a PHP 7.4.12
    fresh install, demo data
    Store Pickup module enabled (tested it with just the default "Walk In" for the pickup name, and also with custom choices with prices; no difference in outcome)
    added "Sample of Product General" to cart
    went thru checkout with Store Pickup and Check/MoneyOrder
    Success
    No errors (except for email failing, because this test site intentionally has no email set up, but it proves that it is properly logging errors if they do occur).

    This suggests that the problem is in either the way your site's code is different from a fresh install, or the steps taken to get to/thru checkout. Or maybe configuration settings of store or products.
    .

    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
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

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

    Thank you for the reply!
    It started happening with 1.5.7 after I added a 2nd address for selecting a pickup location. I then upgraded last night to 1.5.7a hoping to fix it.
    I could try uninstalling the shipping mod and reinstalling it? Or do you think this a file modified somewhere? ... or missing?
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

    When I added a 2nd address (actually 3) to test, I just copy-pasted the example:

    Sunnyside,4.00;Lee Park,5.00;High Street,0.00

    How is yours different?
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

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

    FIGURED OUT WHATS CAUSING THE ERROR.... If a customer FAILS to select a pickup location using the Store Pickup shipping mod, its causing the debug error.

    Every time I attempted to click CONTINUE from Step 1 to Step 2, it reloads step 1 page for mandatory selection of pickup location.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  6. #6
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    When I added a 2nd address (actually 3) to test, I just copy-pasted the example:

    Sunnyside,4.00;Lee Park,5.00;High Street,0.00

    How is yours different?
    Ahhh... I am not including ANY value with the option, as it's 0. Should I add the 0.00 to the addresses?

    CURRENTLY
    Oak Park Temple - 1235 N Harlem Ave - River Forest; (Alternate pickup location for Thanksgiving Meal ONLY) Beat Mix Music - 3200 Doolittle Dr - Northbrook
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

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

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

    Quote Originally Posted by Carbonless View Post
    Ahhh... I am not including ANY value with the option, as it's 0. Should I add the 0.00 to the addresses?

    CURRENTLY
    Oak Park Temple - 1235 N Harlem Ave - River Forest; (Alternate pickup location for Thanksgiving Meal ONLY) Beat Mix Music - 3200 Doolittle Dr - Northbrook
    No, if it's 0 then the price is not necessary as long as locations are separated by semicolons.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

    Quote Originally Posted by Carbonless View Post
    If a customer FAILS to select a pickup location using the Store Pickup shipping mod, its causing the debug error.

    Every time I attempted to click CONTINUE from Step 1 to Step 2, it reloads step 1 page for mandatory selection of pickup location.
    I'm not getting any logs in this situation. Just a quiet reload of Step 1
    .

    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.

  9. #9
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    I'm not getting any logs in this situation. Just a quiet reload of Step 1
    Over the holiday, I'll attempt to delete the shipping mod and then redo it to see if that clears it. I think somewhere I edited one of the files to change the wording displayed in the checkout process... I may have deleted an extra character or entered a character misinterpreted.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

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

    I have seen this a few times as well - will monitor and report back on findings.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v155 Log files being created every couple of minutes
    By Congerman in forum General Questions
    Replies: 12
    Last Post: 17 Feb 2019, 05:22 PM
  2. v151 How to debug when NO ERROR LOG file created?
    By Jeff_Mash in forum General Questions
    Replies: 8
    Last Post: 24 Jan 2014, 10:50 PM
  3. Shipping Costs based on Total Value for individual cartons
    By sivivatu in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jun 2009, 05:37 PM
  4. Where is the log file when you set Debug Mode to "Log File"?
    By alicia1234 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 1 Feb 2009, 12:05 AM
  5. Create a text file for every order
    By ryudice in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 May 2008, 05:46 PM

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