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

#   PHP error message

##

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

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 1 day ago [\#72427](#72427) by [dforrest](/forum/user/2297-dforrest "View dforrest's Profile")  *[PHP error message](/forum/3-bug-report/72427-php-error-message#72427 "I don't know enough about PHP to know if this error is important, if it is I'd like some advice on how to get rid of it.  In HS &gt; Categories, if I open one (and only one) of my categories with sytem error reporting set to maximun, I get these error messages:  Notice: Undefined offset: 7 in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62  Notice: Trying to get property of non-object in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62   I went to the offending file and copied a few lines of code. Here are lines 56-63:  Should I do anything about this? Sounds like it has to do with JoomFish. I have checked and resaved the translations for the category name and description; they are all fine.  Thanks for any advice.")* was created by *[dforrest](/forum/user/2297-dforrest "View dforrest's Profile")*

I don't know enough about PHP to know if this error is important, if it is I'd like some advice on how to get rid of it.

In HS &gt; Categories, if I open one (and only one) of my categories with sytem error reporting set to maximun, I get these error messages:

**Notice: Undefined offset: 7 in \[site path\]/administrator/components/com\_hikashop/helpers/translation.php on line 62

Notice: Trying to get property of non-object in \[site path\]/administrator/components/com\_hikashop/helpers/translation.php on line 62**

I went to the offending file and copied a few lines of code. Here are lines 56-63:
Code:

} function getFlag($id=0){ $this-&gt;loadLanguages(); if(isset($this-&gt;languages[$id])){ return '&lt;span style="background: url('.$this-&gt;flagPath.$this-&gt;languages[$id]-&gt;shortcode.'.gif) no-repeat;padding-left:20px"&gt;'.$this-&gt;languages[$id]-&gt;code.'&lt;/span&gt;'; } return $this-&gt;languages[$id]-&gt;code; }

Should I do anything about this? Sounds like it has to do with JoomFish. I have checked and resaved the translations for the category name and description; they are all fine.

Thanks for any advice.

---

HikaShop Business 2.3.2 on Joomla 1.5.26 + JoomFish 2.1.6 - Multilingual site

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83MjQyNy1waHAtZXJyb3ItbWVzc2FnZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

14 years 1 day ago [\#72428](#72428) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: PHP error message](/forum/3-bug-report/72427-php-error-message#72428 "I don't know enough about PHP to know if this error is important, if it is I'd like some advice on how to get rid of it.  In HS &gt; Categories, if I open one (and only one) of my categories with sytem error reporting set to maximun, I get these error messages:  Notice: Undefined offset: 7 in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62  Notice: Trying to get property of non-object in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62   I went to the offending file and copied a few lines of code. Here are lines 56-63:  Should I do anything about this? Sounds like it has to do with JoomFish. I have checked and resaved the translations for the category name and description; they are all fine.  Thanks for any advice.")*

That error message just says that it can't find one of the language of your website in Joomfish and because of that it can't display the code properly.
That's not really a problem. It's just a display issue that you can ignore.

If you want to remove it you can change the line:
return $this-&gt;languages[$id]-&gt;code;

to:
return @$this-&gt;languages[$id]-&gt;code;

The following user(s) said Thank You: [dforrest](/forum/user/2297-dforrest "View dforrest's Profile")

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 20 hours ago [\#72450](#72450) by [dforrest](/forum/user/2297-dforrest "View dforrest's Profile")  Replied by *[dforrest](/forum/user/2297-dforrest "View dforrest's Profile")* on topic *[Re: PHP error message](/forum/3-bug-report/72427-php-error-message#72450 "I don't know enough about PHP to know if this error is important, if it is I'd like some advice on how to get rid of it.  In HS &gt; Categories, if I open one (and only one) of my categories with sytem error reporting set to maximun, I get these error messages:  Notice: Undefined offset: 7 in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62  Notice: Trying to get property of non-object in &#91;site path&#93;/administrator/components/com&#95;hikashop/helpers/translation.php on line 62   I went to the offending file and copied a few lines of code. Here are lines 56-63:  Should I do anything about this? Sounds like it has to do with JoomFish. I have checked and resaved the translations for the category name and description; they are all fine.  Thanks for any advice.")*

Got it.

This was because I translated one category name into French but no more. I've now deactivated French as a language for our initial launch, and voilà. The message disappeared when I reactivated French but now I know I can safely ignore it, thanks!

---

HikaShop Business 2.3.2 on Joomla 1.5.26 + JoomFish 2.1.6 - Multilingual site

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83MjQyNy1waHAtZXJyb3ItbWVzc2FnZT90bXBsPW1hcmtkb3du) 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.151 seconds

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

[](#top)
