Warning: Cannot modify header information - ERROR

Whenever I install or uninstall any modules, I get several error messages at the top of the admin page. The installation or uninstallation is completed successfully, but I always get several error messages that begin as:

 

"Warning: Can not modify header information - headers already sent by ...."

 

Does anyone know why? And how do I fix this?

 

Thank you!

 

Peter

Quote · 17 Aug 2013

Need the full error. As that tells you where to look. Where you chopped it off with the ... is were you actually need to be looking.

Chances are you made a modification to one of the files and extra white space exists either at the top of the file or bottom or the file was saved in UTF-8 with a BOM which should not have a BOM or a source change was not properly done.

https://www.deanbassett.com
Quote · 17 Aug 2013

Hi!!!

Example of the error that appears when I uninstall the sound module.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 299

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 299

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 299

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 299

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/classes/BxDolInstaller.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/<mysite>/public_html/modules/boonex/sounds/install/langs/pb.php:1) in /home/<mysite>/public_html/inc/admin_design.inc.php on line 48

 

pb.php is my language file. He was saved in UTF-8, as explained in the instructions for how to translate dolphin.

 

Is this the problem?

Quote · 17 Aug 2013

Perhaps. The problem could also be in the last file mentioned. Last error line.

Instructions may have said UTF-8. Which is correct, but there are two formats for UTF-8. One with a bom, and one without. The files cannot include a bom.

Also the files cannot contain any blank spaces before the opening <?php tag or after the closing ?> php tag.



https://www.deanbassett.com
Quote · 17 Aug 2013

I went to change the default language to English again, and when I clicked save changes, I got the message:

 

Possible security attack!! All data has been collected and sent to the site owner for analysis.

 

Came File: / administration / lang_file.php

 

I do not understand. My site is new and has not been released yet, has no members. How can I be under attack? And why this warning was given to me only when you click to change the default language?

Quote · 17 Aug 2013

That's a separate issue.

And changing the language to English will not fix it. When you compile, the files are still there and will be run even if English is the default.

As for the security warning. In the advanced settings of dolphin under security there are two settings which by default are set to -1 for disabled.

Breach impact threshold for report:    
Breach impact threshold for report and block:

Did you by any change change those settings?

https://www.deanbassett.com
Quote · 17 Aug 2013

Hi Deano!! Thanks man!!!

 

The problem was the "BOM"! Now I used Notepad++ to format in UTF-8 without BOM, and now I can install and uninstall the module without error appears!

Thank you very much!

 

As the security settings, I did not change them. But I now see what settings are. Maybe some module has automatically changed.

Quote · 17 Aug 2013

In the security settings, the two are at -1.

Does any module that I installed may be picking up data from my site and so I got this warning?

Quote · 17 Aug 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.