iva Posted June 17, 2012 Report Share Posted June 17, 2012 hi, i've a problem with config file downloader! when i try to get config file for FSPAX i get these errors : [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/irvair/public_html/core/modules/Result/Result.php:1) in [b]/home/irvair/public_html/core/classes/Util.class.php[/b] on line [b]58[/b] [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/irvair/public_html/core/modules/Result/Result.php:1) in [b]/home/irvair/public_html/core/classes/Util.class.php[/b] on line [b]59[/b] [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/irvair/public_html/core/modules/Result/Result.php:1) in [b]/home/irvair/public_html/core/classes/Util.class.php[/b] on line [b]60[/b] menu_name=مرجع پرواز آنلاین ایران | Ira; base_url=http://www.irva.ir; path_stats=index.php/acars; path_export=action.php/acars/fspax; username=IVA0001; password=none; and i know these related to some lines of util.class : # Set the headers so the browser things a file is being sent header('Content-Type: '.$mime_type); header('Content-Disposition: attachment; filename="'.$save_as.'"'); header('Content-Length: ' . strlen($contents)); but i can't find the prob!? i also got same errors for FS Flight Keeper config file! if anyone can help me ... thanks a lot... Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 17, 2012 Administrators Report Share Posted June 17, 2012 The Cannot modify header information - headers already sent error is almost always caused by introducing white space or characters into a core php file prior to the opening php tag or after the closing tag. Take a look at any of the core files that you have edited and look for white space or a random character in these locations. The error is reporting that it is in Result.php but that may not be correct as the error will carry through a few files before it is displayed sometimes. There are also a number of threads in the forum from previous posters that have had the same problem if you search "Cannot modify header information" Quote Link to comment Share on other sites More sharing options...
iva Posted June 18, 2012 Author Report Share Posted June 18, 2012 thanks simpilot, I used the " NOTEPAD++ " and re-encoded all my modules from "UTF-8" to "UTF-8 without BOM" ,and all my header errors gone! this is the only way to solve such errors thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.