Tab Historical no longer works
v1.7 for GLPI 0.85
Enable CF for a device type, let's say Ticket
go to a ticket, add its Custom Fields.
Go to Tab Historical of Ticket -> msg "Security die trying to load a forbidden class name", and the tab is empty
No pb until one adds Custom Fields to a ticket.
Same with Computer, Monitor, etc
#1 Updated by blerohellec about 6 years ago
Same error when I add a task to a ticket which has already Custom fields. Nevertheless the task is correctly added.
See also topic #62613 in the forum (May 2015) : http://forum.glpi-project.org/viewtopic.php?id=62613
The error persists until the lines related to plugin CF have been deleted from table glpi_logs.
#2 Updated by smithj4 almost 6 years ago
I had the same problem. I checked the database and code and it comes from rows in the glpi_logs table where the forth column has a zero, itemtype_link='0'. This comes from the inc/field.class.php file, where on line 485 it calls the Log::history() function and passes 0 as the forth argument every time. The fusioninventory plugin had a similar problem. So changing this to the empty string "" fixed the problem. I also had to update all of the zeros in my database to make the history tab work again:
# mysql glpi mysql> UPDATE glpi_logs SET itemtype_link='' WHERE itemtype_link='0';