mateusznitka / protocolsmanager

GLPI Plugin to report users inventory
8 stars 13 forks source link

Error in Logo: Image not found or type unknown #25

Closed blitzlepe closed 3 years ago

blitzlepe commented 3 years ago

Image logo is not even shown in the template form: My setup GLPI 9.5.4 PHP 7.3.27 Centos 8

image

image

mateusznitka commented 3 years ago

Hi, I think there is maybe problem with GLPI_ROOT variable, so image pointing to wrong path. Try change: In inc/config.php.class Line 188 - from $full_img_name = GLPI_ROOT.'/files/_pictures/'.$logo; to $full_img_name = '/var/lib/glpi/files/_pictures/'.$logo;

Line 524 - from $img_path = GLPI_ROOT.'/files/_pictures/'.$full_img_name; to $img_path = '/var/lib/glpi/files/_pictures/'.$full_img_name;

In inc/generate.class.php: Line 440 - from $logo = GLPI_ROOT.'/files/_pictures/'.$full_img_name; to $logo = 'var/lib/glpi/files/_pictures/'.$full_img_name;

Of course change paths to your installation, but usually there are like I wrote.

Regards, MN

blitzlepe commented 3 years ago

Solved with that lines replaced.

Thank you!