Error An element with the same alias already exists Error Saving

  • Posts: 513
  • Thank you received: 8
  • Hikashop Business
3 years 7 months ago #323592

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4.9
-- Browser(s) name and version -- : Google Chrome
-- Error-message(debug-mod must be tuned on) -- : Error
An element with the same alias already exists
Error Saving

Hi, I am getting an error when either trying to copy a product to create a new one and also when trying to create a completely new one? been using Hikashop for years and not nad this error before?

This is preventing us from adding new items to our shop?

Attachments:

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
3 years 7 months ago #323594

Hi,

It means that you have another product with the same alias. So need to change the alias of that product you're trying to create/modify or the alias of the other product with that same alias and then you won't have that error message.

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

  • Posts: 513
  • Thank you received: 8
  • Hikashop Business
3 years 7 months ago #323634

Hi Nicolas, That is not the case with this issue. I cannot put anything in, even something that I would never use and I still get the error message?

Rgds

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
3 years 7 months ago #323647

Hi,

I don't see how that's possible.
If you think it really is the case, please send us a message via our contact form:
www.hikashop.com/support/contact-us.html
In it, include a link to this thread, a backend access and precise instructions to reproduce the error.

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

  • Posts: 513
  • Thank you received: 8
  • Hikashop Business
3 years 7 months ago #323674

Hi, Investigated further and found I now have to type in the Alias myself where as before it would automatically use the product name and also change the variants as well which it is not doing?

Rgds

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
3 years 7 months ago #323683

Hi,

You have the setting "Alias automatic filling" to control that in the HikaShop configuration. Maybe you changed it ?

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

  • Posts: 305
  • Thank you received: 4
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
10 months 3 weeks ago #352188

Hi,

I am having the same problem. What was the solution here?

Thanks.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
10 months 3 weeks ago #352191

Hi,

Well, it means you have two products with the same alias/name. So you need to make sure they are different and it will work.

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

  • Posts: 305
  • Thank you received: 4
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
10 months 2 weeks ago #352234

Hi,

Thanks. However, as mentioned before, I am building a website for a company that has 13 branches, all of which are independent vendors, and all of which sell the same items. So there will be 13 products with the same name.

When I created the copies, it automatically appended each copy with copyXXXXXX, and I assume that your system automatically generates unique numbers for that?

So yeah. I need to be able to create products that are the same, but I am leaving the system generated COPYXXXXX code after, so they ARE unique?!

Any way to work around this? Seems like a bug....

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
10 months 2 weeks ago #352236

Hi,

You didn't mention anything about all this in your first message in this thread. Please understand that I answer to many people everyday and I can't keep track of who says what where.

When you use the "copy" button of the products listing, the system will generate unique product codes, adding the "copyXXX" at the end of the product code.
This error message is not about the product code, it's about the product alias.
As I said in another message to you here www.hikashop.com/forum/install-update/90...ion-help.html#352192 you need to have the first action of a mass action to use the product_code, which is unique, as the product_alias in your copies. That way, the system won't complain about the alias already existing.

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

  • Posts: 90
  • Thank you received: 5
  • Hikashop Business
1 month 2 days ago #360027

Hi, i created a new product and got the alias already exists error.
Now since i wronte a whole description of the product etc, i'm not fond of having to write it again.
I searched the database and could find the uploaded images but not the product page with the error so i could copy everything i already wrote.
Where can i find the page now it didn't save normally because of the error?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 month 2 days ago #360028

Hi,

Normally, when you save a product and there is an error, you should be redirected back to the product edit page with all the text you already entered in the fields.
So you shouldn't have lost anything.
However, if you then leave the product edit screen, you will loose what you have entered. You need to save again without any error for the data to be stored in the database and you can then find it in your backend.

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

  • Posts: 90
  • Thank you received: 5
  • Hikashop Business
1 month 2 days ago #360032

That's a very sad message to receive as the error message send me to prison and i did not pass start and did not get 500 dollars.
Now i will have to painfully write all texts again.
Hopefully this was a 1 time glitch.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum