News:

Support the VirtueMart project and become a member

Main Menu

Synchronize media to VM brings File for x missing

Started by betterlead, October 25, 2015, 20:14:06 PM

Previous topic - Next topic

betterlead

Hi,

When I "Synchronize media to VirtueMart" I get at least a hundred messages like this: "File for /home/livingstudio/public_html/images/stories/virtuemart/product/secrid-wallet-s-black-amazon.jpg is missing"

I understand this is both a removed product and a removed image. What is still calling for the files? Where can I find this and if possible, remove in  the database? Which table and which column?

This is significant on this site, that I have upgraded from J2.5 & VM2.5 to J3 & VM3

Cheers

My site: https://livingstudio.se
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

Studio 42

Hi,

If you removed the file, you need to remove it from the "media" list. Else you continue to get this message.'File for XXX is missing".

I know it's a pain. Perhaps some core Dev add the feature to remove media not anymore existing.

Regards,
Patrick K

betterlead

Great! Thanks a lot Studio 42.
Yes a filtering option would be nice - one could then simply mark all missing files at once. But it was really quite simple, anyway, when I saw them all with an exclamation sign.

This leads me to next question: Do you happen to know what this message means?:

Error
vmError: COM_VIRTUEMART_URL_NOT_VALID

Thanks again - you made my day and I learned more by spin off effect.
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

Studio 42

Hi,
Quote from: betterlead on October 26, 2015, 09:47:27 AM
This leads me to next question: Do you happen to know what this message means?:

Error
vmError: COM_VIRTUEMART_URL_NOT_VALID
I have do a simple search for COM_VIRTUEMART_URL_NOT_VALID:
if (strpos ($this->file_url, '..') !== FALSE) {
$ok = FALSE;
vmError (vmText::sprintf ('COM_VIRTUEMART_URL_NOT_VALID', $this->file_url));
}

This mean that you have .. in the file url for a media.

betterlead

Hi,

Ok, excuse my ignorance, what would be the cure?
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

GJC Web Design

fix the url .. it is saying u have a double .. in the url

if u provide a text for the constant like 'non valid url:  %s'

the url should also echo out after the error message
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

Studio 42

Quote from: GJC Web Design on October 26, 2015, 23:21:16 PM
fix the url .. it is saying u have a double .. in the url

if u provide a text for the constant like 'non valid url:  %s'

the url should also echo out after the error message
he cannot see the right message (and url) because he have :
vmError: COM_VIRTUEMART_URL_NOT_VALID
this mean no language string at all.

betterlead

Yep, true. I have searched for the constant and couldn't find it.
I'm still "out in the blue".


Skickat från min LG-H815 via Tapatalk

Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

GJC Web Design

Studio 42 ->  thats why I said..  if u provide a text for the constant like 'non valid url:  %s'   ::)

QuoteI have searched for the constant and couldn't find it.

then make it....
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

betterlead

Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

betterlead

Hmmm, I think I need help, because I still don't get it... See attached screen shot.
Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

Jörgen

Hello

Have You added it to both frontend and backend ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

betterlead

Live site runs on Joomla 3.9.24 & VM 3.8.6 10373

PHP: 7.3.26

Milbo

Maybe you have a general path problem? I have no clue, why it should not be translated and BE language should be enough
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

GJC Web Design

To add to the confusion-- in 3.0.11 components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.ini I find line 521

COM_VIRTUEMART_URL_NOT_VALID="Url is not valid"

but life is too short....

just add in administrator\components\com_virtuemart\tables\medias.php ~ line 105

//vmError (vmText::sprintf ('COM_VIRTUEMART_URL_NOT_VALID', $this->file_url));
vmError ('url not valid: '.$this->file_url);
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