-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8 support of php extension #456
Comments
Hi @BigMichi1 pdlib supports php 8 since 1.0.1, but you have to compile it on your own, because I can't make packages for custom repositories. However, I clarify that it is not yet officially supported by the application. Most likely it will work, but it is not supported yet. See #444 |
I'd like to expand this bug report to include errors that seem to be associated with php8. I get the following when trying to run the scan:
I see mention of this in other bug reports that have been closed out (#429 for example). Is there any way I can get more debug logging out of the run to see where in the resize process things fail? |
I have the same problem, I am unable to debug why I have the same error: |
Same problem. Using dlib-cuda 19.22-1 and php-pdlib 1.0.2-4 from the AUR with Nextcloud 22.1.1 and php 8.0.10.
|
Hi everyone, As you can see the nextcloud folks are deliberately ignoring PHP 8 tests.. Our application makes intensive use of the OC_Image class, that is not deprecated, far from it, but it seems to fail, and they just don't want to fix it. Hope to fix it soon, but just I don't recommend PHP 8 yet.. 😞 |
You have to see more info in the nextcloud logger. Please comment what it says .. |
I don't see any nextcloud log messages associated with the attempt to run the background task. |
I put a lot of logging statements in
It always logs:
So it looks like |
I added this after the check for
And it results in
This may be the limit of my understanding of this code. I'll be happy to help if you have more suggestions. |
|
This article https://php.watch/articles/resource-object talks about the PHP 8 transition from resources to objects. It suggests changing |
I apparently had some local problem that was causing the image display issues. They don't happen in a fresh install.
instead of the info about the person. |
Hi @guystreeter Error 500 is an internal error.. Probably in on FaceController.php, and you have to see something in the nextcloud log.. 😬 |
Hi @guystreeter
|
I have created issue nextcloud/server#29466 against Nextcloud server to get |
@matiasdelellis Your suggested change worked. I can see the identified people in the Persons tab now. |
This PR waiting approval will fix OC_Image.php: nextcloud/server#29479 |
Thanks, great job, I patched my Nextclouid 22.X version by hand and it finally worked on php 8.x I hope they add a patch to last stable v22 (they described it as php8 compatible) ;) |
Hi @gchmurka123, |
Hi everyone, Thanks you so much!! 😃 🎉 |
Nice! Have been waiting for this since php8 came out. Tried the Face Recognition app occasionally to check if it has been fixed, but eventually just found this GitHub issue and watched it. Looking forward to it, thanks to all people involved :) |
The necessary fixes have been pulled in the master on github today. |
rebuild my php-fpm to experiment this, but seems another wait for nextcloud release update, is the zip release latest-22.zip, will do? |
I was mistaken. Only part of the patch-set was pulled in the master branch. It does not include the fixes we need. :( |
Thank you Matias and all! After the nextcloud update, the icing on the cake would be an update to the precompiled PDLib PHP libraries for PHP 8. |
Maybe upvoting oerdnj/deb.sury.org#1663 |
The Nextcloud update is now live in version 22.2.1! (nextcloud/server#29519) |
Is this compatible after all with nextcloud 22? i got this error on enabling, #500 (comment) Browse around got #495
|
This comment has been minimized.
This comment has been minimized.
This is off-topic, but you need to follow Hard way. |
Can confirm that it works! |
Hi everyone, |
I pulled NC 22.2.2 and built facerecognition from git master, and it seems to be working just fine! |
This works fine also in NC 22.2.3 by installing manually facerecognition from git. Hopefully the app from the NC repository will be updated soon to not necessarily require PHP <= 7.4, and will support PHP 8 as well! |
Great. Thank you all very much!. 🎉 😄 |
- Initial support for php 8. See issue #456 - Add link to show photos of person on sidebar. - Add static analysis, phpunit and lintian test using github workflow. - Add an real OCS public API to get all persons. See PR #512. - Fix sidebar view when user has disable it. - Set the Image Area slider to the maximum allowed by the model. See issue #527 - Don't try to force the setCreationTime argument to be DateTime. See PR #526 - Migrate hooks to OCP event listeners. See PR #511 - New Czech translation thanks to Pavel Borecki, and update others. Thank you so much everyone.
Just published on Nextcloud appstrore.. 😄 🎉 Please update from there and report back here.. 😉 |
Ubuntu 20.04, Nextcloud 22.2.3, PHP8.0, I had compiled pdlib to support PHP 8. Today installed the Facerecognition 0.8.5 directly from gitmaster and I confirm that everything is working well. You guys made an excellent job. However, I got a bit confused by this thread. Are we still needing to compile the pdlib part (see the OP problem)? Or with this facerecognition 0.8.5 (from the app store) we don't need to do that anymore? Sorry I don't see how the update relates to the original problem. Marginally related to this, are you guys using some of the apps for android? nkming version can show the faces when the facerecognition is pulled directly from the master. It is working pretty well.... butI just wished to not having to compile anything =) |
I modified by build to pull the latest Nextcloud docker image and only build dlib and pdlib. Then I downloaded and enabled facerecognition from the app store. Everything seems to be working fine. |
The issue started as a problem that there was no pdlib for php8, but it mutated to the application support for php8 since that was the real problem. Now Nextcloud added the necessary patches that make this application work with PHP8 and then we enable their support in last release. 😉 About pdlib, except Ubuntu Impish and Fedora 35 no distribution uses php 8 by default. This implies that practically everyone is using third-party repositories to update php, and is simply impossible for me to generate the necessary packages for third party repositories. So, unfortunately, if you use third-party repositories, you have to compile pdlib on your own. |
Just update package for fedora 35 with php8.. Tomorrow I will probably do the package for Ubuntu Impish.. 😉 |
Calling the official Nextcloud Docker images out for using "third-party repositories" is pretty weird imho |
Expected behaviour
the php extension that is needed should also be available for PHP 8
Actual behaviour
we are using https://launchpad.net/~ondrej/+archive/ubuntu/php to have a recent up-to-date version of PHP but currently the pdlib extension is not available for PHP 8
Steps to reproduce
Server configuration
Operating system:
Ubuntu 20.04.2 LTS
Pdlib version:
How is DLib installed: Make sure it is working correctly with this tool
How is PDlib installed: Make sure it is working correctly with this tool
PHP version:
8.0.3-1.ubuntu20.04.1+deb.sury.org+1
Web server:
Nginx
Database:
PostgreSql
Nextcloud version:
21.0.1
The text was updated successfully, but these errors were encountered: