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

#   Error updating categories

##

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

9 years 11 months ago -  9 years 11 months ago [\#257628](#257628) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[Error updating categories](/forum/44-mass-actions/887924-error-updating-categories#257628 "-- HikaShop version -- : 2.6.4  I need a mass-action to set the category automaticly to our products  When i update the categories i get an error.  Settings:  Result:  If i change the settings for the next category 10-20 euro.  The error changes to:  I download the latest version today and rebuild categories, but don't work. Can you point me in the right direction?")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 2.6.4

I need a mass-action to set the category automaticly to our products

When i update the categories i get an error.

Settings:

####  Attachment not found

Result:

####  Attachment not found

If i change the settings for the next category 10-20 euro.

####  Attachment not found

The error changes to:

####  Attachment not found

I download the latest version today and rebuild categories, but don't work.
Can you point me in the right direction?

Last edit: 9 years 11 months ago by [Joomill](/forum/user/33738-joomill "View Joomill's Profile").

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

9 years 11 months ago [\#257630](#257630) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error updating categories](/forum/44-mass-actions/887924-error-updating-categories#257630 "-- HikaShop version -- : 2.6.4  I need a mass-action to set the category automaticly to our products  When i update the categories i get an error.  Settings:  Result:  If i change the settings for the next category 10-20 euro.  The error changes to:  I download the latest version today and rebuild categories, but don't work. Can you point me in the right direction?")*

Hi,

1. That's because some of the products with a price &lt;= 10 are already linked to that category.
So please add a filter so that the products aren't already in that category and you shouldn't get that error.

2. For that error, it's because the system doesn't support having two filters on the price.
Try changing the line: Code:

$query-&gt;leftjoin[] = hikashop_table('price').' AS hk_price ON hk_price.price_product_id = hk_product.product_id';

to: Code:

$query-&gt;leftjoin['hk_price'] = hikashop_table('price').' AS hk_price ON hk_price.price_product_id = hk_product.product_id';

in the file plugins/hikashop/massaction_product/massaction_product.php and that should fix the problem.
Let us know how it goes so that we can include the fix for the next release.

The following user(s) said Thank You: [Joomill](/forum/user/33738-joomill "View Joomill's Profile")

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

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

9 years 11 months ago [\#257657](#257657) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[Error updating categories](/forum/44-mass-actions/887924-error-updating-categories#257657 "-- HikaShop version -- : 2.6.4  I need a mass-action to set the category automaticly to our products  When i update the categories i get an error.  Settings:  Result:  If i change the settings for the next category 10-20 euro.  The error changes to:  I download the latest version today and rebuild categories, but don't work. Can you point me in the right direction?")*

Nicolas,

1) Added a filter for the first error. Works fine.
2) Code tested successfully!

Thank you!

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

9 years 11 months ago [\#257668](#257668) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error updating categories](/forum/44-mass-actions/887924-error-updating-categories#257668 "-- HikaShop version -- : 2.6.4  I need a mass-action to set the category automaticly to our products  When i update the categories i get an error.  Settings:  Result:  If i change the settings for the next category 10-20 euro.  The error changes to:  I download the latest version today and rebuild categories, but don't work. Can you point me in the right direction?")*

Thanks for your feedback !

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

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
