Duplicate Error while uploading attachments on 2.3 Beta 8

Chromaniac

Well-known member
Affected version
2.3 Beta 8
Code:
TypeError: XF\Data\Exif::getExifTagName(): Argument #1 ($tagId) must be of type int, string given, called in /xf-beta/src/XF/Data/Exif.php on line 18 in src/XF/Data/Exif.php at line 35
XF\Data\Exif->getExifTagName() in src/XF/Data/Exif.php at line 18
XF\Data\Exif->getExifData() in src/XF/Http/Request.php at line 1164
XF\Http\Request->getFileExifData() in src/XF/Http/Request.php at line 1127
XF\Http\Request->getFile() in src/XF/Pub/Controller/Attachment.php at line 88
XF\Pub\Controller\Attachment->actionUpload() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2607
XF\App->run() in src/XF.php at line 533
XF::runApp() in index.php at line 20

Happening on my regular install and a fresh install.
 
Can confirm same result. (vanilla, fresh install)

Code:
TypeError: XF\Data\Exif::getExifTagName(): Argument #1 ($tagId) must be of type int, string given, called in /home/nginx/domains/xf23b8/public/src/XF/Data/Exif.php on line 18 src/XF/Data/Exif.php:35 

Generated by: ENF_Beta May 30, 2024 at 4:33 AM 

Stack trace

#0 src/XF/Data/Exif.php(18): XF\Data\Exif->getExifTagName('undefined')
#1 src/XF/Http/Request.php(1164): XF\Data\Exif->getExifData(Array)
#2 src/XF/Http/Request.php(1127): XF\Http\Request->getFileExifData()
#3 src/XF/Pub/Controller/Attachment.php(88): XF\Http\Request->getFile('upload', false, false)
#4 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Attachment->actionUpload(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Upload', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Attachment), NULL)
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Attachment), NULL)
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2607): XF\Mvc\Dispatcher->run()
#9 src/XF.php(533): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}
 
Just a heads up: seems to happen everywhere, not specific to resource manager. Uploading the exif-reader.js from that thread didn't seem to resolve it.

TypeError: XF\Data\Exif::getExifTagName(): Argument #1 ($tagId) must be of type int, string given, called in /usr/share/nginx/html/src/XF/Data/Exif.php on line 18 in src/XF/Data/Exif.php at line 35
  1. XF\Data\Exif->getExifTagName() in src/XF/Data/Exif.php at line 18
  2. XF\Data\Exif->getExifData() in src/XF/Http/Request.php at line 1164
  3. XF\Http\Request->getFileExifData() in src/XF/Http/Request.php at line 1127
  4. XF\Http\Request->getFile() in src/XF/Pub/Controller/Attachment.php at line 88
  5. XF\Pub\Controller\Attachment->actionUpload() in src/XF/Mvc/Dispatcher.php at line 352
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2607
  10. XF\App->run() in src/XF.php at line 533
  11. XF::runApp() in index.php at line 20
 
Yeah, it happens anywhere you upload a JPEG I think. The JS file change was a hotfix that has since been reverted in favor of a proper fix.
 
Yeah, just confirming the same behavior. Can't upload JPEG attachments anywhere. Is there any quick fix for this or best to wait for beta 9?
Yeah, it happens anywhere you upload a JPEG I think. The JS file change was a hotfix that has since been reverted in favor of a proper fix.
 
next is rc1 it seems. and i have spent the last 30 minutes trying to get the updated js to work lol by deleting browser cache and purging cf cache. somehow i cannot get the two files to appear the same in browser.
 
I can also confirm, just upgraded straight to 2.3 Beat 8 and also receiving this while uploading from mobile and attaching an image.
 
yeah as mentioned above. upload the file linked above. and refresh caches in browser and cloudflare and elsewhere. and it fixes the issue.
 
Back
Top Bottom