VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: scriner on June 24, 2022, 13:16:09 PM

Title: Empty slug product with id 341, entries exists for language
Post by: scriner on June 24, 2022, 13:16:09 PM
Hello.

Today I have updated Joomla 3.10.9 - > 3.10.10 and VirtueMart 3.8 -> 4.0.2

And now I have error for some products:

Empty slug product with id 341, entries exists for language? ru-RU You may contact the administrator

Screenshot: https://prnt.sc/v4JY1BP7svA_

Most of products displays without errors but little some have message like above. Display of errors disabled anywhere. Please, help me to solve this problem.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: Jörgen on June 24, 2022, 15:18:59 PM
You have to check id 341 and see what is missing for this, skug ?, translation ? etc

editing descriptions when wrong back end language is actiivated can lead to this...

Jörgen
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on August 11, 2022, 18:26:19 PM
About this problem: message about product with I'd 341 shows not in product with Id 341. It have another id.
I have found reason: id 341 - it is a product which I have deleted many time ago. And until update from VM 3 to VM 4 that I'd didn't made any problems to me. But now I see same messages very often.
Solve: I have to create new product and change its id through database directly. It takes many time.

Maybe somebody know how to disable the message? Or may be devepers will fix this problem in nearest relies?
Title: Re: Empty slug product with id 341, entries exists for language
Post by: PRO on August 14, 2022, 01:29:40 AM
did you delete a child product?

I have some "ghost" child products I cant fully delete.



Title: Re: Empty slug product with id 341, entries exists for language
Post by: zaldiar on August 31, 2022, 16:06:48 PM
Same issue with deleted products, I have tried to update database un WM tools but same result...

Is someone have a solution ?

Thx !
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on September 11, 2022, 05:40:38 AM
Quote from: PRO on August 14, 2022, 01:29:40 AM
did you delete a child product?

I have some "ghost" child products I cant fully delete.

I don't remember. But I think that most of products was childs themselves. It was years ago and it wasn't problem until update to virtuemart 4.

I think that this message is a bag that need to be fixed in next release of virtuemart.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on September 11, 2022, 05:45:37 AM
Quote from: zaldiar on August 31, 2022, 16:06:48 PM
Same issue with deleted products, I have tried to update database un WM tools but same result...

Is someone have a solution ?

Temporary solution is to create new product and change its id to that is showing in error through database directly. But it is problem if you see this error in many products, it is too boring.

Thx !
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on January 20, 2023, 08:54:59 AM
Problem is still exist.

Does anybody can say how to disable this error message? may be by editing core files.

I had other message that I need to set VM as menu item (during when I have VM menu item). I had to edit router.php to disable this message.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: sirius on January 20, 2023, 10:10:31 AM
You could try to check if this product with ID 341 is not still attached as a related product to some of product.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on January 20, 2023, 10:44:58 AM
Quote from: sirius on January 20, 2023, 10:10:31 AM
You could try to check if this product with ID 341 is not still attached as a related product to some of product.

No. It is deleted product.

This time, I can fix it manualy by creating new product and chenging its ID to 341 in virtuemart_products and virtuemart_products_ru_ru tables in DB.

But I tired to fix it every time. This error message dont help any way, just irritate.

Best solve may be to disable this message at all.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: macigatto on January 20, 2023, 13:58:34 PM
i have same problem. is there a way to disabled the error message to show ?

thanks
Title: Re: Empty slug product with id 341, entries exists for language
Post by: sirius on January 26, 2023, 09:40:00 AM
Guys,
just look in this other topic, it could help
https://forum.virtuemart.net/index.php?topic=145058.msg516739#msg516739
Title: Re: Empty slug product with id 341, entries exists for language
Post by: bekean23 on April 17, 2023, 06:51:02 AM
Go to the VirtueMart product editing page for the product with ID 341 in the Russian language version of your website. Check to see if the slug field is empty, and if it is, try adding a new slug.
subway surfers (https://subway-surfers.io/home)
Title: Re: Empty slug product with id 341, entries exists for language
Post by: GJC Web Design on April 17, 2023, 09:48:34 AM
Another reason is if u have a "Related Product" configured and later you delete it .. the reference is still there pointing to a non-existent product.
Solve by removing the related product reference
Title: Re: Empty slug product with id 341, entries exists for language
Post by: scriner on August 30, 2023, 11:35:17 AM
OMG, I have found the solve.

Admins and developers don't make attention on this problem because they use EN version and don't see "Empty slug" error. But many users with another frontend language have this error. Just check "virtuemart Empty slug" on google.

Solve in file \administrator\components\com_virtuemart\models\product.php, it needs to comment lines 1725 - 1730.

But in needs to solve again after update. And don't delete products anytime, this is the reason of this problem appears.
Title: Re: Empty slug product with id 341, entries exists for language
Post by: PRO on September 01, 2023, 21:48:05 PM
If I log out, and log back in, it disappears