-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.0
-- PHP version -- : 7.1
-- Error-message(debug-mod must be tuned on) -- : Notice: Array to string conversion in C:\laragon\www\mrbs\plugins\hikashop\massaction_product\massaction_product.php on line 144
Notice: Array to string conversion in C:\laragon\www\mrbs\plugins\hikashop\massaction_product\massaction_product.php on line 805
I have a product custom field set up for Postage Group (single dropdown).
I then have a Mass Action set up for each Postage Group so that when a product is updated or created it will specify a product_weight depending on the chosen Postage Group
This works as expected on a server with PHP 5.6 and applies the correct product_weight to the product.
With PHP 7 (I tried 7.0.19 and 7.1.5) it always sets the product_weight to the weight specified in the most recently created Mass Action (regardless of the Postage Group I set.) I investigated further by enabling Debug mode in Joomla and noticed that it performs all of the Mass Actions update queries instead of only the one based on the filtering of the Postage Group.
When enabling error_reporting the following notices show up when saving a product in PHP 7, but not in 5.6 (I'm not sure if it is relevant to this issue though):
Notice: Array to string conversion in C:\laragon\www\mrbs\plugins\hikashop\massaction_product\massaction_product.php on line 144
Notice: Array to string conversion in C:\laragon\www\mrbs\plugins\hikashop\massaction_product\massaction_product.php on line 805
At the moment I have downgraded to PHP 5.6 to get around the issue. Could you look into it for PHP 7? I think someone else has had a
similar issue
.
Thank you