Commit 21d7d6ef authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Merge branch 'fix/19713_fulltext_extraction_error' into 'develop'

Fix/19713 fulltext extraction error

See merge request !712
parents 64758123 a241ca01
Pipeline #17530 failed with stages
in 22 seconds
......@@ -882,7 +882,9 @@ class digitalResource
file_put_contents($srcfile, $contents);
$fullText .= $fullTextService->getText($srcfile);
try {
$fullText .= $fullTextService->getText($srcfile);
} catch (\Exception $exception) {}
}
}
......
......@@ -937,7 +937,10 @@ trait archiveModificationTrait
stream_copy_to_stream($handler, $tmpStream);
rewind($tmpStream);
fclose($tmpStream);
$fullText .= $fulltextService->getText($tmpFile, $options) . " ";
try {
$fullText .= $fulltextService->getText($tmpFile, $options) . " ";
} catch (\Exception $exception) {}
unlink($tmpFile);
}
$archive = $this->retrieve($archiveId);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment