Heater problem - can't find any white spaces |
[eluser]überfuzz[/eluser]
I'm tinkering with a site that's quite old by now. It's based on codeigniter 1.7. Now I get this message: Quote:A PHP Error was encountered When I google this topic everyone point towards possible white spaces in the referred file. But I can't find any in my config-file. I'm pretty sure this was honky dory when I did the site. Any suggestions on what I should search for errors..? Cheers!
[eluser]überfuzz[/eluser]
[quote author="Tpojka" date="1385296087"]Try to save (custom made) file(s) without bom.[/quote] What do you mean?
[eluser]Tpojka[/eluser]
Find all files that are included in runtime (controller, model, custom made helper, custom made library...) and encode it to UTF-8 without BOM. In Notepad++ it is in Menu Encoding. Than save the file. edit: or try it with config.php file first.
[eluser]überfuzz[/eluser]
[quote author="Tpojka" date="1385297413"]...and encode it to UTF-8 without BOM.[/quote] Sry for being such a noob about this, but whats a BOM? Edit, by the way, is it possible to turn off warnings?
[eluser]Tpojka[/eluser]
Just google for BOM. At wiki there is text too. I am not an expert but witnessed saving file as UTF-8 without BOM could solve that problem. I pointed how to set it in Notepad++, but every editor should have option for formating edited file(s). For disabling warnings, you have to set code in index.php (the root one) with some of wanted levels.
[eluser]überfuzz[/eluser]
Hmm.. It seems it was an upper/lower case letter issue. When I change the meta casting from: charset=utf-8 to charset=UTF-8 the warning vent away. However, now some characters are �. An thought on that..?
[eluser]überfuzz[/eluser]
No hold it... I tried to duplicate the error, so I changed back and forth between lower and upper case. The issue is back, no matter how I set up the charset in the config-file.
[eluser]Tpojka[/eluser]
I am assuming that you are talking about line in config.php: Code: $config['charset'] = 'UTF-8'; I was not talking about that in posts before, but I was talking about this: 1. download application/config/config.php 2. open it in Notepad++* 3. go to encoding menu 4. convert to UTF-8 without BOM 5. save file 6. upload and replace *already said other rich editors have their options, but I can point on Notepad++ now That is what I suggested in my first post too. Why don't you try? |
Welcome Guest, Not a member yet? Register Sign In |