yllen / pdf

GNU Affero General Public License v3.0
14 stars 14 forks source link

Object not found - 404 error #45

Closed karokarov closed 9 months ago

karokarov commented 1 year ago

Hi!

I faced with the issue. I have fresh installation of glpi 10.0.6 and pdf 3.0.0. After install it worked ok, but after ~1 moth of not using I tried Print to PDF function and server returns "Object not found" 404 error.

I have noticed, that similar to the issue #27 the print from Action button is not working, while Print to PDF works ok from menu on the left in the ticket.

I have searched in php_error.log. As expected, it's clean.

Reinstallation of plugin does not help. However I have noticed, that during uninstllation of the plugin it gives some errors in php-error.log. See it below:

[2023-05-11` 10:32:07] glpiphplog.WARNING: *** PHP Warning (2): include_once(/srv/www/htdocs/marketplace/pdf/inc/preferences.class.php): failed to open stream: No such file or directory in /srv/www/htdocs/marketplace/pdf/hook.php at line 83 Backtrace : marketplace/pdf/hook.php:83 include_once() src/Plugin.php:783 plugin_pdf_uninstall() front/plugin.form.php:60 Plugin->uninstall()

[2023-05-11 10:32:07] glpiphplog.WARNING: *** PHP Warning (2): include_once(): Failed opening '/srv/www/htdocs/marketplace/pdf/inc/preferences.class.php' for inclusion (include_path='/srv/www/htdocs/marketplace/barcode/vendor/pear/archive_tar:/srv/www/htdocs/marketplace/barcode/vendor/pear/console_getopt:/srv/www/htdocs/marketplace/barcode/vendor/pear/image_barcode:/srv/www/htdocs/marketplace/barcode/vendor/pear/pear:/srv/www/htdocs/marketplace/barcode/vendor/pear/structures_graph:/srv/www/htdocs/marketplace/barcode/vendor/pear/xml_util:.:/usr/share/php7:/usr/share/php7/PEAR') in /srv/www/htdocs/marketplace/pdf/hook.php at line 83 Backtrace : marketplace/pdf/hook.php:83 include_once() src/Plugin.php:783 plugin_pdf_uninstall() front/plugin.form.php:60 Plugin->uninstall()

yllen commented 10 months ago

Is plugin's files always presents in plugins directory? Which object do you want to print with massive action and which part of this object?

wwfeliciano commented 10 months ago

I have the same problem. When I try to export several tickets to PDF, using the actions button, this error appears. When it's a single ticket, it works well My version is 10.0.10 on glpi

yllen commented 10 months ago

is your plugin installed with marketplace?

wwfeliciano commented 10 months ago

yes

yllen commented 10 months ago

Try with correction: https://github.com/yllen/pdf/pull/47/commits/af218fd92e8346dac8a30ed841501081704eefa2

wwfeliciano commented 9 months ago

it worked, thanks!!