Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    Jus tfor fun, what version of PHP? Mine is 5.2.3

  2. #12
    Join Date
    Jul 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    Quote Originally Posted by sfatula View Post
    Jus tfor fun, what version of PHP? Mine is 5.2.3

    My site is using PHP 5.2.1

  3. #13
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    Using the foreach-as approach is fine, and is in fact a more efficient construct than the while(list)=each construct. We are moving more toward the foreach approach progressively as code is updated for PHP5.
    Thus, making the change you mentioned will be safe.
    .
    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.

  4. #14
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    Yes, I understand that. My issue is this - how many other times is the construct in question used in the code, and, what impact does it have (since they can break also presumably)? Not knowing the true cause, this is not a good feeling. So, I am updating PHP to the current version, re-testing, and, going to post in some PHP forums.

  5. #15
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    I've tested Zen Cart 1.3.7 on countless servers with varying PHP configurations and never personally encountered the problem reported by regenbauma.
    Even downloading his entire site and putting it on a few of my own servers couldn't recreate the problem he reported ... using the while/list/each code construct.

    It's odd that it only seems to affect the $_POST data and not other arrays.

    If you do find something about it, that will confirm that changing that line will be helpful for your situation.

    Future versions of Zen Cart will have fewer while/list/each constructs in favor of foreach constructs.
    .
    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.

  6. #16
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: POST data is getting lost on the way to actionMultipleAddProduct

    I hope you are not suggesting what I said is not worth it, it is. Yes, I changed the one line long ago. But, as a programmer who has written a few million lines of code in 30 years of programming, it does not end there. There are two paths:
    1. IF the problem turns out to be a PHP bug, then, it is my responsibility to file an official bug report so that the problem can be fixed and not cost tens of thousands of programmers time for whatever odd reason it sometimes happens or
    2. IF the problem turns out to be a real difference in the two constructs, and not a bug, then, I need to go through my Zen Cart code and look for other instances that might have the same construct, and, might not be behaving properly.
    Either way, the problem is far from solved in my book. Simply changing one line that I know is bad and hoping all is ok is not the way to do things. That's all I was saying.

    BTW - I have the problem on TWO servers, which are running two different OSes and two different PHP5 versions (though close). So, I am 2 for 2.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Where are the code that handle the shipping estimator POST data
    By su35 in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2014, 10:05 PM
  2. Replies: 2
    Last Post: 10 Jan 2013, 12:00 AM
  3. Replies: 2
    Last Post: 16 Jun 2011, 04:11 PM
  4. How do I import products in my newly hosted shop if i lost the data on phpmyadmin.
    By Oredayo in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Oct 2010, 02:31 AM
  5. Getting rid of the sample data
    By mojara in forum Basic Configuration
    Replies: 2
    Last Post: 25 May 2010, 07:08 PM

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