Post by Adrian » Sat Jun 06, 2009 9:34 pm

Hello, I've installed opencart yesterday and I find it very useful and easy to modify (at least the CSS for a theme).
I have enabled two languages: Bulgarian (default) and English and two currencies Euro and BGN.
I did the localisation and used a Bulgarian language mode.

Somewhere after the localisation I started receiving in the admin panel:

"Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /home/adrian/public_html/store/admin/model/localisation/currency.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /home/adrian/public_html/store/admin/model/localisation/currency.php:80) in /home/adrian/public_html/store/system/library/response.php on line 65"


I don't have a clue of PHP but as far as I understand there is a problem in the module which calculates the currencies? However the calculation seems to work fine and I do not see a problem in the user part of the site except for the error: "Error: Could not load language product/special!" when "special offers" link is clicked while in Bulgarian language.

I have searched the forum for information but didn't find anything of use to me.
I will greatly appreciate any help with regard to explaining and resolving these two problems!

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by Adrian » Tue Jun 09, 2009 1:41 am

I did fix the "Error: Could not load language product/special!" error by adding the missing special.php file (and translating it). However the other error is still present and definitely appears after the locale is changed to Bulgaria.

I will be grateful if someone can give an answer to this!

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by Adrian » Thu Jun 11, 2009 11:28 pm

OK, thank you very much! For being such a nice and supportive developers and community. ;D
I guess I'll sort sort that out myself.

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by Daniel » Fri Jun 12, 2009 1:04 am

I don't knwo which version you are using but sounds like its not opencart 1.x

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Adrian » Sat Jun 13, 2009 8:46 pm

Hi, it is OpenCart 1.2.8

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by georgekrastev » Tue Jun 16, 2009 4:07 am

Hi Adrian,

Are you still having the problem?

Regards,
George

Newbie

Posts

Joined
Wed May 06, 2009 3:43 am

Post by Adrian » Tue Jun 16, 2009 2:53 pm

Hi, George

I still have it.
As long as settings/local is set to Bulgaria I start to receive the above mentioned warnings on top of the home page of the admin part of the site.

It is combined with distorsion of the graphic interface (the menu fields become taller) as you can see on the shot.
The cart seems to function correctly though I haven't tested it much.
I am using Firefox 3.0.11 and Ubuntu 9.04.

http://neurouniverse.net/store/Screenshot.png
http://neurouniverse.net/store/

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by benp » Tue Jun 16, 2009 3:09 pm

Hi, i'm getting the same problem. All was fine for few weeks and all of a sudden these showed up on top of my admin panel.

Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /home/mydomain.com/admin/model/localisation/currency.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain.com/admin/model/localisation/currency.php:80) in /home/mydomain.com/system/library/response.php on line 65

I am zero knowledge with reference to php. Please can anyone help. I really appreciate any help. And really desperate. Thanks

Newbie

Posts

Joined
Tue Jun 16, 2009 3:01 pm

Post by comiclair » Tue Jun 16, 2009 11:51 pm

HI
I just started getting the error today and have been using 1.28 for a couple of weeks without any issues. I am still able to input product and edit on the admin side and the user side seems to be alright. So any help would be greatly appreciated. Thanks


Warning: file_get_contents(http://currencysource.com/RSS/USD.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 Access Forbidden/Abuse in /home/mydomain.com/admin/model/localisation/currency.php on line 76

Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /home/mydomain.com/admin/model/localisation/currency.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain.com/admin/model/localisation/currency.php:76) in /home/mydomain.com/system/library/response.php on line 65

Active Member

Posts

Joined
Sun Jun 07, 2009 5:08 am
Location - Trenton, NJ

Post by Daniel » Wed Jun 17, 2009 12:53 am

disable the currency auto update. i think they stopped php from parsign the infromation.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by comiclair » Wed Jun 17, 2009 1:26 am

Hi Daniel
I try that and I am still getting the warning, is there anything else I could try . Also I wanted to know if this effects the anything important to the backend?

Thanks
Chad

Active Member

Posts

Joined
Sun Jun 07, 2009 5:08 am
Location - Trenton, NJ

Post by benp » Wed Jun 17, 2009 2:37 am

is there anyone who could really resolve these error warnings, seems lots are getting same issue here in v1.2.8

also i was thinking of giving donations once my shop is up and running, i knew they worked hard for this program, but now i'm having second thought..if this issue not resolved i try other cart... the only thing is i have already spent so much time uploading all my products.. >:(

in a month i'm launching my site and start my business officially.. i really need this get work well, no hassle. help please..

Newbie

Posts

Joined
Tue Jun 16, 2009 3:01 pm

Post by Adrian » Wed Jun 17, 2009 4:00 am

The currency autoupdate is disabled from the beginning but this doesn't seem to have any effect.

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by fivepix » Wed Jun 17, 2009 7:06 am

I'm also getting this error has any one found a fix? I tried everything people have suggested I'm launching the store in a few weeks and I need to know if this is a critical issue or if I should continue with the opening.

Newbie

Posts

Joined
Wed Jun 17, 2009 7:03 am

Post by fivepix » Wed Jun 17, 2009 8:40 pm

Hi All!

After a bit of digging around the forum I found the following to remove the error, can any one else tell me if this is a true fix? I've made the change on mine and it seems to be working properly.
if you still get same error go to admin/controller/common/ and open home.php
and then change (line 102)

//$this->model_localisation_currency->updateCurrencies();

after you never ever see same error
by hakim » Mon May 25, 2009 12:11 am

here is the link
http://forum.opencart.com/viewtopic.php ... ror#p20678

Newbie

Posts

Joined
Wed Jun 17, 2009 7:03 am

Post by Adrian » Thu Jun 18, 2009 12:52 am

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.

New member

Posts

Joined
Sat Jun 06, 2009 9:22 pm

Post by gavin m » Thu Jun 18, 2009 3:27 am

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...

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by diatomin » Thu Jun 18, 2009 12:40 pm

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

Newbie

Posts

Joined
Thu Jun 18, 2009 12:33 pm

Post by georgekrastev » Sat Jun 20, 2009 8:37 pm

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

Newbie

Posts

Joined
Wed May 06, 2009 3:43 am

Post by Daniel » Sat Jun 20, 2009 9:51 pm

update to the latest version to fix the currency issue.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: Google [Bot] and 95 guests