• Welcome to XF2 Addons. All the XF2 addons located in the Resources area are available for download once you upgrade your account to Premium membership. In addition, Premium members will get technical support. Premium membership costs only $25.00 USD a year. Once the year has expired you can continue to use the installed addons on your forum as long as you like.

Convert Image addon not working: Maximum attachment image dimensions must be greater than 0


#1
Hi,
I tried to use Convert Image add-on but I always get error like below
Code:
ErrorException: Maximum attachment image dimensions must be greater than 0. src/XF/Error.php:75

Stack trace
#0 src/addons/Andy/ConvertImage/Listener.php(74): XF\Error->logError('Maximum attachm...')
#1 [internal function]: Andy\ConvertImage\Listener::threadEntityPostSave(Object(QuestionThreads\XF\Entity\Post))
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF.php(561): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#4 src/XF/Mvc/Entity/Entity.php(1143): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#5 src/XF/Service/Post/Editor.php(165): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Post\Editor->_save()
#7 src/XF/Pub/Controller/Post.php(139): XF\Service\Post\Editor->save()
#8 src/addons/EWR/Porta/Pub/Controller/Post.php(35): XF\Pub\Controller\Post->actionEdit(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(249): EWR\Porta\Pub\Controller\Post->actionEdit(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Edit', 'json', Object(XF\Mvc\ParameterBag), 'forums', Object(QuestionThreads\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}
And the addon does not Converts hot linked images to attachments
Maximum attachment image dimensions set to 1500

Please help!
 

Andy

Administrator
Staff member
#2
You need to set this:

Admin control panel -> Setup -> Options -> Attachments -> Maximum attachment image dimensions

1515800095603.png
 
Top