VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: HenrikS on January 17, 2020, 16:36:48 PM

Title: Image upload not working 3.6.11.10247
Post by: HenrikS on January 17, 2020, 16:36:48 PM
Product Image upload is not working in version 3.6.11.10247..... it was working fine in 3.6.10.10211.
Title: Re: Image upload not working 3.6.11.10247
Post by: HenrikS on January 17, 2020, 17:29:46 PM
Also error when trying to install com_virtuemart.3.6.11.10247_ext_aio.zip

com_virtuemart.3.6.10.10211_ext_aio.zip installing ok.
Title: Re: Image upload not working 3.6.11.10247
Post by: marvays on January 18, 2020, 08:08:37 AM
Quote from: HenrikS on January 17, 2020, 17:29:46 PM
Also error when trying to install com_virtuemart.3.6.11.10247_ext_aio.zip

com_virtuemart.3.6.10.10211_ext_aio.zip installing ok.

me too
Title: Re: Image upload not working 3.6.11.10247
Post by: GJC Web Design on January 18, 2020, 10:13:41 AM
QuoteProduct Image upload is not working in version 3.6.11.10247..... it was working fine in 3.6.10.10211.

I'm using VirtueMart 3.6.11 10248 and product image upload works fine.

What is the error you are experiencing?
Title: Re: Image upload not working 3.6.11.10247
Post by: diri on January 18, 2020, 12:40:45 PM
using 3.6.11.10247:

Create new product
Add several product data
save
Add image per Upload

Result:
Image is uploaded.
Image is not found by VM (neither via search with filename nor by visual search).
Title: Re: Image upload not working 3.6.11.10247
Post by: jenkinhill on January 18, 2020, 14:11:31 PM
Hmm. Not working for me in 3.6.11 10249  - but images are uploaded but can be searched and installed for the product.
Title: Re: Image upload not working 3.6.11.10247
Post by: diri on January 19, 2020, 09:11:24 AM
Did you save before searching?
Title: Re: Image upload not working 3.6.11.10247
Post by: jenkinhill on January 19, 2020, 12:13:08 PM
Quote from: diri on January 19, 2020, 09:11:24 AM
Did you save before searching?

Of course, you have to save to "upload" the image.

Now found that fancybox is not loading on FE in 3.6.11 10249
Title: Re: Image upload not working 3.6.11.10247
Post by: GJC Web Design on January 20, 2020, 14:09:01 PM
Just had a report from client that yes .. as Jenks describes.. 
Image isn't found by VM

is this the same reported problem by Maxim in the testers group?

I rechecked VirtueMart 3.6.11 10247 on vanilla and saving parent category converts category image path to /images/virtuemart/category/images/virtuemart/product/tshirt5.png

Title: Re: Image upload not working 3.6.11.10247
Post by: GJC Web Design on January 20, 2020, 15:32:45 PM
image is uploaded to correct folder/path
correct entries are made in the virtuemart_product_medias & virtuemart_medias tables.
But in the admin dialog it doesn't appear but it can be searched for and "attached" via the "Search for images" dialog..
strangely if u use the replace dialog ( assuming there's already an image there) it all works as normal

Title: Re: Image upload not working 3.6.11.10247
Post by: Milbo on January 20, 2020, 16:38:05 PM
Maybe the problem is the name?
Title: Re: Image upload not working 3.6.11.10247
Post by: GJC Web Design on January 20, 2020, 19:21:55 PM
standard names .. lowercase, no spaces,  std. letters
Title: Re: Image upload not working 3.6.11.10247
Post by: diri on January 21, 2020, 06:20:01 AM
@jenkins:
I ment an additional save (or save & close + re-open).

The rest is as described by GJC (filename short, alpha only, no special chars etc). At test system number of images in product directory is 5.000 + something.

I confirm errors with AIO like HenrikS mentioned:
Installation gives white screen but installs.
Afterwards there is an error with Skrill plugin which can not find a required file (in sub-direcotory helper of plugin ?!?). Skrill also wants an update to a version that doesn't exist. I suppose there was an error at system being used for packaging (build).

Edit:
skrill.php

...
if (!class_exists('SkrillPaymentCore'))
{
$path = VMPATH_ROOT . DS . 'plugins' . DS . 'vmpayment' . DS . 'skrill';
$path .= DS . 'helpers' . DS . 'core.php';

require $path;
}
...

Title: Re: Image upload not working 3.6.11.10247
Post by: GJC Web Design on January 21, 2020, 09:18:26 AM
confirm media problem fixed in 3.6.11.10250
Title: Re: Image upload not working 3.6.11.10247
Post by: Milbo on January 21, 2020, 12:57:34 PM
http://dev.virtuemart.net/attachments/1246/com_virtuemart.3.6.11.10251_package_or_extract.zip
Title: Re: Image upload not working 3.6.11.10247
Post by: diri on January 21, 2020, 14:02:03 PM
First test of 10251 successfull. Therefor:

Confirm media problem fixed as well as AIO problem.
Title: Re: Image upload not working 3.6.11.10247
Post by: diri on January 21, 2020, 14:27:45 PM
Still a problem with Skrill plugin:

Installed version: 1.0
Available version: 3.2.1

Edit:
Tested on two different systems (PHP 7.2.x, 7.3.13)