Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have tried to recreate this problem using triggers, manually, changing server settings, doing my very best to #$%&amp; things up, using different data sizes but I never ever got only half a request in PHP. Simply because apache will not invoke PHP untill the request is completely done. See <a href="https://stackoverflow.com/questions/9991345/reading-chunked-post-data-in-php">this question about Reading “chunked” POST data in PHP</a></p> <p>So the only thing that can go wrong is that Jquery only gathers part of the data and then makes a POST request. Using just <code>$.post('save.php', data)</code> as you mentioned, that wont happen. Its either working to gather the data or its waiting for a response from the server. </p> <p>If you switch sites during the gathering, there wont be a request. And if you switch after the request has been made and you move away quickly, before all data has been transmitted, the apache server will see it as half a request and wont invoke PHP.</p> <p>Some suggestions:</p> <p>Is it possible that you are using seperate pages for succesfull and partial requests? Because PHP does only add the first 1000 elements to <code>$_POST</code> and perhaps the failed requests have more then <code>data1000=data</code> elements? So there wont be an EOF param.</p> <p>Is it possible that you are gathering the data in a global var in javascript and have an onbeforeunload method that sends data as well? Because then there might only be half the data in the POST.</p> <p>Can you share some information on the data you are seding? Are there a lot of small elements (like data1 till data10000) or a few large once? </p> <p>Is it always the same element that you receive last? Like always data6 as you mention? Because if it is, the chances of a failed attempt always at the exact same dataN field would be very slim.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload