fields icon indicating copy to clipboard operation
fields copied to clipboard

Security die. trying to load a forbidden class name

Open christophedumont5 opened this issue 5 years ago • 10 comments

Hello,

When i'm trying to load the bloc page i get an error message

Security die. trying to load a forbidden class name

christophedumont5 avatar Sep 19 '19 12:09 christophedumont5

Hello,

I have the same issue.

I use GLPI 9.4.4 and I want to install this plugin v 1.10.2

CAIB-MMU avatar Oct 17 '19 13:10 CAIB-MMU

Hi @christophedumont5

can you check in database if column itemtype from glpi_plguin_fields_containers is empty or like [ ] ?

Best regards

stonebuzz avatar Jan 22 '20 12:01 stonebuzz

forgive me I am new to this. I am also having this same issue. would i check this using

DESCRIBE glpi_plugin_fields_containers ?

AndrewG-usr avatar Feb 07 '20 17:02 AndrewG-usr

No you need to extract data with select *

stonebuzz avatar Feb 08 '20 09:02 stonebuzz

no the itemtypes is not empty it has the ones I previously created

AndrewG-usr avatar Feb 12 '20 16:02 AndrewG-usr

have you got a line with ["0"] value for itemtype column in database ?

Best regards

stonebuzz avatar Feb 13 '20 07:02 stonebuzz

yes I have a line with ["0"] value in the itemtype column. is this what is causing it?

AndrewG-usr avatar Feb 14 '20 13:02 AndrewG-usr

yep, update'it to a real itemtype (ie: Computer, Monitor) etc ..

Best regards

stonebuzz avatar Feb 14 '20 14:02 stonebuzz

Thank you!!

AndrewG-usr avatar Feb 14 '20 19:02 AndrewG-usr

Hi, thanks for this issue report and solution of user @stonebuzz, I resolved this same problem in my instance of GLPI, using this SQL update:

update glpi_plugin_fields_containers set itemtypes = "[\"Computer\"]" where itemtypes = "[\"0\"]"

After that, I used the GLPI menu Plugin to do the customizations of fields.

slompo avatar Oct 28 '20 14:10 slompo