Renegade
Well-known member
This is while uploading an image and saving it on a custom add-on I am using.
Error InfoXenForo_Exception: Invalid image type given. Expects IMAGETYPE_XXX constant. - library/XenForo/Image/Gd.php:92
Generated By: test, 9 minutes ago
Stack Trace
#0 [internal function]: XenForo_Image_Gd::createFromFileDirect('/tmp/pdtl3v...', NULL)
#1 /home/dks/public_html/testin/library/XenForo/Image/Abstract.php(181): call_user_func(Array, '/tmp/pdtl3v...', NULL)
#2 /home/dks/public_html/testin/library/PdTl/Model/PTUtils.php(485): XenForo_Image_Abstract::createFromFile('/tmp/pdtl3v...', NULL)
#3 /home/dks/public_html/testin/library/PdTl/ControllerPublic/PTHome/Category.php(88): PdTl_Model_PTUtils->saveImage(3, 'http://dxo....', 'tablets-icon.jp...')
#4 /home/dks/public_html/testin/library/XenForo/FrontController.php(335): ProdsTool_ControllerPublic_PTHome_Category->actionAdd()
#5 /home/dks/public_html/testin/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/dks/public_html/testin/index.php(13): XenForo_FrontController->run()
#7 {main}