Re: [Tiki-devel] Is tesseract required

Jorge Sá Pereira <jorge.pereira-NHSG37FGo5wS/6/[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi Fabio,

That error occurs because it the lib was installed (Tiki Packages) and there was an issue detecting the executable that was already fixed in the master branch.

I was able to reproduce it in the 23.x and backported the fix to the 23.x branch.
https://gitlab.com/tikiwiki/tiki/-/merge_requests/1142

Please update your instance and let me know if you still have issues with it.

Thanks,
Jorge (Xorti)


> On 15 Dec 2021, at 04:41, Fabio Montefuscolo <[email protected]> wrote:
> 
> The one below is happening on a system without tesseract and without OCR enabled. More specifically when I clear the caches. But that also happens during index:rebuild.
> 
> Fatal error: Uncaught thiagoalessio\TesseractOCR\TesseractNotFoundException: Error! The command "tesseract" was not found. Make sure you have Tesseract OCR installed on your system: https://github.com/tesseract-ocr/tesseract <https://github.com/tesseract-ocr/tesseract> The current $PATH is C:\Program Files (x86)\PHP\v7.2 in C:\www\example.com <http://example.com/>\html\vendor\thiagoalessio\tesseract_ocr\src\FriendlyErrors.php:40 Stack trace:
> #0 C:\www\example.com <http://example.com/>\html\vendor\thiagoalessio\tesseract_ocr\src\TesseractOCR.php(85): thiagoalessio\TesseractOCR\FriendlyErrors::checkTesseractPresence('tesseract')
> #1 C:\www\example.com <http://example.com/>\html\lib\ocrlib.php(277): thiagoalessio\TesseractOCR\TesseractOCR->executable('tesseract')
> #2 C:\www\example.com <http://example.com/>\html\lib\ocrlib.php(207): ocrLib->newTesseract()
> #3 C:\www\example.com <http://example.com/>\html\lib\prefs\ocr.php(13): ocrLib->getTesseractLangs()
> #4 C:\www\example.com <http://example.com/>\html\lib\prefslib.php(622): prefs_ocr_list(false)
> #5 C:\www\example.com <http://example.com/>\html\lib\prefslib.php(590): PreferencesLib->realLoad('ocr', false)
> #6 C:\inetpub\sites in C:\www\example.com <http://example.com/>\html\vendor\thiagoalessio\tesseract_ocr\src\FriendlyErrors.php on line 40
> 
> 
> On Tue, Dec 14, 2021 at 11:09 PM Dr. Sassafras <[email protected] <mailto:[email protected]>> wrote:
> It is required if you have OCR enabled. Its needed in order to perform the OCR.
> 
> But there is also a tesseract php wrapper. Its always downloaded and included in the source. 
> 
> Can you be more specific about the error message? 
> 
> Brendan
> 
> > On Dec 14, 2021, at 10:54 PM, Fabio Montefuscolo <[email protected] <mailto:[email protected]>> wrote:
> > 
> > 
> > Hello,
> > 
> > Very recently I updated a Tiki 21.x, and I got an error message about a missing Tesseract. I had to abort the upgrade, because the connection mean I have forbids me to have further investigation. But I suspect Tiki 21.x is now requiring Tesseract, is this correct?
> > 
> > Another Tiki I have similar problem is 23.x. The UI is running ok, but I couldn't run index:rebuild. So, same thing. Is tesseract required?
> > 
> > Thank you
> > _______________________________________________
> > TikiWiki-devel mailing list
> > [email protected] <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
> 
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.