You are not logged in.
Hi!
We migrated a very old version of GLPI 9.1.1 to version 10.0.0...
After the migration, we noticed that there were some bugs that were fixed in version 10.0.3.
So we migrated to version 10.0.3.
After the migration was done, at first everything was OK!
Subsequently, an adjustment was made to the system URL which was:
helpdesk.company.com/glpi
For:
helpdesk.company.com/
We detected that I was having problems with the links of the entities, after analyzing I saw that the problem was with the cache!
After clearing the cache, I solved the problem with the link, but I had a problem adding an external event.
When trying to include an external event, I get the following error:
Uncaught Exception TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /var/www/html/glpi/src/PlanningExternalEvent.php at line 160
The error also appears when trying to edit an existing event!
Below the log of the php-errors.log file
[2022-10-27 12:34:34] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /var/www/html/glpi/src/PlanningExternalEvent.php at line 160
Backtrace :
src/CommonGLPI.php:676 PlanningExternalEvent->showForm()
ajax/common.tabs.php:113 CommonGLPI::displayStandardTab()
[2022-10-27 12:34:51] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /var/www/html/glpi/src/PlanningExternalEvent.php at line 160
Backtrace :
src/Planning.php:1493 PlanningExternalEvent->showForm()
src/Planning.php:1432 Planning::showAddEventSubForm()
ajax/planning.php:95 Planning::showAddEventForm()
Does anyone have an idea how to resolve this?
Offline
After researching and testing possible fixes, when dealing with the mentioned error, another error occurred, when searching for the new error, I discovered that it was a bug.
github.com/glpi-project/glpi/issues/12676
github.com/glpi-project/glpi/pull/12678/commits/a117d4cc267a5d8124352a1a39257e8cac6601d9
When applying the bug fix, I got the same initial error again, so I undid the fix I made and it worked normally!
Offline