⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Upload file (Cannot modify header information)



midnigther
  • profile picture
  • Member

Posted 02 September 2012 - 18:31 PM

I can't upload files with set_field_upload, firebug show me this error:


<p>Severity: Warning</p>
<p>Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/sgre/sgre/assets/grocery_crud/languages/pt-pt.portuguese.php:1)</p>
<p>Filename: libraries/grocery_crud.php</p>
<p>Line Number: 1215</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">


The upload path is setted with 0777.
Any suggestion?

victor
  • profile picture
  • Member

Posted 03 September 2012 - 06:38 AM

Hello! Open this language file and you will see that in the beginning of the code is an extra symbol.


  п»ї <?php



delete this symbol (п»ї) and be happy! :). And i see that this file has bugs in translation.

victor
  • profile picture
  • Member

Posted 03 September 2012 - 06:47 AM

helped you?

midnigther
  • profile picture
  • Member

Posted 03 September 2012 - 20:34 PM

Nop, There are no symbols.

victor
  • profile picture
  • Member

Posted 03 September 2012 - 21:36 PM

This file is encoded in UTF-8 with BOM.
you need to change the charset to UTF-8 without BOM

victor
  • profile picture
  • Member

Posted 03 September 2012 - 21:38 PM

if you have problem with this I may send you mail with this file.

midnigther
  • profile picture
  • Member

Posted 12 September 2012 - 20:55 PM

Thanks victor, the file has been formatted with UTF-8 with BOM, I change the format type and it's solved my problem.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 12 September 2012 - 22:36 PM

Thanks guys I changed it to the repository too at: https://github.com/s...aa52b62e39f2a27
I will check all the language files for this type of error. Thanks [member='victor'] for the help.

I will have it in mind to check the translation files before committing.

[b]Update: [/b]I have found other two files with BOM: https://github.com/scoumbourdis/grocery-crud/commit/866cb73335f23aa6462482262d76624676e1353d