Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Cannot modify header information - headers already sent by ... in export.files.php . File export Zip, building wrong folder structure #16671

Closed
xusdeejay opened this issue Mar 14, 2021 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@xusdeejay
Copy link

xusdeejay commented Mar 14, 2021

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

  • Version: [Dolibarr 13.0.1]
  • OS: [Linux info 3.0 fix : typo #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux]
  • Web server: [Apache]
  • PHP: [PHP 7.3.27]
  • Database: [MySQL or MariaDB 5.5.60-0+deb7u1]
  • URL(s): [https://dolibar/admin/tools/dolibarr_export.php]

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

@xusdeejay xusdeejay added the Bug This is a bug (something does not work as expected) label Mar 14, 2021
@xusdeejay xusdeejay changed the title Warning: Cannot modify header information - headers already sent by (output started at /homepages/20/bd000001/htdocs/midominio/dolibarr/core/lib/files.lib.php:2167) in /homepages/20/d725887478/htdocs/midominio/dolibarr/admin/tools/export_files.php on line 172 Warning: Cannot modify header information - headers already sent by ... in export.files.php Mar 14, 2021
@xusdeejay xusdeejay changed the title Warning: Cannot modify header information - headers already sent by ... in export.files.php Warning: Cannot modify header information - headers already sent by ... in export.files.php . Building wrong folder structure Mar 15, 2021
@xusdeejay xusdeejay changed the title Warning: Cannot modify header information - headers already sent by ... in export.files.php . Building wrong folder structure Warning: Cannot modify header information - headers already sent by ... in export.files.php . File export Zip, building wrong folder structure Mar 15, 2021
@eldy eldy closed this as completed in 614720f Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant