VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Ed Kiefer on April 06, 2021, 18:51:22 pm

Title: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: Ed Kiefer on April 06, 2021, 18:51:22 pm
I'm running into this problem also. My thumbnails don't generate on their own. I have to upload them manually. I just upgraded from PHP 7.2 to 7.3 and now I'm receiving this error. I can still add photos to the product, but it doesn't generate a thumbnail.
Quote
Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /home/luxefi5/public_html/administrator/components/com_virtuemart/helpers/mediahandler.php on line 437

Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /home/luxefi5/public_html/administrator/components/com_virtuemart/helpers/mediahandler.php on line 438

Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /home/luxefi5/public_html/administrator/components/com_virtuemart/helpers/mediahandler.php on line 439

Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /home/luxefi5/public_html/administrator/components/com_virtuemart/helpers/mediahandler.php on line 440
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: GJC Web Design on April 06, 2021, 19:26:36 pm
Versions?

I have been running my sites on php7.3 for months
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: Ed Kiefer on April 06, 2021, 19:40:59 pm
This is the only issue I've had with PHP 7.3. Other than this my site runs great.
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: pinochico on April 06, 2021, 19:44:18 pm
You forgot version VM, sure :)
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: PRO on April 06, 2021, 21:21:19 pm
is the gd library enabled?

I believe it still uses it.

Usually you have to configure each php version on server
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: Ed Kiefer on April 08, 2021, 16:57:34 pm
VirtueMart 3.8.8
I just got with my host and they enabled the GD library. The errors are gone but the thumbnails still don't generate on their own.
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: pinochico on April 08, 2021, 17:47:56 pm
after enable you try vm tools for creating thumbs for existing images - tools you can use after setup in configuration
Title: Re: My thumbnails don't generate on their own since upgrading to PHP 7.3
Post by: PRO on April 09, 2021, 21:55:43 pm
dynamic thumbs turned on?


they are generated when you view the frontend