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

Do we need this? from mediahandler.php

Started by aha, April 02, 2016, 05:43:43 AM

Previous topic - Next topic

aha

In file
\administrator\components\com_virtuemart\helpers\mediahandler.php
line 

279 //Do we need this?
280   /*   if(!empty($this->file_url) && empty($this->file_url_thumb)){
281         $this->displayMediaThumb('',true,'',false);
282      }*/

off
Why?

But They Need
without them the second and subsequent picture in the administrative part of the list of products displayed incomprehensible delay.
If you make the line active all works well.

Jörgen

#1
Hello

I can see that this has been commented out since 3.0.12. Right now I use 3.0.8 and if I try to comment these lines in 3.0.8 I get the same results. What version are You using? I just can´t believe that this has been malfunctioning since ver 3.0.12 :)

When started this to show for You ?

regards

Jörgen @ Kreativ Fotografi

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

aha

Quote from: Jörgen on April 02, 2016, 14:22:40 PM
Hello

I can see that this has been commented out since 3.0.12. Right now I use 3.0.8 and if I try to comment these lines in 3.0.8 I get the same results. What version are You using? I just can´t believe that this has been malfunctioning since ver 3.0.12 :)

When started this to show for You ?

regards

Jörgen @ Kreativ Fotografi

That's right. It started with version 3.0.12.
Up to version 3.0.11.4 is operating normally.

Regards
aha

Milbo

Quote from: aha on April 02, 2016, 05:43:43 AM
In file
\administrator\components\com_virtuemart\helpers\mediahandler.php
line 

279 //Do we need this?
280   /*   if(!empty($this->file_url) && empty($this->file_url_thumb)){
281         $this->displayMediaThumb('',true,'',false);
282      }*/

off
Why?

Because the file_url_thumb is dynamically generated in displayMediaThumb by $file_url_thumb = $this -> getFileUrlThumb($width, $height); and so the $this->file_url_thumb is empty. It is now always empty, except an override is defined.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

After a second/third etc image is uploaded & saved for a product it does not appear in the BE until the FE product page with that image is viewed. On refreshing the BE page the new thumb then appears.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

GJC Web Design

ah .. so the thumb is only created when FE accessed .. makes sense i guess
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