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

#   Erreur édition "mass action"

##

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

Less More

- Posts: 214
- Thank you received: 21
-

4 years 10 months ago -  4 years 10 months ago [\#338219](#338219) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338219 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")* was created by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")*

-- url of the page with the problem -- : [ aurigines.com](https://aurigines.com)
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.4
-- PHP version -- : 8.0.13

Bonjour,

Je viens de constater un problème lors de l'édition d'une "mass action" déjà existante :
Le problème est le même sous J4 PHP 8.0.13

Une erreur s'est produite
0 implode(): Argument #2 ($array) must be of type ?array, string given
/home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954

[ ![screenshot-aurigines.com-2021.12.28-07&#95;22&#95;56.png](/forum/attachment/54095) ](/forum/attachment/54095 "...8-07&#95;22&#95;56.png")

Par contre, je peux créer une nouvelle tâche sans problème.
Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table "product".
Si je veux éditer une mass action agissant sur la table "order", pas de problemes.

Merci beaucoup.
Patrick

**\[Message du modérateur :\]** S'il vous plait, n'éditez pas vos messages longtemps après avoir poster votre message, cela désorganise notre service de ticket, et peut entrainer des délais de réponse bien plus long pour tout le monde, y compris vous même.

Merci de votre attention.
Cordialement

- [ ![screenshot-aurigines.com-2021.12.28-07&#95;22&#95;56.png](/forum/attachment/54095) ](/forum/attachment/54095 "...8-07&#95;22&#95;56.png") [ ](/forum/attachment/54095?download=1 "...8-07&#95;22&#95;56.png")

Last edit: 4 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 10 months ago [\#338221](#338221) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338221 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")*

Bonjour,

Pourriez vous s'il vous plait, ajouter la configuration de la MassActions qui aurait provoqué cette erreure ?
Le but étant de tenter de reproduire votre probléme, car malheureusement pour le moment et malgré votre screenshot d'erreur (pourtant très compléte) nous ne sommes pas sur de pouvoir pleinement saisir le probléme.

En attente de retours pour pouvoir progresser sur votre sujet.
Cordialement

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

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

Less More

- Posts: 214
- Thank you received: 21
-

4 years 10 months ago [\#338235](#338235) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338235 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")*

Bonjour,

Comme indiqué dans mon post, c'est lorsque je veux éditer une mass action agissant sur la table "product" que l'erreur se produit.
Cela se produit avec TOUTES les mass actions impliquant la table "product", pas juste une seule.

Ces mas actions ont été faites il y a plusieurs mois et le problème apparait depuis le passage à PHP8

Je ne peux donc pas vous donner la configuration de ces mass actions, ne pouvant pas les éditer .

Si vous le voulez, je peux vous envoyer un accés au backend

Cordialement

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

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

Less More

- Posts: 214
- Thank you received: 21
-

4 years 10 months ago [\#338236](#338236) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338236 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")*

Re bonjour,

Ce matin, pour être sûr, j'ai repassé le serveur sous PHP 7.4 momentanément.

Comme vous pouvez le voir sur la capture d'écran, le problème disparait mais j'ai quand même un warning sur la ligne 954 du plugin hikashopmassaction.php.

Il semble donc bien qu'il y ait un problème sous PHP 8.0.13

[ ![mass-action-PHP7.4.png](/forum/attachment/54098) ](/forum/attachment/54098 "...ion-PHP7.4.png")

Cordialement

- [ ![mass-action-PHP7.4.png](/forum/attachment/54098) ](/forum/attachment/54098 "...ion-PHP7.4.png") [ ](/forum/attachment/54098?download=1 "...ion-PHP7.4.png")

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

4 years 10 months ago [\#338238](#338238) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338238 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")*

Bonjour,

C'est un effet un souci lié aux modifications apportées par PHP8 pour rendre PHP plus strict.
Ce qu'il faut faire, c'est changer la ligne 954 de ce fichier de : Code:

$query = 'SELECT category_id, category_name FROM '.hikashop_table('category').' WHERE category_id IN ('.implode( $value-&gt;data['value'],',').')';

à: Code:

$query = 'SELECT category_id, category_name FROM '.hikashop_table('category').' WHERE category_id IN ('.implode(',', $value-&gt;data['value']).')';

Nous allons rajouter cette modification de notre coté.

The following user(s) said Thank You: [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")

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

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

Less More

- Posts: 214
- Thank you received: 21
-

4 years 10 months ago [\#338241](#338241) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Erreur édition "mass action"](/forum/5-support-en-francais-french-support-/903726-erreur-edition-mass-action#338241 "-- url of the page with the problem -- :   aurigines.com  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.13  Bonjour,  Je viens de constater un problème lors de l'édition d'une &quot;mass action&quot; déjà existante : Le problème est le même sous J4 PHP 8.0.13  Une erreur s'est produite 0 implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/boutique/plugins/system/hikashopmassaction/hikashopmassaction.php:954  Par contre, je peux créer une nouvelle tâche sans problème. Je viens de me rendre compte que ce problème apparait si la mass action agit sur la table &quot;product&quot;. Si je veux éditer une mass action agissant sur la table &quot;order&quot;, pas de problemes.  Merci beaucoup. Patrick")*

Bonjour,
Merci beaucoup pour votre efficacité !

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