[Skip to main content](#vessel-content)

#   Invalid argument supplied: translation.php on 118

##

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42115](#42115) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  *[Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42115 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")* was created by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")*

I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an existing product page (maybe others, i Haven't cheked everything yet) I get an error warning saying "Warning: Invalid argument supplied for foreach() in C:\wamp\www\fashion\administrator\components\com_hikashop\helpers\translation.php on line 118"

I also have Joomfish installed. Just thought I'd tell you in case you think it might be related to that since it's a translations file error.

- [ ![eg.jpg](/forum/attachment/3022) ](/forum/attachment/3022 "eg.jpg") [ ](/forum/attachment/3022?download=1 "eg.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42118](#42118) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42118 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Hi,

That's a warning because you didn't configure any languages in JoomFish.
You can remove that by changing that line in that file to:
foreach(@$languages as $lg){

or by changing the "error reporting" option of joomla to production in the configuration of joomla if you're on 2.5.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42258](#42258) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  Replied by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42258 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Forgive me if I'm just being stupid and missing something but I've gone over everything and as far as i can tell everything is set up correctly. I've attached 4 images to this which, as far as I'm aware, should cover everthing needed to make translations work but they don't.

You'll notice on the first image that I'm not even shown the language tabs at the top right of the add a product page that allow me to make a translation.

The second image shows that I have French installed on Joomfish.

The third shows the Hikashop content elements within Joomfish.

The fourth shows my language config within Hikashop.

I really don't know where I'm going wrong here. Have i missed a step?

- [ ![eglan1.jpg](/forum/attachment/3030) ](/forum/attachment/3030 "eglan1.jpg") [ ](/forum/attachment/3030?download=1 "eglan1.jpg")
- [ ![eglan2.jpg](/forum/attachment/3031) ](/forum/attachment/3031 "eglan2.jpg") [ ](/forum/attachment/3031?download=1 "eglan2.jpg")
- [ ![eglan3.jpg](/forum/attachment/3032) ](/forum/attachment/3032 "eglan3.jpg") [ ](/forum/attachment/3032?download=1 "eglan3.jpg")
- [ ![eglan4.jpg](/forum/attachment/3033) ](/forum/attachment/3033 "eglan4.jpg") [ ](/forum/attachment/3033?download=1 "eglan4.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42260](#42260) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42260 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Which version of JoomFish and Joomla are you using ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42261](#42261) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  Replied by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42261 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Joomla 1.5.25 and Joomfish 2.2.3

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42263](#42263) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42263 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Is the joomfish database plugin published ?

When you say that it doesn't work, what do you mean by that ? Do you have an error message ? The front end does not display any translations ? Or you can't enter the translations ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42265](#42265) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  Replied by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42265 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

If you mean jfdatabase, yes that it enabled.

What i mean is what you see in the image eglan1.jpg a few posts ago. There is no option (i.e. a tab with the French flag) on the "Add A Product" page to translate any content (like the ones seen in this image on your own documentation pages&gt; [ ](http://www.hikashop.com/media/doc/product_form_main.png)[ www.hikashop.com/media/doc/product\_form\_main.png](http://www.hikashop.com/media/doc/product_form_main.png)) and also the orange error you can see above where the tabs should be.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42279](#42279) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42279 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

We found that there were some differencies in the database structure with the new version of Joomfish that you're using.
Please replace the file administrator/components/com_hikashop/helpers/translation.php by the one in the archive enclosed and it should work better.

We'll include these modifications in next release of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42283](#42283) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  Replied by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42283 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

I've replaced the file however no language tabs are showing still and there are error messages on many more pages now (see attached, all errors point to the same fault)

- [ ![eglan5.jpg](/forum/attachment/3037) ](/forum/attachment/3037 "eglan5.jpg") [ ](/forum/attachment/3037?download=1 "eglan5.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42284](#42284) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42284 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

These new warnings are not really a problem. Here is a new version which fixes the warnings.

Also, please note that the tabs will appear only once you saved your product (or when you edit an existing one).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")**
- [![2ndrendermedia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile") Topic Author
- [ Offline](/forum/user/6376-2ndrendermedia)

Less More

- Posts: 39
- Thank you received: 0
-
-

14 years 8 months ago [\#42285](#42285) by [2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")  Replied by *[2ndrendermedia](/forum/user/6376-2ndrendermedia "View 2ndrendermedia's Profile")* on topic *[Re: Invalid argument supplied: translation.php on 118](/forum/3-bug-report/42115-invalid-argument-supplied-translation-php-on-118#42285 "I had the basic version of Hikashop installed and then bought the business edition. I uninstalled the old version and installed the business edition. When i go to the Add A Product page or on an...")*

Excellent. It's working now. Thanks very much for the support! ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjExNS1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLXRyYW5zbGF0aW9uLXBocC1vbi0xMTg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.089 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
