Mass action Notice and Warning

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
3 years 2 months ago #335733

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

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 2 months ago #335740

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum