Loading...
 
Skip to main content

Tesseract OCR - uncaught / not found fatal error

Status
Open
Subject
Tesseract OCR - uncaught / not found fatal error
Version
24.x
Category
  • Error
  • Upgrade Blocker
  • Usability
Resolution status
New
Submitted by
Torsten Fabricius
Lastmod by
Torsten Fabricius
Rating
(0)
Description

I am currently testing a Tiki 24 trunk as a local office software on my work laptop.
The Tiki is still in the process of configuration, setup and testing.

I use a Mint/Ubuntu 18 Linux. I use a standart Apache2 / Mysql/PHP (7.4/8.0) installation, each part installed with the command line (not a prepacked Xampp/Lampp).
Side note to PHP version:
I could not install Tiki with PHP 8.0 (WSOD issue) and did install it then with PHP 7.4 running
Later when I installed a number of Packages, Tiki requested PHP 8.0 and it stopped working with PHP 7.4 (WSOD). Thus this Tiki 24-trunk is currently running on PHP 8.0

I have also a number of file permission errors and some issue with a search index error message, which I will report later on in the forums or with another bug report.

Tiki is installed via SVN and runs in /var/www/html/tiki .

One of several issues with my Tiki trunk installation is, that instantly after installing Tesseract OCR in Tiki via Packages, I get the following type of error messages:

Copy to clipboard
Fatal error: Uncaught thiagoalessio\TesseractOCR\TesseractNotFoundException: Error! The command "sh: 1: where: not found" was not found. Make sure you have Tesseract OCR installed on your system: https://github.com/tesseract-ocr/tesseract The current $PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin in /var/www/html/tiki/vendor/thiagoalessio/tesseract_ocr/src/FriendlyErrors.php:40 Stack trace: #0 /var/www/html/tiki/vendor/thiagoalessio/tesseract_ocr/src/TesseractOCR.php(85): thiagoalessio\TesseractOCR\FriendlyErrors::checkTesseractPresence() #1 /var/www/html/tiki/lib/ocrlib.php(278): thiagoalessio\TesseractOCR\TesseractOCR->executable() #2 /var/www/html/tiki/lib/ocrlib.php(208): ocrLib->newTesseract() #3 /var/www/html/tiki/tiki-check.php(1995): ocrLib->getTesseractLangs() #4 {main} thrown in /var/www/html/tiki/vendor/thiagoalessio/tesseract_ocr/src/FriendlyErrors.php on line 40


I have definitely Tesseract installed on my laptop, but I do not (yet) know the installation path:

Copy to clipboard
Torsten@Linux:/var/www/html/tiki$ tesseract Usage: tesseract --help | --help-extra | --version tesseract --list-langs tesseract imagename outputbase [options...] [configfile...] OCR options: -l LANG[+LANG] Specify language(s) used for OCR. NOTE: These options must occur before any configfile. Single options: --help Show this help message. --help-extra Show extra help for advanced users. --version Show version information. --list-langs List available languages for tesseract engine.


Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7887
Created
Friday 22 October, 2021 12:15:01 UTC
by Torsten Fabricius
LastModif
Friday 22 October, 2021 12:15:01 UTC


Show PHP error messages