Export File Unreadable
-
Downloaded export file to see format as sample before uploading additional users and the file contains unreadable characters. Shows same unreadable characters when opening as .csv file or with text editor. Something I missed during setup or could the database character set be incorrect? Thoughts?
-
This is strange, could you show us an example?
Sure, do you want a file or try to post the text here?
Also a screenshot can be useful.
How can I post a picture?
Here’s a sample of the code:
`ãÕV[o€6~ÔØåbË !u≥‰†@∑Æ[ª¶›ä›Ú$Pe≥¶%ç§Ï∏Eˇ˚IKvba¿Ü=¨@Ò‹o¸xz≈d.⁄oPo>ŸñrÅfi¸‡NU }5ºd’I thought maybe the character or collation was the issue but I can export the users as readable csv files in two other plug ins and directly from mysql as csv files without issue.
I don’t think so, charset or collation won’t affect it because we use WP API.
Have you activated log to see if there is some problem?
Error log 1:
[19-Feb-2020 21:22:07 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:24:52 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:24:53 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:24:55 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:25:02 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:25:07 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:25:10 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4552
[19-Feb-2020 21:25:13 UTC] PHP Notice: get_user_meta( $user_id, ‘last_activity’ ) was called incorrectly. User last_activity data is no longer stored in usermeta. Use bp_get_user_last_activity() instead. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/XXXXXXXXXX/public_html/wp-includes/functions.php on line 4986So I changed php.ini to zlib.output_compression = Off but I don’t think this is the best solution.
See https://stackoverflow.com/questions/38693992/notice-ob-end-flush-failed-to-send-buffer-of-zlib-output-compression-1-inRan export (with zlib.output_compression = Off) and new browser window with readable code but failed to create a downloadable csv file.
Error Log 2
[19-Feb-2020 21:30:47 UTC] PHP Notice: get_user_meta( $user_id, ‘last_activity’ ) was called incorrectly. User last_activity data is no longer stored in usermeta. Use bp_get_user_last_activity() instead. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/XXXXXXXXXXXXX/public_html/wp-includes/functions.php on line 4986
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 188
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 189
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 190
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 191
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 192
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 193
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 194
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 195
[19-Feb-2020 21:30:47 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php:92) in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 196
[19-Feb-2020 21:30:47 UTC] PHP Notice: ob_clean(): failed to delete buffer. No buffer to delete in /home/XXXXXXXXXXXXX/public_html/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 198Thoughts?
It seems like you have some problem in another file in WordPress that throws some kind of echo. So the file being generated by the plugin, is corrupted by this.
Look at Cannot modify header information for example, there is some echo before the header() we call.
Check your plugins, theme and installation and when the echo before header disappear it must work.
The topic ‘Export File Unreadable’ is closed to new replies.