[FIXED] [4.4.4] [Bug] - Empty url to image after saving product

Started by iWim, January 06, 2025, 12:17:36 PM

Previous topic - Next topic

iWim

After saving a product with an image, the url to the image is empty.
<img src="/" ...>The image does exist.

The shop will now (of course) display the missing image image.

Clicking the missing image image displays the correct (large) image.
(Not in a modal, but in the same browser window as the shop. Maybe another bug? I need to check that better)

VM4.4.4
J5.2.2

Edit:
The not opening an image in a modal seems to only happen when the missing image image is displayed.

WebStuff

I am having the same issue but only on newer products.

Roderic

I think it's due to the new checkbox, that is not automatically checked.

"added property "isImage" for medias, works BC"

Jumbo!

Quote from: Roderic on January 06, 2025, 15:24:31 PMI think it's due to the new checkbox, that is not automatically checked.

"added property "isImage" for medias, works BC"

Yes, that's right. It will be fixed in the upcoming update, which will be released soon.

WebStuff

It seems that all my #__virtuemart_medias database entries had been cleared for some reason either during the update to vm4.4.4 or possibly when I tried using the "Synchronise media to Virtuemart" button under SHOP to resolve it.
Luckily I had a backup of the table and once restored my product images are back.

WebStuff

#5
After a  bit of research there is some sort of "error" on the product edit page that when saving any new product information if that checkbox mentioned by  Roderic isn't ticked the image disappears but the good news is that it comes back if you tick the box and save again.
Should really be ticked by default in my opinion devs. :)

Hope this helps.

iWim

Thank you.
I also see the notes in the news article.

Looking forward for the update.

To confirm:
Checking COM_VIRTUEMART_FILES_FORM_FILE_ISIMAGE does display the image again.

Notes:
* Language files have not been updated with the new LANGUAGE_CONSTANT yet (en-GB/nl-NL).
What should it translate to? "Is image"?

** As I see it now you have to check that an image, in the block IMAGE information, under tab Product IMAGES is in fact an IMAGE... :o
Let's not add options for the sake of adding options.
When a new option is added explain why it was added and what its purpose is.


WebStuff

Well I've just had a manager on the phone to me that had put on 200 products and none of the images were showing up as they had never had to tick that box before nor even noticed it this time.
Easy fix now I know what it is but this is the sort of thing that will happen with these ill-conceived updates.

fotonio

If you understand mysql language you can go to virtuemart_medias table in your DB and run this query:
UPDATE `_virtuemart_medias` SET `is_image`=1 WHERE `virtuemart_media_id`> your media id number here.

Setting is_image=1 is the same with ticking the box in the product edit and save.

Renata

Quote from: Jumbo! on January 06, 2025, 16:24:16 PM
Quote from: Roderic on January 06, 2025, 15:24:31 PMI think it's due to the new checkbox, that is not automatically checked.

"added property "isImage" for medias, works BC"

Yes, that's right. It will be fixed in the upcoming update, which will be released soon.

Dear Jumbo!

I still see no update where this bug is fixed. As a result of that i cannot update Joomla to the latest 5 version. This has as result, that the website itself doesn't has the latest bugfixes and/or latest security fixes.

We do not have the membership (sorry). Please when can we espect a new version where this bug is fixed?

I hope to hear from you soon.

ps i understand there is a mannualy bug fix in the database as fotonio describes here above. If it takes a long time for us to wait for the official new release for nonmembers, could you please advise where exactly i have to pu that script in the database?

I hope to hear from you soon
Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign, Joomla websites and serverhosting.