Closed mortee closed 1 year ago
Thanks for reporting this. Had a similar issue in the beginning but then it vanished. Could you please tell me which PHP version you're using?
Just tested this with a fresh Docker NC 26 instance and it all works fine. Are you sure you're using NC 26 and not the current master
? The latter can be problematic at the moment because of https://github.com/nextcloud/server/pull/36114. This needs to be changed in the OCR app to be compatible to NC 27, I guess.
PHP Version: 8.1.17. Absolutely sure I'm not running a development version, I build my image based on nextcloud:26
Thanks for the feedback. That is really weird since I started a fresh NC26 Docker instance, installed the app there and didn't face any issues. Like I mentioned, I could imagine that this is related to some dependency loading stuff they deprecated with NC27. If you don't mind I'd try to prepare a patch for this which you could try these days?
Yeah, this instance has been incrementally upgraded since, I don't know, v20 or something? It very well may have some leftovers which aren't present in a fresh install doesn't, honestly I couldn't really tell.
I'll check it on a test instance that only has been dragging on since v24. Also, sure, I'll test your patch when it's ready.
Side note: is there some fundamental reason why workflow_ocr is only available as a Flow operation, and not e.g. as a context-menu item?
I'll check it on a test instance that only has been dragging on since v24. Also, sure, I'll test your patch when it's ready.
Sounds great, thanks!
Side note: is there some fundamental reason why workflow_ocr is only available as a Flow operation, and not e.g. as a context-menu item?
Well it was initially designed as a workflow-app in the very beginning of the workflow-engine. To be honest I use the app myself for exactly my "workflow": scanning files with my mobile phone and then uploading them to NC as PDF. My goal was then to get these files processed via OCR to have them indexed in my full text search. But I don't see any reason why we shouldn't support additional use-cases. Maybe you'd like to open a new discussion for this and describe your requirements in a bit more detail?
Interesting. Same image, just a test instance with no content on it - WFOCR apparently works, or at least doesn't cause the Flow settings page to 500. I even made sure the two has the exact same set of enabled apps.
@mortee I have a patch ready here: https://github.com/R0Wi-DEV/workflow_ocr/suites/11920658782/artifacts/624325244
You can just download the archive and extract it directly in your apps
directory (replacing the folder workflow_ocr
). This is exactly the same version like 1.26.0
except that it uses the newer autoloading of Nextcloud.
Let me know if you need any further assistance, otherwise I'd be happy to get some feedback 👍
I tried it on my prod instance, and apparently now it works fine!
Thanks for your quick feedback, really appreciate your help. Since this change won't cause any harm I will try to get it in to the stable 26 version. Will be delivered with app version 1.26.1
:rocket:
Splendid! Curious though about the manual invocation idea though!
Describe the bug If workflow_ocr is enabled, I get an internal error when opening the Flow settings page.
System
To Reproduce Steps to reproduce the behavior:
Server log