Author Topic: Can not upload product images after 3.6.11.10245 update  (Read 997 times)

lostmail

  • Jr. Member
  • **
  • Posts: 280
Can not upload product images after 3.6.11.10245 update
« on: March 22, 2020, 18:15:08 pm »
After update I can not upload product images.
I select an image for upload and click safe and the product image page returns but no image uploaded or visible.
the image is upladed - i can see it in the upper field where you can search for images in the image path.

Default "no image" hast now strange dimensions too in frontend and backend ?

Normally I upload a new image and click save. After that I see the resized image (thumbnail) and the big image.
this is not the case  anymore now...;-(

UPDATE:

I now have to make 2 Steps:
1.) upload the image and save
2.) search for images, select it and save the product.

Very uncomfortable now this 2-step image upload...why that ??

UPDATE 2:

I seems that only the first image has to be uploaded this 2-step way.
Additional images can be uploaded only with upload - they are than correct visible.

It seems to be a problem with the first image upload of a product.
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27730
  • Always on vacation
    • Jenkin Hill Internet
Re: Can not upload product images after 3.6.11.10245 update
« Reply #1 on: March 23, 2020, 10:57:11 am »
And with the last beta release,   com_virtuemart.3.6.11.10289 ?   
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.0 10314 on Joomla 3.9.16 PHP 7.0.33

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #2 on: March 23, 2020, 11:30:22 am »
Ji Jenkinhill,

glad to see you  ;-)

Installed the update and tried upload but it still does not work with the first image...
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27730
  • Always on vacation
    • Jenkin Hill Internet
Re: Can not upload product images after 3.6.11.10245 update
« Reply #3 on: March 23, 2020, 11:52:11 am »
Hmm, I'm using the latest test version, VM 3.6.11 10291 and there is no issue with first product image upload.

You are the only one to report this, but there are not a large number of users testing the beta versions. I assume you have checked the console for errors and have no plugins likely to cause problems?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.0 10314 on Joomla 3.9.16 PHP 7.0.33

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #4 on: March 23, 2020, 19:31:07 pm »
I check the "media" listing and find the not uploaded images with strange information here.

It seems there is something wrong with upload function that the first image of a product is not automatically saved and linked correct..?
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #5 on: March 23, 2020, 19:43:24 pm »
Don`t know if it`s right but I have in Configuration/Templates => Product Media URL : images/stories/virtuemart/product/

But the wrong uploaded and not findable images  under media show the path: images/virtuemart/product/004_05-1584946800

I think it`s something going wrong here....??

Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9650
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Can not upload product images after 3.6.11.10245 update
« Reply #6 on: March 23, 2020, 23:36:06 pm »
try changing Product Media URL : images/virtuemart/product/
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #7 on: March 24, 2020, 07:14:51 am »
no - still the same.
When a product has no image and i upload a new one there is still only the default "no image" to see.
Changed back to previous path (as it is since first installation i guess)

Quote
Message
File /www/htdocs/w014c4cc/xxxxx/_TEST/images/stories/virtuemart/product/004_21.jpg uploaded
Product successfully saved

The image is uploaded well but it is not visible => "no image"....??

For testing I try to upload an image for a category - it`s working well... :-\

And no - there are not additional extensions in TEST System - only VM core installation without any modifications.
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #8 on: March 24, 2020, 08:15:32 am »
UPDATE:
It seems the file from administrator/components/com_virtuemart/models/product.php has been changed.

I uploaded the file from the official release and the upload is working well as before the update to 3.6.11.10245

This file: administrator/components/com_virtuemart/models/product.php seems to have a bug....!

Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #9 on: March 24, 2020, 21:21:49 pm »
Another strange thing:
In the images tab of products the text for "Image Alt-Text" does not change when I add an image.

I do have to delete it manually or overwrite it...normally it should be the default file name as i remember.

Don`t know why/where this is coming from now...

As i told you I installed the BETA package 3.6.11.10245 and changed the file administrator/components/com_virtuemart/models/product.php against the file from
latest STABLE package as the image upload did not work.
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27730
  • Always on vacation
    • Jenkin Hill Internet
Re: Can not upload product images after 3.6.11.10245 update
« Reply #10 on: March 25, 2020, 11:05:54 am »
I thought this was intended. The product name is set for the image title and you can enter a correct alt entry yourself. It should not be the image filename, but should be a suitable description of what the image shows.  I don't like to see the default "No image set ", though.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.0 10314 on Joomla 3.9.16 PHP 7.0.33

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #11 on: March 25, 2020, 19:43:00 pm »
I thought this was intended. The product name is set for the image title and you can enter a correct alt entry yourself. It should not be the image filename, but should be a suitable description of what the image shows.  I don't like to see the default "No image set ", though.

I made a language override for COM_VIRTUEMART_NO_IMAGE_SET with empty text in it - now this text is gone...
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

lostmail

  • Jr. Member
  • **
  • Posts: 280
Re: Can not upload product images after 3.6.11.10245 update
« Reply #12 on: March 25, 2020, 19:50:44 pm »
OK - so please rework/rapair the upload function....
Path changing in config made no change.
First uploaded image is always not visible (only "no image available).
File from STABLE works fine - BETA not.
Joomla 3.x + VM 3.6.x (for Testing without any additional Extensions)

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3647
  • using Matomo instead of Google Analytics
Re: Can not upload product images after 3.6.11.10245 update
« Reply #13 on: March 25, 2020, 20:10:22 pm »
Don`t know if it`s right but I have in Configuration/Templates => Product Media URL : images/stories/virtuemart/product/

But the wrong uploaded and not findable images  under media show the path: images/virtuemart/product/004_05-1584946800
I think it`s something going wrong here....??

I guess part of the problem is related to the product image path in the VM configuration. Some time ago the /stories had been eliminated and newer version of VM use the path images/virtuemart/product/ for storing product images. Maybe this would help a little bit, too: https://forum.virtuemart.net/index.php?topic=137514.0

I did set up a new VM shop with version number 10289 a few days ago and had no problem with the images. However, I can confirm that the 'Displayed image subtitle' and 'Image Alt-Text' fields are not automatically filled with the image file name anymore, which probably is a bug. I usually ftp my images and then synchronize them with the button in the VM Tools. In this case the 'Displayed image subtitle' and 'Image Alt-Text' fields are still filled with the file name automatically (which I have to change afterwards).
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3165
  • VirtueMart Version: 3.6.11
Re: Can not upload product images after 3.6.11.10245 update
« Reply #14 on: March 26, 2020, 10:55:24 am »
Hi

Regarding alt-text (file_meta in the media table)

Uploading in media handler uses a "no-image-set" which can then be deleted or overwritten manually.

I use the image handling from the product images tab  -  upload file browse button (with none selected as radio)  -
- This function works and is the quickest option (for me at present)
- No alt-text is auto set (file_meta) using this method  - It has never been set and should not be set now
- Alt-data should be created manually to describe the image before saving - but note: that this will be used whenever the image is displayed - This is significant when the image is displayed on multiple products


Display-
For displaying images for products on a category page VM uses displayMediaThumb -

This will use the first none empty entry when "filling" the $file_alt - in this sequence.

1. file_meta
2. file_description
3. file_name
4. empty

As I have empty file_meta and file_description and I use a single image on multiple items I get the filename as a file_meta (alt-text) - when the category display is shown (Not ideal)

Product override
However at a single product level I override this behaviour and use the product name

Code: [Select]
if (empty ($this->product->images[0]->file_meta)) {
$this->product->images[0]->file_meta  = $this->product->product_name;
}




regards
A

Joomla 3.9.18
php 7.3