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

#   Error notices when using cursor filter

##

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

Less More

- Posts: 200
- Thank you received: 75
-
-

10 years 2 months ago [\#248195](#248195) by [GW](/forum/user/33851-gw "View GW's Profile")  *[Error notices when using cursor filter](/forum/45-filters-search/886103-error-notices-when-using-cursor-filter#248195 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hi,  when using a cursor filter for anything else than the price we get several error notices, see attached screenshot.  In the filter.php file, we can see on line 2039 the currency variables are only defined if($filter-&gt;filter&#95;data=='price')  However, on line 2066 and line 2081 the variables $currencies and $crurency&#95;id are assumed to always exist. If we're not mistaken, this can be fixed by checking the filter&#95;data again first by changing line 2066 and 2081 from  to  Hopefully this can be fixed with the next release, thanks! Kind regards,")* was created by *[GW](/forum/user/33851-gw "View GW's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

Hi,

when using a cursor filter for anything else than the price we get several error notices, see attached screenshot.

In the filter.php file, we can see on line 2039 the currency variables are only defined if($filter-&gt;filter_data=='price')

However, on line 2066 and line 2081 the variables $currencies and $crurency_id are assumed to always exist. If we're not mistaken, this can be fixed by checking the filter_data again first by changing line 2066 and 2081 from Code:

if($currencies[$crurency_id]-&gt;currency_locale['p_cs_precedes']){

to Code:

if($filter-&gt;filter_data=='price' &amp;&amp; $currencies[$crurency_id]-&gt;currency_locale['p_cs_precedes']){

Hopefully this can be fixed with the next release, thanks!
Kind regards,

- [ ![Hikashop&#95;Cursor&#95;Filter&#95;Error&#95;1.png](/forum/attachment/33142) ](/forum/attachment/33142 "...er&#95;Error&#95;1.png") [ ](/forum/attachment/33142?download=1 "...er&#95;Error&#95;1.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#248201](#248201) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error notices when using cursor filter](/forum/45-filters-search/886103-error-notices-when-using-cursor-filter#248201 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hi,  when using a cursor filter for anything else than the price we get several error notices, see attached screenshot.  In the filter.php file, we can see on line 2039 the currency variables are only defined if($filter-&gt;filter&#95;data=='price')  However, on line 2066 and line 2081 the variables $currencies and $crurency&#95;id are assumed to always exist. If we're not mistaken, this can be fixed by checking the filter&#95;data again first by changing line 2066 and 2081 from  to  Hopefully this can be fixed with the next release, thanks! Kind regards,")*

Hi,

Thanks for the report ; we will fix that issue in the next release.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 200
- Thank you received: 75
-
-

9 years 9 months ago [\#262783](#262783) by [GW](/forum/user/33851-gw "View GW's Profile")  Replied by *[GW](/forum/user/33851-gw "View GW's Profile")* on topic *[Error notices when using cursor filter](/forum/45-filters-search/886103-error-notices-when-using-cursor-filter#262783 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hi,  when using a cursor filter for anything else than the price we get several error notices, see attached screenshot.  In the filter.php file, we can see on line 2039 the currency variables are only defined if($filter-&gt;filter&#95;data=='price')  However, on line 2066 and line 2081 the variables $currencies and $crurency&#95;id are assumed to always exist. If we're not mistaken, this can be fixed by checking the filter&#95;data again first by changing line 2066 and 2081 from  to  Hopefully this can be fixed with the next release, thanks! Kind regards,")*

Hi,

the error we mentioned in our first post months ago appears again in Hikashop 3 [1702171813] when having a cursor filter applied on anything other than the price:
Code:

Notice: Undefined variable: currency_id in \administrator\components\com_hikashop\classes\filter.php on line 2094 Notice: Undefined variable: currency_id in \administrator\components\com_hikashop\classes\filter.php on line 2109

Because $currency_id is defined on line 2069 only **if($filter-&gt;filter\_data == 'price')**.
Hopefully this can be fixed again, thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4NjEwMy1lcnJvci1ub3RpY2VzLXdoZW4tdXNpbmctY3Vyc29yLWZpbHRlcj90bXBsPW1hcmtkb3du) 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: 86576
- Thank you received: 14320
-
-

9 years 9 months ago [\#262804](#262804) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error notices when using cursor filter](/forum/45-filters-search/886103-error-notices-when-using-cursor-filter#262804 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hi,  when using a cursor filter for anything else than the price we get several error notices, see attached screenshot.  In the filter.php file, we can see on line 2039 the currency variables are only defined if($filter-&gt;filter&#95;data=='price')  However, on line 2066 and line 2081 the variables $currencies and $crurency&#95;id are assumed to always exist. If we're not mistaken, this can be fixed by checking the filter&#95;data again first by changing line 2066 and 2081 from  to  Hopefully this can be fixed with the next release, thanks! Kind regards,")*

Hi,

Thank you for your feedback. It's actually a new message but yes, the cause is pretty similar. I've added a patch on our end in order to fix that.

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

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