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

#   Mass action Notice and Warning

##

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

Less More

- Posts: 285
- Thank you received: 42
-
-

5 years 2 months ago [\#335733](#335733) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Mass action Notice and Warning](/forum/44-mass-actions/903198-mass-action-notice-and-warning#335733 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.30  I've got this notice and warning using Mass Action. Filters: I have selected a filter (all products who contain &quot;pack&quot; in name). Action1: Replace category id for thoes products with another id (replaced 13 with 33). Action2: Display the result")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.3.30
Code:

Notice: Undefined property: stdClass::$categories in /plugins/hikashop/massaction_product/massaction_product.php on line 993 Warning: array_search() expects parameter 2 to be array, null given in /plugins/hikashop/massaction_product/massaction_product.php on line 993

I've got this notice and warning using Mass Action.
Filters: I have selected a filter (all products who contain "pack" in name).
Action1: Replace category id for thoes products with another id (replaced 13 with 33).
Action2: Display the result

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

5 years 2 months ago [\#335740](#335740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass action Notice and Warning](/forum/44-mass-actions/903198-mass-action-notice-and-warning#335740 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.3.30  I've got this notice and warning using Mass Action. Filters: I have selected a filter (all products who contain &quot;pack&quot; in name). Action1: Replace category id for thoes products with another id (replaced 13 with 33). Action2: Display the result")*

Hi,

I think that the issue is that you must have a variant with the text "pack" in its name. But since a variant is not linked to categories, you get these messages.
So to avoid the issue, you could add a filter on the product type so that you process only main products and not variants.

On our end, we'll add a check for the next version to skip variants when updating categories as it should not be done anyways.

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

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