Warning: Cannot modify header information - headers already sent by ... in export.files.php . File export Zip, building wrong folder structure #16671
Labels
Bug
This is a bug (something does not work as expected)
Bug
[export_files.php Warning: preg_match(): Unknown modifier ']' in /homepages/20//htdocs//dolibar/core/lib/files.lib.php on line 2167
Warning: Cannot modify header information - headers already sent by (output started at /homepages/20//htdocs//dolibar/core/lib/files.lib.php:2167) in /homepages/20//htdocs//dolibar/admin/tools/export_files.php on line 172]
Environment
Expected and actual behavior
[Warning: preg_match(): Unknown modifier ']' in /homepages/20//htdocs/*/dolibarr/core/lib/files.lib.php on line 2167
Warning: Cannot modify header information - headers already sent by (output started at /homepages/20//htdocs//dolibarr/core/lib/files.lib.php:2167) in /homepages/20//htdocs//dolibarr/admin/tools/export_files.php on line 172*]
Steps to reproduce the behavior
[When exporting step 2 in zip backup.
Proposed solution:
add 'ob_start();' line 75 to wait for the script to finish to send the header but the resulting zip file is wrong;]
[Attached files]
export_files.zip
The text was updated successfully, but these errors were encountered: