Gilles has uploaded a new change for review. https://gerrit.wikimedia.org/r/201176
Change subject: Add logging to investigate null $hash issue ...................................................................... Add logging to investigate null $hash issue Bug: T94562 Change-Id: I579a5dd3c0f2551d0b700fb21804e52f1356f63e --- M includes/upload/UploadBase.php 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/76/201176/1 diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index a79526e..5f81a0e 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -253,6 +253,8 @@ * @return string */ public function getTempFileSha1Base36() { + // Debugging for T94562 + wfDebugLog( 'upload', __METHOD__ . ": mTempPath: {$this->mTempPath}" ); return FSFile::getSha1Base36FromPath( $this->mTempPath ); } @@ -677,6 +679,9 @@ $warnings['duplicate'] = $dupes; } + // Debugging for T94562 + wfDebugLog( 'upload', __METHOD__ . ": Hash: $hash " . gettype( $hash ) ); + // Check dupes against archives $archivedFile = new ArchivedFile( null, 0, '', $hash ); if ( $archivedFile->getID() > 0 ) { -- To view, visit https://gerrit.wikimedia.org/r/201176 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I579a5dd3c0f2551d0b700fb21804e52f1356f63e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Gilles <gdu...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits