Re: [Tiki-devel] Is tesseract required

Fabio Montefuscolo <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <CAF4KPBT3XJu=w-cRTfsieUP-_HwxC7wbtWyR7QjdUCVphAsp0w@mail.gmail.com>
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 The current $PATH
is C:\Program Files (x86)\PHP\v7.2 in
C:\www\example.com\html\vendor\thiagoalessio\tesseract_ocr\src\FriendlyErrors.php:40
Stack trace:
#0 C:\www\example.com\html\vendor\thiagoalessio\tesseract_ocr\src\TesseractOCR.php(85):
thiagoalessio\TesseractOCR\FriendlyErrors::checkTesseractPresence('tesseract')
#1 C:\www\example.com\html\lib\ocrlib.php(277):
thiagoalessio\TesseractOCR\TesseractOCR->executable('tesseract')
#2 C:\www\example.com\html\lib\ocrlib.php(207): ocrLib->newTesseract()
#3 C:\www\example.com\html\lib\prefs\ocr.php(13):
ocrLib->getTesseractLangs()
#4 C:\www\example.com\html\lib\prefslib.php(622): prefs_ocr_list(false)
#5 C:\www\example.com\html\lib\prefslib.php(590):
PreferencesLib->realLoad('ocr', false)
#6 C:\inetpub\sites in
C:\www\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]>
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]> 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]
> > 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.