-
Notifications
You must be signed in to change notification settings - Fork 270
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
getdir() problems in jqueryFileTree.php #273
Comments
Thanks... The fixes works! Lines 224+ (count -> is_countable) |
So this is just a work around. The function needs "global $allowed_ext", $allowed should be $allowed_exts and $file should be $path. With the above your disabling the extensions filtering. |
|
While trying out phpvirtualbox on a server running PHP 8.0.3, I ran into problems with the file selection dialog when trying to attach an ISO file.
This was due to the following error which showed up in the error logs:
getdir() seems to be a built-in function in PHP, so I wonder how this worked before.
The easiest fix is to rename getdir() function to something else.
Then another error showed up:
For PHP versions >= 7.30 the fix is to use is_countable() instead of count().
With those fixes, directory selection is working now.
The text was updated successfully, but these errors were encountered: