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

#   Deprecated error for filters

##

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

Less More

- Posts: 1193
- Thank you received: 13
-
-

1 year 5 months ago [\#367343](#367343) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Deprecated error for filters](/forum/45-filters-search/909461-deprecated-error-for-filters#367343 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Hi!  I created a checkbox custom field and filter, assigned some products to have results but i get this error:  and it only shows 1 of 3 field data of the custom field.  What is that error? I reinstalled latest Hikashop update but didn't help.  Thank you!")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.1

Hi!

I created a checkbox custom field and filter, assigned some products to have results but i get this error:

> Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/php8/public\_html/milonopoulos-carpets.gr/administrator/components/com\_hikashop/classes/filter.php on line 1821

and it only shows 1 of 3 field data of the custom field.

What is that error? I reinstalled latest Hikashop update but didn't help.

Thank you!

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwOTQ2MS1kZXByZWNhdGVkLWVycm9yLWZvci1maWx0ZXJzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

1 year 5 months ago [\#367360](#367360) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Deprecated error for filters](/forum/45-filters-search/909461-deprecated-error-for-filters#367360 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.1  Hi!  I created a checkbox custom field and filter, assigned some products to have results but i get this error:  and it only shows 1 of 3 field data of the custom field.  What is that error? I reinstalled latest Hikashop update but didn't help.  Thank you!")*

Hi,

Note that this is not an error. It's a deprecated message to warn developers that something won't be supported in the next major version of PHP. So, this helps us make changes to HikaShop for the future.
On a live website, you're not supposed to display deprecated messages. I would recommend turning that off in the php.ini of your hosting.
I've added a patch for this message on our end. Download again the install package of HikaShop on our website and install it on yours and you won't get it anymore.
Note also that this message is not supposed to happen normally.
It basically means that you didn't select anything in the custom field of the filter for one or several products on the listing (or at least you didn't save one or several products since adding the field) while you have the "dynamic display" setting of the filter activated. In that case, the system looks at the values selected in each product in the custom field to filter out the other non used values from the filter.
The fact that it only shows 1 choice confirms what I'm saying. If you always want the filter to display all the choices, then you want to turn off the "dynamic display" setting of the filter, as it is by default. And it will in fact remove the deprecated message without even adding the patch.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwOTQ2MS1kZXByZWNhdGVkLWVycm9yLWZvci1maWx0ZXJzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.095 seconds

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