News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Empty slug product with id 341, entries exists for language

Started by scriner, June 24, 2022, 13:16:09 PM

Previous topic - Next topic

scriner

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.

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

scriner

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?

PRO

did you delete a child product?

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




zaldiar

Same issue with deleted products, I have tried to update database un WM tools but same result...

Is someone have a solution ?

Thx !

scriner

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.

scriner

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 !

scriner

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.

sirius

You could try to check if this product with ID 341 is not still attached as a related product to some of product.
J3.10.12 | PHP 7.4.33 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 4.4.0.11095

scriner

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.

macigatto

i have same problem. is there a way to disabled the error message to show ?

thanks

sirius

J3.10.12 | PHP 7.4.33 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 4.4.0.11095

bekean23

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

scriner

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.