Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/270288
Change subject: wfDebugLog texvc returns/file output check
......................................................................
wfDebugLog texvc returns/file output check
Merely to debug T126422
Bug: T126422
Change-Id: I41471b2d9bf2641294a0cf181662c0a783649473
---
M MathTexvc.php
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/88/270288/1
diff --git a/MathTexvc.php b/MathTexvc.php
index 514a512..03ca8d7 100644
--- a/MathTexvc.php
+++ b/MathTexvc.php
@@ -277,8 +277,10 @@
} elseif ( !preg_match( "/^[a-f0-9]{32}$/", $this->getHash() )
) {
return $this->getError( 'math_unknown_error' );
} elseif ( !file_exists( "$tmpDir/{$this->getHash()}.png" ) ) {
+ wfDebugLog( __CLASS__, " HASHAR file does not exist
$tmpDir/{$this->getHash()}.png wfTempDir(): " . wfTempDir() );
return $this->getError( 'math_image_error' );
} elseif ( filesize( "$tmpDir/{$this->getHash()}.png" ) == 0 ) {
+ wfDebugLog( __CLASS__, " HASHAR empty file
$tmpDir/{$this->getHash()}.png" );
return $this->getError( 'math_image_error' );
}
--
To view, visit https://gerrit.wikimedia.org/r/270288
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I41471b2d9bf2641294a0cf181662c0a783649473
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits