-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error saving assigned #11796
Comments
Hi, Have you some active plugins ? In this case, try to deactivate them (especially |
I see the same error when adding any actors to tickets. |
Even with the plugins disabled, the problem persists. |
Happened after upgrading to version 10.0.1 |
Me too, after upgrading to version 10.0.1 |
Hi, me too not technical aggregation for ticket. event log error: [2022-06-02 16:11:18] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Argument 1 passed to Glpi\Toolbox\Sanitizer::isNsClassOrCallableIdentifier() must be of the type string, array given, called in /var/www/html/glpi/src/DBmysql.php on line 1257 in /var/www/html/glpi/src/Toolbox/Sanitizer.php at line 228 |
Hi |
Well, you just hide the problem, and it will probably add corrupted data into your database, so it is not a good idea. |
ok, thanks, i was revert it back. waiting for resolve ) |
I have the same issue on one instance of GLPI, but on another instance, I can't reproduce. Both are almost similar. Have been upgraded from 10.0.0 to 10.0.1 today, running on AlmaLinux with the same version of PHP (8.0.19) and almost the same MariaDB (10.6.7 vs 10.6.8). I'm trying to figure out the difference which make the problem reproducible. |
in my fresh update from 10.0.1, i have a same error. [2022-06-03 16:12:02] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Argument 1 passed to Glpi\Toolbox\Sanitizer::isNsClassOrCallableIdentifier() must be of the type string, array given, called in /var/www/html/glpi/src/DBmysql.php on line 1257 in /var/www/html/glpi/src/Toolbox/Sanitizer.php at line 228 |
Do you have any Business Rules for Tickets on the non-working instance? Are they triggered by Add, Update or both? |
The problem is not triggered when assigning a user through the mass action button on the ticket list view |
Indeed, the "broken" instance has business rules (Add / Add+Update), while the working instance has no business rule at all |
We have the same problem with GLPI 10.0.1 It didn't happen with GLPI 10.0 until commit 3de7b01 We can confirm that the problem persists with all plugins disabled. Only happens when assigning or changing the status of already created tickets. It is not reproduced in new tickets after upgrading to GPI 10.0.1. |
Issue seems like it started with the commit from #11728 but it does not seem to be the cause directly. The code that seems to be the issue is old so I don't know why the issue hasn't presented before now. The issue would only affect updates from the form (not massive actions) because of the different way it handles actors. |
I can confirm that adding a single business rule (triggered on Add/Update) is enough to make my working instance broken too |
Hello, for us it seems that the problem starts with this commit: eef8275 that is the one indicated by cconard96 Also, as dani points out, if you don't use business rules for tickets, the bug is not reproduced. |
Can we safely revert this single commit so we can assign tickets again ? (waiting for a proper fix) |
Regardless of whether or not it is safe to revert it at the very least I can confirm that it is not done cleanly. That is, it would be necessary to revert more commits or perform a manual cleanup. |
I copied 10.0.0/src/RuleTicketcCollection.php to production and it fixed the problem, until the fix came. |
thanks @brunnersm this solution work for me |
@brunnersm this solution work for me too, Tks |
@brunnersm tks! |
@cmoreno038 |
Hello I'm sorry but the fix doesn't work for me.
In my ticket when I want to add an actor and I save I come across this blank page "http://.../glpi/front/ticket.form.php?id=2022002385" and I confirm via the Action button I have no assignment problem Thanks for your help |
After applying : #11812 I confirm it works Thx 😉 |
I'm facing the same problem on some tickets (NOT ALL) BUT if I use the Associate Myself button it works. |
I don't find where is the solution in #11812, what is the code to change ? |
Ok, i found the code to change, there is a way to download all the file with the new code ? |
Here is the commit link Commit 30cf046 I just made the changes made by cconard96 |
Hello I don't find where is the solution in #11812 what is the code to change ? |
as @DooBio mentioned above here's the direct commit link or you can download the file (backup the original first) and replace in you environment. |
@paulopera I replaced the ticket.php file but nothing changes. I'm using PHP 8.0.5 does this have impact ? |
It's working. However, is it safe to do ? No database corruption or anything else ? |
Hi, It should be fixed by #11957. |
Code of Conduct
Is there an existing issue for this?
Version
10.0.1
Bug description
After assigning a ticket to a user, when I try to save, the screen goes blank.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: