-
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
Taskboard 500 Internal Server Error with PHP 8.1 #410
Comments
I am guessing all those issues are fixed with diff --git a/app/controller/user.php b/app/controller/user.php
index c87103f9..5d90dc0a 100644
--- a/app/controller/user.php
+++ b/app/controller/user.php
@@ -181,7 +181,7 @@ class User extends \Controller
} else {
// Update profile
if (!empty($post["name"])) {
- $user->name = filter_var($post["name"], FILTER_SANITIZE_STRING);
+ $user->name = filter_var($post["name"], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
} else {
$error = "Please enter your name.";
} |
The taskboard issues should be fixed in the latest master branch (via commit 95ca979). I've applied a fix for that filter_var call as well today, I hadn't tried changing a user's name in a while. These should both be fixed in master now. If needed I can do a new full release. |
3600+ deletions, 3k additions? holy **** :D hmm, I downloaded the repo less than 3 weeks ago and I came across the above issue. Is that commit on the trunk? EDIT: hmm, yes it is. Ok, I will try cloning a fresh repo and see if it works all kosher to let you know. |
Ok, so ye, my pull was that commit indeed. I had to change as per my patch in any case. I also got
After I manipulated the group access or so, and trying to 'add a project' or so with a [restricted] user. There might be more things under the bonnet, but I just found F3 and am writing my own website in it atm so I might get around to this although you might have ironed out any encountered bugs by then. |
$helper->getGroupIds() returns null then ahead of either an [empty] array or a default case which is compatible with arrays. This is the same as the above error and with the amount of array_merges you have, this might need quite a few fixes to make sure one doesn't get nullable returns where arrays are expected. I would probably open this as a side issue regarding php 8.1 or so. |
Ye, I pulled afresh and this isn't entirely done yet for 8.1... Upon a fresh install, I get a
Also, in install.html , change the input field for database password from text to password please.
P.S. The reason these might not be dshowing up is that in production, one turns off depre warnings etc so this won't happen. (However, I do think they should be addressed). like e.g. fields yielding null in array vars? Anyway, you wil know best. |
Hi,
with PHP 8.1 I got a 500 Internal Server Error with PHP 8.1 on Taskboard:
"500 Internal Server Error strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated"
With PHP 7.4 it is fine.
Version from today from GIT.
The text was updated successfully, but these errors were encountered: