On my test environment I just update from Joomla 3 to Joomla 4.2.8 and from Virtuemart 3 to Virtuemart 4.0.12 10777
When I go to "Shop" in Components/Virtuemart/Shop (url administrator/index.php?option=com_virtuemart&view=user&task=editshop) on PHP 7.4 there are no problems.
But when I switch to PHP 8.0 or 8.1, then the "0 Undefined constant "IMG_GIF" appears.
Call stack
# Function Location
1 () JROOT\administrator\components\com_virtuemart\helpers\mediahandler.php:437
2 VmMediaHandler->displaySupportedImageTypes() JROOT\administrator\components\com_virtuemart\helpers\mediahandler.php:1415
3 VmMediaHandler->displayFileHandler() JROOT\administrator\components\com_virtuemart\helpers\mediahandler.php:1107
4 VmMediaHandler->displayFilesHandler() JROOT\administrator\components\com_virtuemart\views\user\tmpl\edit_vendor.php:65
5 include() JROOT\libraries\src\MVC\View\HtmlView.php:410
Is that mediahandler.php file not updated? Or do I need some configuration else?
Who knows the solutions?
Never mind, I found the solution.
The PHP 8 didn't have GD library (extension=gd ) enabled. It is working now.