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

#   Error on creating new category

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#249708](#249708) by [hergy7](/forum/user/44604-hergy7 "View hergy7's Profile")  *[Error on creating new category](/forum/32-content-creation/886392-error-on-creating-new-category#249708 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : Chrome 52.0.2743.116 -- Error-message(debug-mod must be tuned on) -- : Erreur lors de la sauvegarde  2 requêtes dupliquées: #15 #18  SELECT &#42; FROM &#95;hikashop&#95;category WHERE category&#95;id = '62' LIMIT 1  Hello there,  Here's what i done: I edited a category by assigning it at the root by mistake ; actually, i wanted assign it in &quot;product category&quot;. Then, i read this and , i changed the IDs category in database and rebuilt category tree in backend. Everything seems work except that i cannot create a new category anymore (saving an existing category works). Debug mode shown me duplicated queries (please see in &quot;Error message on the page&quot; field above), but don't understand, i'm not a developer.  Help please.")* was created by *[hergy7](/forum/user/44604-hergy7 "View hergy7's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : Chrome 52.0.2743.116
-- Error-message(debug-mod must be tuned on) -- : Erreur lors de la sauvegarde

2 requêtes dupliquées: #15 #18

SELECT *
FROM _hikashop_category
WHERE category_id = '62'
LIMIT 1

Hello there,

Here's what i done: I edited a category by assigning it at the root by mistake ; actually, i wanted assign it in "product category".
Then, i read this [ topic](http://www.hikashop.com/support/forum/product-category-display/878598-error-saving-category.html) and [ this](http://www.hikashop.com/support/forum/3-bug-report/23291-save-category.html) , i changed the IDs category in database and rebuilt category tree in backend. Everything seems work except that i cannot create a new category anymore (saving an existing category works).
Debug mode shown me duplicated queries (please see in "Error message on the page" field above), but don't understand, i'm not a developer.

Help please.

Last edit: 10 years 2 months ago by [hergy7](/forum/user/44604-hergy7 "View hergy7's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#249717](#249717) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error on creating new category](/forum/32-content-creation/886392-error-on-creating-new-category#249717 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : Chrome 52.0.2743.116 -- Error-message(debug-mod must be tuned on) -- : Erreur lors de la sauvegarde  2 requêtes dupliquées: #15 #18  SELECT &#42; FROM &#95;hikashop&#95;category WHERE category&#95;id = '62' LIMIT 1  Hello there,  Here's what i done: I edited a category by assigning it at the root by mistake ; actually, i wanted assign it in &quot;product category&quot;. Then, i read this and , i changed the IDs category in database and rebuilt category tree in backend. Everything seems work except that i cannot create a new category anymore (saving an existing category works). Debug mode shown me duplicated queries (please see in &quot;Error message on the page&quot; field above), but don't understand, i'm not a developer.  Help please.")*

Hi,

I'm afraid that if you just select a wrong parent category ; the easier would be to re-edit the category and change his parent.
By editing directly the data in the database I think you broke the nested set model tree and the "rebuild tree" cannot fix it.
[ en.wikipedia.org/wiki/Nested\_set\_model](https://en.wikipedia.org/wiki/Nested_set_model)

Please revert the modifications you made in the database and check that the nested set model values are right.
Otherwise, you should delete all your categories and restart from a clean data (with correct IDs).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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