After upgrating Apache and php , Some php function not working. Php 7.4.27 to 8.1.9 / Apache 8.1.6

Viewed 29

When upgrating apache and php , imagecreatefromjpeg php function is not working. How can fixed?//////////////// namespace Idesa\Library; use DateTime; use Exception; use PDO; use Idesa\Helper\Helper; switch ($this->fileValues[$this->iCount]["type"]) { case 'image/jpeg': case 'image/pjpeg': case 'image/jpg' //PhotoInsert.php:176 $this->newImage[$this-iCount] = imagecreatefromjpeg($this>fileValues[$this->iCount]['tmp_name']);//jpg $this->photoReplication(); break; ////////////////////////////////////////////////////////////////////////////////////// ERROR: Fatal error: Uncaught Error: Call to undefined function Idesa\Library\imagecreatefromjpeg() in C:\xampp\htdocs\app\library\PhotoInsert.php:176 Stack trace: #0 C:\xampp\htdocs\app\modules\admin\controller\AdminController.php(857): Idesa\Library\PhotoInsert->photoAdd(Array) #1 [internal function]: Idesa\Modules\Admin\Controller\AdminController->photosInsertPost('photos') #2 C:\xampp\htdocs\app\system\App.php(95): call_user_func_array(Array, Array) #3 C:\xampp\htdocs\app\system\App.php(18): Idesa\System\App->startRoute() #4 C:\xampp\htdocs\public\index.php(6): Idesa\System\App->__construct(Array) #5 {main} thrown in C:\xampp\htdocs\app\library\PhotoInsert.php on line 176

0 Answers
Related