mateusznitka / protocolsmanager

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

Blank page on generate.form.php when asked to create a protocol #57

Open leonardomavila opened 2 years ago

leonardomavila commented 2 years ago

Hi Everyone,

I had to migrate my server from Ubuntu to Windows Server (I know it's not the ideal, but it's the company policy), and since then, when I try to create a new protocol, I get a blank page on generate.form.php. GLPI running on ISS with PHP manager and Mysql.

This is the result on Firefox debug mode: generate form php_error

And below the log on php-errors.log:

[2022-05-24 10:04:40] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: round(): Argument #1 ($num) must be of type int|float, string given in C:\inetpub\wwwroot\plugins\protocolsmanager\dompdf\src\Css\Style.php at line 3086 Backtrace : ...\protocolsmanager\dompdf\src\Css\Style.php:3086 round() ...s\protocolsmanager\dompdf\src\Css\Style.php:858 Dompdf\Css\Style->set_z_index() ...s\protocolsmanager\dompdf\src\Css\Style.php:917 Dompdf\Css\Style->set() ...ns\protocolsmanager\dompdf\src\Renderer.php:178 Dompdf\Css\Style->get() ...lsmanager\dompdf\src\FrameReflower\Page.php:148 Dompdf\Renderer->render() ...c\FrameDecorator\AbstractFrameDecorator.php:895 Dompdf\FrameReflower\Page->reflow() plugins\protocolsmanager\dompdf\src\Dompdf.php:856 Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() ...ins\protocolsmanager\inc\generate.class.php:454 Dompdf\Dompdf->render() plugins\protocolsmanager\front\generate.form.php:6 PluginProtocolsmanagerGenerate::makeProtocol()

Do you suggest me something? Regards,

leonardomavila commented 2 years ago

Solved. PHP version on new server was 8.0, while on the old server it was 7.4. Switched to v7.4 on the new server, and the protocols returned to be created properly.

pierlaze commented 2 years ago

Good afternoon Leonardomavila, It shows me the following error when entering protocols manager, please support Deprecated: Use CommonDBTM::getFriendlyName() in C:\xampp\htdocs\glpiper1\inc\toolbox.class.php on line 653 Deprecated: Use CommonDBTM::getFriendlyName() in C:\xampp\htdocs\glpiper1\inc\toolbox.class.php on line 653 The PHP version is 8.0.19 and glpi is 9.5.7 and when I click on the create button it takes me to this blank page image

Wolvverine commented 2 years ago

Use PHP 7.4