vkotek
Forum Replies Created
-
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueWhere do I find this information?
I won’t be able to get it from the client’s server, but I just tried it on my hosting which is running Linux and exports are still getting trimmed at the end! (but the website is still the same, my server was running the draft site)
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueAfter digging around I found the same issue in another plugin’s support forum. They claim the filesize() is 1 octet smaller and fixed it simply by adding a +1. Like so:
header("Content-Length: ".filesize($file)+1);Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueI tested my hypothesis that the content-length’s filesize() might be cutting the download short. When I disabled the content length line, the downloaded file is complete.
Some browsers might not like this, but it seems to work as a temporary workaround for now.
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueI added the line as shown below but then the popup with the download just remains opened and now download happens.
if ( ! isset( $_GET['export'] ) || empty( $_GET['export'] ) || ! file_exists( $file ) ) { wp_die( 'File not found.' ); } wp_redirect( str_replace( WP_ADMIN_UI_EXPORT_DIR, WP_ADMIN_UI_EXPORT_URL, $file ) ); die(); // required for IE, otherwise Content-disposition is ignored if ( ini_get( 'zlib.output_compression' ) ) { ini_set('zlib.output_compression','Off'); }Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueYes, there are Czech characters (latin-extended)
PS: just tried an export that includes only English characters and still missing the 3 characters at the end.
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueIncreasing the limit did not help.
It seems that there are 3 characters missing at the end of the file regardless of the export size and format.
I’m a total php noob but maybe the filesize() passed in the headers is lower then it should be? I would not be surprised if this is the fault of the IIS and Win server, I’ve had so many problems with it at every step.
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueYour suspicion was right, it seems that the FTP files in the /exports folder are in fact complete!
I’m using Chrome but get the same issue with IE. The server is Win Server 2008.
Are you not able to replicate this error?
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueIt is happening across all the export formats for me.
The reason XML contains all the values is because it does not trim end last few values, but characters of the actual file. So for XML, the last line is “</it” instead of “</item>”.
The JSON API isnt working for me either, loads a blank screen, it could be because of the missing characters too.
Forum: Plugins
In reply to: [Exports and Reports] 222-record report missing very last valueHello, I am experiencing the same issue; a few characters missing at the end of the CSV export. I am dependent on this feature, so a fix would be really appreciated! (it is a fantastic plugin!)
PS: I also have two empty rows in each CSV export, I’m not sure if this is intentional or perhaps related.
Thank you,
Vojta