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 imagecreatefromjp
eg 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