undefined function imagecreatefromjpeg()

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
AdibDanial
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Sep 14, 2023 2:51 am

undefined function imagecreatefromjpeg()

Post by AdibDanial » Thu Sep 21, 2023 2:23 am

Call stack
# Function Location
1 () JROOT\administrator\components\com_speasyimagegallery\helpers\speasyimagegallery.php:130
2 SpeasyimagegalleryHelper::createThumbs() JROOT\administrator\components\com_speasyimagegallery\controllers\album.php:65
3 SpeasyimagegalleryControllerAlbum->postSaveHook() JROOT\libraries\src\MVC\Controller\FormController.php:772
4 Joomla\CMS\MVC\Controller\FormController->save() JROOT\libraries\src\MVC\Controller\BaseController.php:678
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\administrator\components\com_speasyimagegallery\speasyimagegallery.php:26
6 require_once() JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:71
7 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT\libraries\src\Dispatcher\LegacyComponentDispatcher.php:73
8 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT\libraries\src\Component\ComponentHelper.php:361
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:143
10 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:186
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:293
12 Joomla\CMS\Application\CMSApplication->execute() JROOT\administrator\includes\app.php:61
13 require_once() JROOT\administrator\index.php:32

From error above, can anyone explain me the error and how to solve it?

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2769
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: undefined function imagecreatefromjpeg()

Post by SharkyKZ » Thu Sep 21, 2023 5:08 am

You need to enable GD extension in your PHP installation. Try that through your server's cPanel or ask your host.

AdibDanial
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Sep 14, 2023 2:51 am

Re: undefined function imagecreatefromjpeg()

Post by AdibDanial » Thu Sep 21, 2023 6:03 am

To be honest I am still not understand how to download GD extension in my PHP. Can someone guide me this?

AdibDanial
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Sep 14, 2023 2:51 am

Re: undefined function imagecreatefromjpeg()

Post by AdibDanial » Thu Sep 21, 2023 6:10 am

I already solve the problem. Thank you for your help.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24734
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: undefined function imagecreatefromjpeg()

Post by pe7er » Thu Sep 21, 2023 7:12 am

AdibDanial wrote:
Thu Sep 21, 2023 6:10 am
I already solve the problem. Thank you for your help.
You need to have root access to a server to install GD.
Could you please share how you solved it?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

AdibDanial
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Sep 14, 2023 2:51 am

Re: undefined function imagecreatefromjpeg()

Post by AdibDanial » Tue Oct 03, 2023 2:03 pm

pe7er wrote:
Thu Sep 21, 2023 7:12 am
AdibDanial wrote:
Thu Sep 21, 2023 6:10 am
I already solve the problem. Thank you for your help.
You need to have root access to a server to install GD.
Could you please share how you solved it?


Sure. Since I use XAMPP, then I opened my XAMPP and click Config on Apache. find the name "PHP (php.ini)" and click it. Scroll down until you find ";Extension=GD". as it seems here, semicolon at the beginning of sentence is working as disable function. So take out the semicolon from that sentence and everything is already settled.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24734
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: undefined function imagecreatefromjpeg()

Post by pe7er » Tue Oct 03, 2023 2:58 pm

Thanks for sharing your solution!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Post Reply

Return to “Extensions for Joomla! 4.x”