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

#   mass actions - error "operator not supported for strings"

##

- **[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")**
- [![Greg&#95;C's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57819-greg-c "View Greg&#95;C's Profile") Topic Author
- [ Offline](/forum/user/57819-greg-c)

Less More

- Posts: 141
- Thank you received: 3
-
-

7 years 2 months ago -  7 years 2 months ago [\#311222](#311222) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  *[mass actions - error "operator not supported for strings"](/forum/44-mass-actions/898329-mass-actions-error-operator-not-supported-for-strings#311222 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have problem with mass actions – after I try to launch mass action I got following error message:  “An error has occurred. &#91;&#93; operator not supported for strings /camertest/administrator/components/com&#95;hikashop/classes/massaction.php:2017” Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  as presented here:  or following (depends on mass action parameters): Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362 Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com&#95;hikashop/helpers/spreadsheet.php on line 68  as presented here:  even if I only try to save a new mass action following message is appearing:  Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  I would like to ask for hint how can I solve this problem.  Regards, Greg")* was created by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.2.14

Hello, I have problem with mass actions – after I try to launch mass action I got following error message:

****“An error has occurred. \[\] operator not supported for strings
/camertest/administrator/components/com\_hikashop/classes/massaction.php:2017”
Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362****

as presented here:

[ ![1&#95;2019-09-23-2.png](/forum/attachment/47760) ](/forum/attachment/47760 "...19-09-23-2.png")

or following (depends on mass action parameters):
**Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362
Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com\_hikashop/helpers/spreadsheet.php on line 68**

as presented here:

[ ![2&#95;2019-09-23-2.png](/forum/attachment/47761) ](/forum/attachment/47761 "...19-09-23-2.png")

even if I only try to save a new mass action following message is appearing:

**Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362**

I would like to ask for hint how can I solve this problem.

Regards,
Greg

- [ ![1&#95;2019-09-23-2.png](/forum/attachment/47760) ](/forum/attachment/47760 "...19-09-23-2.png") [ ](/forum/attachment/47760?download=1 "...19-09-23-2.png")
- [ ![2&#95;2019-09-23-2.png](/forum/attachment/47761) ](/forum/attachment/47761 "...19-09-23-2.png") [ ](/forum/attachment/47761?download=1 "...19-09-23-2.png")

Last edit: 7 years 2 months ago by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84OTgzMjktbWFzcy1hY3Rpb25zLWVycm9yLW9wZXJhdG9yLW5vdC1zdXBwb3J0ZWQtZm9yLXN0cmluZ3M/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: 86584
- Thank you received: 14325
-
-

7 years 2 months ago [\#311235](#311235) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mass actions - error "operator not supported for strings"](/forum/44-mass-actions/898329-mass-actions-error-operator-not-supported-for-strings#311235 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have problem with mass actions – after I try to launch mass action I got following error message:  “An error has occurred. &#91;&#93; operator not supported for strings /camertest/administrator/components/com&#95;hikashop/classes/massaction.php:2017” Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  as presented here:  or following (depends on mass action parameters): Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362 Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com&#95;hikashop/helpers/spreadsheet.php on line 68  as presented here:  even if I only try to save a new mass action following message is appearing:  Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  I would like to ask for hint how can I solve this problem.  Regards, Greg")*

Hi,

The "array to string" conversion notice message is something linked to another extension normally:
[ www.hikashop.com/forum/install-update/89...uct-mass-action.html](https://www.hikashop.com/forum/install-update/897549-problem-with-product-mass-action.html)
And it should already have been fixed by them. So maybe you need to update the plugins ?
Regarding the "operator not supported for strings" error, could you provide a screenshot of the settings of your mass action so that we can better understand the situation ?

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

- **[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")**
- [![Greg&#95;C's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57819-greg-c "View Greg&#95;C's Profile") Topic Author
- [ Offline](/forum/user/57819-greg-c)

Less More

- Posts: 141
- Thank you received: 3
-
-

7 years 2 months ago -  7 years 2 months ago [\#311256](#311256) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  Replied by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")* on topic *[mass actions - error "operator not supported for strings"](/forum/44-mass-actions/898329-mass-actions-error-operator-not-supported-for-strings#311256 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have problem with mass actions – after I try to launch mass action I got following error message:  “An error has occurred. &#91;&#93; operator not supported for strings /camertest/administrator/components/com&#95;hikashop/classes/massaction.php:2017” Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  as presented here:  or following (depends on mass action parameters): Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362 Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com&#95;hikashop/helpers/spreadsheet.php on line 68  as presented here:  even if I only try to save a new mass action following message is appearing:  Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  I would like to ask for hint how can I solve this problem.  Regards, Greg")*

Hi Nicolas, I have tried to reproduce the problem on new clean site installing components/modules one after another and checking if one of them is causing this problem but even when I have installed all components/modules which I am using, this problem wasn’t reproduce and mass action was working properly on this new site. Then I have tried to reproduce custom fields, which I have on my site to check if these custom fields are causing the problem and I have found the reason:

after I created following custom field:
- column name “category”
- label “Category”
- table “product”
- field type multidropdown
- values: A, B, C
- and I assigned this field to Hikashop product categories in the block “Restrictions” – for example Hikashop product categories “Products”

and I launched mass action with following parameters:
Setting Data as Product
No Triggers
Setting Filters as Category Name with the value equal to Hikashop product categories “Products” (which was previously assigned to the custom field “category” in the block “Restrictions”)
Setting Actions as Export a csv file with following fields: product_alias, product_code, product_name, category_name

and then problem has occured

Summarizing - the problem occurs when:
a) was created custom field with column name “category” (other custom fields which I am using didn't cause the problem) and
b) mass action has no Filters or has Filters which includes Hikashop product categories, which were assigned to the custom field with column name “category” (in the block “Restrictions” of the custom field – for example “Products”) and
c) mass action contain in Actions section (in mass action window below the dropdown list with position “Export a csv file”) any of the field from category group, for example category_name

Additionally even if I deleted custom field with column name “category” but I left in mass action set any of the field from category group (for example category_name) the problem still occurs – I think this is because information about the custom field with column name “category” still exist in product data – after deletion custom field is not visible in Product data in Hikashop backend but is still kept in SQL database in the table hikashop_product. So to solve the problem not only custom field with column name “category” has to deleted but also all products, which were previously assigned to Hikashop product categories, which were assigned to this custom field ( in the block “Restrictions” in custom fields parameters).

Please let me know if my description of the problem is understandable and if you were able to reproduce this problem and how this problem can be solved.

Regards,
Greg

Last edit: 7 years 2 months ago by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84OTgzMjktbWFzcy1hY3Rpb25zLWVycm9yLW9wZXJhdG9yLW5vdC1zdXBwb3J0ZWQtZm9yLXN0cmluZ3M/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: 86584
- Thank you received: 14325
-
-

7 years 2 months ago [\#311296](#311296) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mass actions - error "operator not supported for strings"](/forum/44-mass-actions/898329-mass-actions-error-operator-not-supported-for-strings#311296 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have problem with mass actions – after I try to launch mass action I got following error message:  “An error has occurred. &#91;&#93; operator not supported for strings /camertest/administrator/components/com&#95;hikashop/classes/massaction.php:2017” Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  as presented here:  or following (depends on mass action parameters): Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362 Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com&#95;hikashop/helpers/spreadsheet.php on line 68  as presented here:  even if I only try to save a new mass action following message is appearing:  Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  I would like to ask for hint how can I solve this problem.  Regards, Greg")*

Hi,

I tried to follow your instructions but I didn't get an error.
But looking at the code near the error and based on your description, I understand the situation.
The attribute "category" is already used to store the data of the categories when the mass action is loading the data, so you should use another column name for your custom field.
We'll add that word to the list of reserved column names so that it doesn't happen in the future.

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

- **[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")**
- [![Greg&#95;C's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57819-greg-c "View Greg&#95;C's Profile") Topic Author
- [ Offline](/forum/user/57819-greg-c)

Less More

- Posts: 141
- Thank you received: 3
-
-

7 years 2 months ago [\#311307](#311307) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  Replied by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")* on topic *[mass actions - error "operator not supported for strings"](/forum/44-mass-actions/898329-mass-actions-error-operator-not-supported-for-strings#311307 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have problem with mass actions – after I try to launch mass action I got following error message:  “An error has occurred. &#91;&#93; operator not supported for strings /camertest/administrator/components/com&#95;hikashop/classes/massaction.php:2017” Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  as presented here:  or following (depends on mass action parameters): Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362 Warning: Cannot modify header information - headers already sent by (output started at /camertest/libraries/vendor/joomla/filter/src/InputFilter.php:362) in /camertest/administrator/components/com&#95;hikashop/helpers/spreadsheet.php on line 68  as presented here:  even if I only try to save a new mass action following message is appearing:  Notice: Array to string conversion in /camertest/libraries/vendor/joomla/filter/src/InputFilter.php on line 362  I would like to ask for hint how can I solve this problem.  Regards, Greg")*

Hi Nicolas, ok, thank you for the information

Regards,
Greg

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

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