Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leonardomavila opened this issue May 24, 2022 · 3 comments
Open

Comments

@leonardomavila
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

Use PHP 7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants