Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Ideal Related Articles (iRelated) displays related articles to Joomla articles. Quickly increase your readers' engagement with your articles by adding Ideal Related Articles inside your content.

Product Page

PHP Exception while trying to generate Thumbnails for jpg extensions

7 months 2 weeks ago #27041 by Polarius18
Dear Douglas,

currently I notice on some articles (depending on category) some strange Error, which is indicating the plugin is trying to call a php function that does not exists (but imagecreatefromjpeg does!):


call_user_func(): Argument #1 ($callback) must be a valid callback, function "imagecreatefromJPG" not found or invalid function name

administrator\components\com_irelated\src\Helper\ImageHelper.php

2023-09-09T21:15:37+00:00 CRITICAL 127.0.0.1 error Uncaught Throwable of type TypeError thrown with message "call_user_func(): Argument #1 ($callback) must be a valid callback, function "imagecreatefromjpg" not found or invalid function name". Stack trace: #0 [ROOT]\administrator\components\com_irelated\src\Helper\ImageHelper.php(318): call_user_func('imagecreatefrom...', 'C:\\xampp\\htdocs...')
#1 [ROOT]\administrator\components\com_irelated\src\Helper\ImageHelper.php(241): IdealExtensions\Component\Irelated\Administrator\Helper\ImageHelper->_resizeImage('C:\\xampp\\htdocs...', Object(stdClass), Object(stdClass), Array, 'C:\\xampp\\htdocs...')
#2 [ROOT]\administrator\components\com_irelated\src\Helper\ImageHelper.php(467): IdealExtensions\Component\Irelated\Administrator\Helper\ImageHelper->resize('images/tierverm...', 340, 253, true, '0')
#3 [ROOT]\administrator\components\com_irelated\src\Helper\ArticleHelper.php(275): IdealExtensions\Component\Irelated\Administrator\Helper\ImageHelper->renderImage('crop', 'Erfolgsgeschich...', '/tiervermittlun...', 'images/tierverm...', 'Erfolgsgeschich...', Object(Joomla\Registry\Registry), 340, 253, 'class="pull-lef...')
#4 [ROOT]\modules\mod_irelated\tmpl\default.php(42): IdealExtensions\Component\Irelated\Administrator\Helper\ArticleHelper::getImageFromArticle(Object(stdClass), Object(Joomla\Registry\Registry), Array)
#5 [ROOT]\modules\mod_irelated\mod_irelated.php(61): require('C:\\xampp\\htdocs...')
#6 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(52): include('C:\\xampp\\htdocs...')
#7 [ROOT]\libraries\src\Dispatcher\ModuleDispatcher.php(55): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('C:\\xampp\\htdocs...', NULL)
#8 [ROOT]\administrator\cache\t4core\ModuleHelper.php(281): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch()
#9 [ROOT]\administrator\cache\t4core\ModuleHelper.php(161): Joomla\CMS\Helper\_JModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array)
#10 [ROOT]\libraries\src\Document\Renderer\Html\ModuleRenderer.php(99): Joomla\CMS\Helper\_JModuleHelper::renderModule(Object(stdClass), Array)
#11 [ROOT]\libraries\src\Document\Renderer\Html\ModulesRenderer.php(50): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array, NULL)
#12 [ROOT]\libraries\src\Document\HtmlDocument.php(566): Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('main-bottom-1', Array, NULL)
#13 [ROOT]\libraries\src\Document\HtmlDocument.php(853): Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'main-bottom-1', Array)
#14 [ROOT]\libraries\src\Document\HtmlDocument.php(638): Joomla\CMS\Document\HtmlDocument->_renderTemplate()
#15 [ROOT]\libraries\src\Application\CMSApplication.php(1025): Joomla\CMS\Document\HtmlDocument->render(false, Array)
#16 [ROOT]\libraries\src\Application\SiteApplication.php(724): Joomla\CMS\Application\CMSApplication->render()
#17 [ROOT]\libraries\src\Application\CMSApplication.php(298): Joomla\CMS\Application\SiteApplication->render()
#18 [ROOT]\includes\app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#19 [ROOT]\index.php(32): require_once('C:\\xampp\\htdocs...')
#20 [ROOT]\pre_cache\index.php(277): include('C:\\xampp\\htdocs...')
#21 [ROOT]\pre_cache\index.php(260): CacheableRequest::FILL_FROM_JOOMLA_RAW('C:\\xampp\\htdocs...')
#22 [ROOT]\pre_cache\index.php(95): CacheableRequest->fillFromJoomla('C:\\xampp\\htdocs...', Array, Array)
#23 [ROOT]\pre_cache\index.php(61): loadJoomlaResponseAndCacheIfPossible(Object(LastModManager), Object(CacheManager), false, 0, '/tiervermittlun...')
#24 [ROOT]\pre_cache\index.php(24): processDefaultRequest()
#25 [ROOT]\pre_cache_index.php(3): include('C:\\xampp\\htdocs...')
#26 {main}

My System:
  • Ideal Related Articles 4.3.4
    Joomla 4.3.4
    PHP 8.1.22

I am not sure which change in my System had trigger this exception. But I can confirm that we have some images with the file Extension jpg and not jpeg. They should handled the same way.

Kind regards,

Markus Bruhn

Please Log in or Create an account to join the conversation.

7 months 2 weeks ago #27043 by support
Dear Markus,

Thank you for contacting us today.

I sent you an email with the fix and I'll add it to the next release.

Let me know if it works.

Best regards,

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback