Hello all
I have a fresh 1.25 installation and I just can't upload any files to it.
LocalSettings.php, php.ini etc must all be good, because the files are
actually uploaded and go through the validation procedure. But then they
are rejected for lack of metadata in the database. This is what the
$wgDebugLogFile log says:
FSFile::getProps: /tmp/phphGwtp2 loaded, 1092779 bytes, application/pdf.
mime: <application/pdf> extension: <pdf>
UploadBase::detectScript: checking for embedded scripts and HTML stuff
UploadBase::detectScript: no scripts found
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
UploadBase::detectVirus: virus scanner disabled
FSFile::getProps: Getting file info for /tmp/phphGwtp2
MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phphGwtp2 for magic numbers.
MimeMagic::doGuessMimeType: magic header in /tmp/phphGwtp2 recognized as application/pdf
MimeMagic::guessMimeType: guessed mime type of /tmp/phphGwtp2: application/pdf
MimeMagic::improveTypeFromExtension: improved mime type for .pdf: application/pdf
wfShellExec: /bin/bash '/path/to/wiki/includes/limit.sh' ''\''pdfinfo'\'' -enc UTF-8 -l 9999999 -meta '\''/tmp/phphGwtp2'\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=1048576; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
PdfImage::retrieveMetaData: 'pdftotext' '/tmp/phphGwtp2' -
wfShellExec: /bin/bash '/path/to/wiki/includes/limit.sh' ''\''pdftotext'\'' '\''/tmp/phphGwtp2'\'' - ' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=1048576; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
wfShellExec: /bin/bash '/path/to/wiki/includes/limit.sh' ''\''pdfinfo'\'' -enc UTF-8 -l 9999999 -meta '\''/tmp/phphGwtp2'\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=1048576; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
PdfImage::retrieveMetaData: 'pdftotext' '/tmp/phphGwtp2' -
wfShellExec: /bin/bash '/path/to/wiki/includes/limit.sh' ''\''pdftotext'\'' '\''/tmp/phphGwtp2'\'' - ' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=1048576; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
FSFile::getProps: /tmp/phphGwtp2 loaded, 1092779 bytes, application/pdf.
UploadBase::verifyExtension: mime type application/pdf matches extension pdf, passing file
Pulling file metadata from cache key mydbname:file:a6811db2a20b11dd8f7546a86ef2d92f
[exception] [c096eb4d] /wiki/index.php/%CE%95%CE%B9%CE%B4%CE%B9%CE%BA%CF%8C:%CE%91%CE%BD%CE%AD%CE%B2%CE%B1%CF%83%CE%BC%CE%B1 MWException from line 419 of /path/to/wiki/includes/filerepo/file/LocalFile.php: Could not find data for image 'Fek-1996-a-0007-hocr.pdf'.
The exception occurs in function loadExtraFromDB():
/**
* Load lazy file metadata from the DB.
* This covers fields that are sometimes not cached.
*/
Does anyone know why is it trying to pull metadata from the database for
a file that is just being uploaded? What metadata would that be?
Line 6 from the bottom of the log, "PdfImage::retrieveMetaData", says
that PdfImage uses the term "metadata" for the text layer of the pdf,
but that seems unrelated to the doings of LocalFile.php.
I'm using Special:Upload for the upload (the URL-encoded string you see
in the last log line says "Ειδικό:Ανέβασμα", which is the Greek built-in
Special:Upload) and I have no upload-related extensions installed.
Any ideas?
Z