A couple of undefined index errors during attachment upload: 'attachfileid' & 'extension'
These errors appear to be happening when new attachments are uploaded. I'm not sure if cause has anything to do issue
4968. Since I'm not getting undefined errors for 'width' and the line numbers in vault/core/controller/asset/vw.php are different I haven't tried the workaround offered there.
1.1)
ErrorException: Undefined index: attachfileid - vault/core/controller/asset/vw.php:310
Generated By: [name], Monday at 11:07 AM
1.2)
ErrorException: Undefined index: attachfileid - vault/core/controller/asset/vw.php:312
Generated By: [name], Monday at 11:07 AM
1.1 and 1.2 have the same stack trace and request state except for the line number in vault/core/controller/asset/vw.php (included above).
Code:
#0 /path/to/vault/core/controller/asset/vw.php(310): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/auschr1/x...', 310, Array)
#1 /path/to/vault/core/controller/asset/vw.php(56): vw_Asset_Controller->verify_hash('b097f6b8517b0b9...')
#2 /path/to/library/vw/XenForo/ControllerPublic/Wiki/Asset.php(42): vw_Asset_Controller->resolve()
#3 /path/to/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki_Asset->actionIndex()
#4 /path/to/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /path/to/index.php(13): XenForo_FrontController->run()
#6 {main}
2)
ErrorException: Undefined index: extension - vault/core/controller/asset/vw.php:132
Generated By: [name], Monday at 11:07 AM
Code:
#0 /path/to/vault/core/controller/asset/vw.php(132): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/auschr1/x...', 132, Array)
#1 /path/to/library/vw/XenForo/ControllerPublic/Wiki/Asset.php(42): vw_Asset_Controller->resolve()
#2 /path/to/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki_Asset->actionIndex()
#3 /path/to/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /path/to/index.php(13): XenForo_FrontController->run()
#5 {main}
The request state is the same for 1.1, 1.2 and 2.
Code:
array(3) {
["url"] => string(96) "https://path/to/wiki-asset/?hash=b097f6b8517b0b98ca99cbedd76d7686&x=180"
["_GET"] => array(2) {
["hash"] => string(32) "b097f6b8517b0b98ca99cbedd76d7686"
["x"] => string(3) "180"
}
["_POST"] => array(0) {
}
}