JPG images: Error while resizing: vw_attach_thumb_failed. GIF images: Undefined variable written.
I am unable to upload *.jpg image files for some reason. When I try to upload a JPG image as a new wiki attachment, or as a new file for an existing attachment, the process fails with an error next to the 'clear' button:
Code:
Error while resizing: vw_attach_thumb_failed
This issue does not affect *.gif or *.png images.
----
When uploading a *.gif image, there is no loss of functionality, but an error is logged:
ErrorException: Undefined variable: written - vault/core/model/image/metadata/xmp/vw.php:662
This error is similar to issue
#5302, except that it originates from a different vaultwiki source file. Stack trace:
Code:
#0 /path/to/public_html/vault/core/model/image/metadata/xmp/vw.php(662): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/path/to/public...', 662, Array)
#1 /path/to/public_html/vault/core/model/image/metadata/xmp/vw.php(618): vw_Image_MetaData_XMP_Model->build()
#2 /path/to/public_html/vault/core/model/image/metadata/xmp/vw.php(583): vw_Image_MetaData_XMP_Model->construct()
#3 /path/to/public_html/vault/core/model/image/vw.php(1246): vw_Image_MetaData_XMP_Model->update()
#4 /path/to/public_html/vault/core/model/image/vw.php(1201): vw_Image_Instance_Model->assert_metadata(Object(vw_Image_Structure_GIF_Model), Object(vw_Image_Format_GIF_Model), true, 0)
#5 /path/to/public_html/vault/core/model/image/vw.php(994): vw_Image_Instance_Model->assert_metadata_in_object(Object(vw_Image_Format_GIF_Model))
#6 /path/to/public_html/vault/core/controller/dm/attach/thumb/vw.php(410): vw_Image_Instance_Model->resize(180, 115, 'gif')
#7 /path/to/public_html/vault/core/controller/dm/attach/thumb/vw.php(130): vw_DM_Attach_Thumb_Controller->create_thumbnail('gif', Object(vw_Image_Format_GIF_Model), 180, 400)
#8 /path/to/public_html/library/vw/XenForo/DataWriter.php(512): vw_DM_Attach_Thumb_Controller->pre_save(true)
#9 /path/to/public_html/library/XenForo/DataWriter.php(1460): vw_XenForo_DataWriter->_preSave()
#10 /path/to/public_html/library/vw/XenForo/DataWriter.php(192): XenForo_DataWriter->preSave()
#11 /path/to/public_html/vault/core/controller/dm/xf.php(402): vw_XenForo_DataWriter->preSaveWithReturn()
#12 /path/to/public_html/vault/core/controller/dm/attach/file/vw.php(1309): vw_DM_Controller_XF->pre_save()
#13 /path/to/public_html/vault/core/controller/dm/attach/file/vw.php(524): vw_DM_Attach_File_Controller->create_thumbnails()
#14 /path/to/public_html/library/vw/XenForo/DataWriter.php(505): vw_DM_Attach_File_Controller->post_save_each()
#15 /path/to/public_html/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
#16 /path/to/public_html/vault/core/controller/dm/xf.php(436): XenForo_DataWriter->save()
#17 /path/to/public_html/vault/core/controller/ui/ajax/upload/vw.php(125): vw_DM_Controller_XF->save()
#18 /path/to/public_html/library/vw/XenForo/ControllerPublic/Wiki/Ajax.php(50): vw_UI_AJAX_Upload_Controller->execute()
#19 /path/to/public_html/library/XenForo/FrontController.php(369): vw_XenForo_ControllerPublic_Wiki_Ajax->actionIndex()
#20 /path/to/public_html/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#21 /home/auschr1/public_html/index.php(13): XenForo_FrontController->run()
#22 {main}