This internal error appears to have happened to some users uploading image files after changing server PHP version from 7.4 to 8.0 - not sure if this is related to PHP configuration or not as it was changed through MultiPHP Manager. Most images appear to be affected but there are some that are not affected and upload normally.
Steps to replicate the issue (include links if applicable):
This is a private wiki, so login is required. Contact admin@cptdb.ca if you would like an account to troubleshoot further.
- Upload file through "Upload Images" https://cptdb.ca/wiki/index.php/Special:Upload
- Choose File - choose image file (this one will trigger the error, but there are many users experience this with other images: https://cptdb.ca/wiki/DRT%206122.jpg )
- Press the "Upload file" button
What happens?:
- Internal error is displayed, and image does not get uploaded to wiki:
[Y3LZisPvVip5hRfZAgsjvgAAABc] /wiki/index.php/Special:Upload Error: Cannot access parser properties before loading data Backtrace: from /home/user/public_html/wiki/vendor/wikimedia/xmp-reader/src/Reader.php(580) #0 /home/user/public_html/wiki/vendor/wikimedia/xmp-reader/src/Reader.php(580): XMLReader->setParserProperty(integer, boolean) #1 /home/user/public_html/wiki/vendor/wikimedia/xmp-reader/src/Reader.php(361): Wikimedia\XMPReader\Reader->checkParseSafety(string) #2 /home/user/public_html/wiki/includes/media/BitmapMetadataHandler.php(186): Wikimedia\XMPReader\Reader->parse(string) #3 /home/user/public_html/wiki/includes/media/JpegHandler.php(106): BitmapMetadataHandler::Jpeg(string) #4 /home/user/public_html/wiki/includes/media/MediaHandler.php(222): JpegHandler->getSizeAndMetadata(TrivialMediaHandlerState, string) #5 /home/user/public_html/wiki/includes/utils/MWFileProps.php(88): MediaHandler->getSizeAndMetadataWithFallback(FSFile, string) #6 /home/user/public_html/wiki/includes/upload/UploadBase.php(556): MWFileProps->getPropsFromPath(string, string) #7 /home/user/public_html/wiki/includes/upload/UploadBase.php(488): UploadBase->verifyPartialFile() #8 /home/user/public_html/wiki/includes/upload/UploadBase.php(392): UploadBase->verifyFile() #9 /home/user/public_html/wiki/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload() #10 /home/user/public_html/wiki/includes/specials/SpecialUpload.php(550): UploadFromFile->verifyUpload() #11 /home/user/public_html/wiki/includes/specials/SpecialUpload.php(244): SpecialUpload->processUpload() #12 /home/user/public_html/wiki/includes/specialpage/SpecialPage.php(671): SpecialUpload->execute(NULL) #13 /home/user/public_html/wiki/includes/specialpage/SpecialPageFactory.php(1378): SpecialPage->run(NULL) #14 /home/user/public_html/wiki/includes/MediaWiki.php(315): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext) #15 /home/user/public_html/wiki/includes/MediaWiki.php(912): MediaWiki->performRequest() #16 /home/user/public_html/wiki/includes/MediaWiki.php(563): MediaWiki->main() #17 /home/user/public_html/wiki/index.php(53): MediaWiki->run() #18 /home/user/public_html/wiki/index.php(46): wfIndexMain() #19 {main}
What should have happened instead?:
- Image uploads normally, and appears in Recent changes
Software version (skip for WMF-hosted wikis like Wikipedia):
- MediaWiki 1.38.4
- PHP 8.0.25 (litespeed)
- MySQL 5.7.40
- ICU 69.1
Other information (browser name/version, screenshots, etc.):
This is a private wiki, so login is required. Contact admin@cptdb.ca if you would like an account to troubleshoot further.
The following was tried but still did not allow the photo to be uploaded.
- rename file extension from .jpeg to .jpg and attempt to re-upload
- Use Adobe Photoshop 21 to open the original file, Save For Web to try to remove metadata, and attempt to re-upload