Page 1 of 2

Re: array_combine() and Cannot modify header information warning

Posted: Thu Jun 18, 2009 12:52 am
by Adrian
Doesn't work for me.

It might be useful to say that the warnings are present only on the home page of the administration interface.

Re: array_combine() and Cannot modify header information warning

Posted: Thu Jun 18, 2009 3:27 am
by gavin m
I started to have this issue today. Disabled the 'update currency' setting, and made the change in the home.php file and it's fixed the error for now.

Will keep an eye on it...

Re: array_combine() and Cannot modify header information warning

Posted: Thu Jun 18, 2009 12:40 pm
by diatomin
Hi Guys!

Here's what I figured out about this array_combine() issue relating to the currency.php file. it's caused by a function that's supposed to automatically do an update on your currencies from the currencysource website (XML feed). The way I see it, currencysource has made some policy changes to accessing their XML file and while it's still possible to retrieve the file, you can only do so within a certain time frame. Let's say you can only grab it every 10 minutes (I'm not sure about the specific time, but when you do a refresh of the homepage with a reasonable time gap, the error does not appear). Try accessing the xml file link directly like the following:

http://feeds.currencysource.com/AUD.xml

See the RSS display properly? Try refreshing your browser - it'll give you a 403 access forbidden error / abuse.

So for now it's not a serious problem to panic about. However, there needs to be some sort of catch for this error as during the time of development, I don't think the developers expected currencysource to tighten its noose on their xml file :P.

Just my two cents and hope it helps peeps here. O0

Cheers,
L

Re: array_combine() and Cannot modify header information warning

Posted: Sat Jun 20, 2009 8:37 pm
by georgekrastev
Hi *,

As I already mentioned in some of my former reply I have been getting some warnings from user side, but never on admin one:
http://forum.opencart.com/viewtopic.php?t=4417

Where the problem is comming from:
Since I am using as additional language the German one there are some simboles which have been shown incorrect (like Ü,Ö,ß,Ä), therefore I convert all php files (in .\opencart\catalog\language\german\) to UFT-8 fortmat (original ones are in ASCII). This solve the problem with visualisation, but unfortunately "warning" message pops up :( .

Solution:
Keep all files in ASCII format, but wherever you have a special chars replace them with a HTML numbers like:
Instead of "Züruck" just use 'Z&#252ruck'.
On this case the warning messages are gone, and the visualization is correct again. ;)
The web side looks like: http://www.oniart.eu

The ACSII table you can find under:
http://ascii.cl/htmlcodes.htm

P.S. From my point of view opencart is a very good platform and I would like to thanks to all contributors and developers to make it happen.

Best regards,
George

Re: array_combine() and Cannot modify header information warning

Posted: Sat Jun 20, 2009 9:51 pm
by Daniel
update to the latest version to fix the currency issue.

Re: array_combine() and Cannot modify header information warning

Posted: Sun Jun 21, 2009 3:45 am
by georgekrastev
Hi Danile,

Could you please comment UTF-8 and ASCII issue as well?

Thanks and regards,
George

Re: array_combine() and Cannot modify header information warning

Posted: Sun Jun 21, 2009 4:38 am
by Daniel
i've had this problem before when downloading using ftp. its somethign to do with ascci and binary when i'm downloading all the docuemnts from the development server.

Re: array_combine() and Cannot modify header information warning

Posted: Tue Nov 17, 2009 1:55 am
by AndreasT
Hello.

Saving the files as UTF-8 without BOM works for me. Seems the byte order markers are interpreted as content and thus the error.

Cheers,

Andreas

Re: array_combine() and Cannot modify header information war

Posted: Wed Jan 11, 2012 4:06 am
by ab330ci
hello every body, i had the same problem with

the Cannot modify header information - headers already sent by (output started at.............

and i found the problem, when you edit a *.php file using txt editor you have to check under what format ur saving the file after editing , i used to change the footer.php in catalog/language/bulgarian/common/footer.php with a text editor so i received this problem , i just used the orginal file and made my correction under dreamweaver and the error message did'nt appear anymore