-
Notifications
You must be signed in to change notification settings - Fork 106
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
Raspberry Pi exception thrown on Rand function #115
Comments
Cheers. Which model of Raspberry Pi is this on? |
Hi, this was on the raspberry pi 3b with the armV7 cpu architecture if i'm correct |
@wheelybird, I've actually managed to fix the issue by changing lines 52, 53 and 54 in the
I've forced a type-cast (or however it's named in php) to an integer in the second argument of the rand() function. I'll commit a pull request with the changes I've made. Greetings! |
That's great! Cheers - I didn't get a chance to look into it. |
Fix for issue wheelybird#115 Added typecast to int that fixes a fatal error telling that the second argument of rand() expects an int but a float is given on an ARMv7 architecture. Problem seems to be introduced in PHP v8.
Fix for issue #115 Added typecast to int that fixes a fatal error telling that the second argument of rand() expects an int but a float is given on an ARMv7 architecture. Problem seems to be introduced in PHP v8.
That's been pushed to wheelybird/ldap-user-manager:latest - give it a whirl and let me know if it's good and I'll update the v1.7 image too. |
On the latest tag I get the following error in the logs: When I try to build the image from source, I get some GPG errors:
I can get around these errors by changing in the dockerfile the base image from |
Just chipping in here, I'm also getting the |
Thanks. I haven't had time recently to look into this, but hopefully the sed issue is easy to fix. |
Hello guys, i'm also getting the sed error... but only when i try to load an TLS-CACERT. i hope that helps you find the bug. At the moment i rollback to the version 1.6, thats works greate :) |
Does it still happen with |
I'm still getting |
Thanks for letting me know. I'll need to search in the attic for a Raspberry Pi to debug this with. |
I've been unable to test this, but hopefully the latest release (v1.8) fixes the issue. |
I'm trying to run the user application on a Raspberry Pi.
I can reach the https://hostname/setup/ page but when I try to login with the correct password, I get the following PHP error:
I got this error with the docker image version v1.7 and only on the Raspberry Pi. When I try this on my local machine, I don't get this error. I also get this error when using HTTP instead of HTTPS.
If needed, I've supplied a debug log.
Click to show debug log
My thanks in advance
The text was updated successfully, but these errors were encountered: