Mass action stopped working
I have mass action where products are removed after 1 week. For some reason products are not removed even I process it manually.
Here is the screenshot of my settings.
Not sure if it is related but I tried to increase value to 5000 and received error:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1134,1136,1139,1141,1145,1150,865,863,854,856,858,861,913,911,908,906,903,852,84' at line 1 SQL=DELETE FROM #__hikashop_product_category WHERE category_id IN(164) AND product_id IN(2567,779,765,767,769,762,763,758,760,1434,1251,1249,1247,1243,1245,1241,1438,2552,1429,1239,1201,1203,1205,1207,1209,1211,1212,1213,1215,1217,1219,1221,1223,1225,1227,1229,1231,1233,1235,1237,1065,1066,1067,1068,2553,1424,1420,1199,1197,1195,1182,1183,1184,1185,1187,1189,1191,1193,1180, and SO ON......
Any help would be appreciated.
Thanks
Please Log in or Create an account to join the conversation.
Could you provide the full MySQL query ?
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Instead of the ", and SO ON...." give all the request, so all the other ids until the end of the request.
There is certainly a parameter near the end which is causing this issue.
Please Log in or Create an account to join the conversation.
Its just ID's and nothing more
Also adding products to category "NEW" after product created is working without any problems....
Thanks
Please Log in or Create an account to join the conversation.
In you mass action settings it is better to limit to 500 products per request. Else it will consume too much resources.
That should solve your issue.
Else you can install the attached plugin containing a fix.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Well, I have installed your plugin but it made no difference. Mass action still doesn't work.
That configuration was set for about 3 months and I had no issues. Only last week I noticed that I have more then half products in category new. Products created more then 1 month ago are still there....
Tried today again to process it manually but still no products removed from that category.
I also have tried to create new mass action and no luck...
What could be the problem and how can I solve this issue?
I use configurations attached in my first post.
Many thanks
Please Log in or Create an account to join the conversation.
We've added additional fixes for that.
Download the install package of HikaShop on our website and install it on yours and that will fix the problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I only now tried to look again into this as i had no time....I have updated hikashop to 2.6.3 and remove products from category still doesnt work for me. I am happy to give login to my test site so you could find problem.
Thanks
Please Log in or Create an account to join the conversation.
Yes please provide a backend and FTP access via our contact form with a link to this topic in your message.
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
I reveived the backend access, but not the FTP one, please send it via our contact form too.
Please Log in or Create an account to join the conversation.
FTP details have been sent.
Regards
Please Log in or Create an account to join the conversation.
I just tried and the mass action seems to be working as expected now.
The MySQL query is valid, no errors.
But if you expect it to be automatic based on a period trigger, this will not work as you cron task is not set correctly.
You does not have attached your subscription to this domain.
Please Log in or Create an account to join the conversation.
Thanks for update, it seems it is working now. Should I do something to add to my live site?
Why would you say that my cron task is not set correctly? I have another mass action created to add products to that category and it does work automatically....
And my subscription is attached to this domain, well that's what it shows in hikashop->subscription page.
Thank you
Please Log in or Create an account to join the conversation.
You have to edit the file "plugins/hikashop/massaction_product/massaction_product.php" and replace the function "onProcessProductMassActionupdateCategories" by this code:
Please Log in or Create an account to join the conversation.