Giter VIP home page Giter VIP logo

Comments (15)

gkukovacec avatar gkukovacec commented on August 25, 2024

Update: print working from "Print to PDF" from left menu on open ticket, but not from Actions menu!

from pdf.

yllen avatar yllen commented on August 25, 2024

There is no container index in the common.class.
Can you give me the complete error in file/_logs/php-error.log?

From Actions menu, no problem for me, i can print in PDF several computers.
Have you an error?

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

Hi Yllen, thanks for your feedback.

As I have said, Print to PDF works from menu on the left in the ticket, but not from action button.

Here is log entry you've requested:

[2022-11-02 10:45:58] glpiphplog.NOTICE: *** PHP Notice (8): Undefined index: container in /home/getimin5/public_html/glpi/plugins/pdf/inc/common.class.php at line 517
Backtrace :
src/MassiveAction.php:904 PluginPdfCommon::showMassiveActionsSubForm()
ajax/dropdownMassiveAction.php:53 MassiveAction->showSubForm()

Thank you!

Goran

from pdf.

yllen avatar yllen commented on August 25, 2024

I made several tests and container is always defined

For ticket => all OK
MassiveAction Object ( [POST] => Array ( [action] => DoIt [container] => massformTicket

For computer => all OK
MassiveAction Object ( [POST] => Array ( [action] => DoIt [container] => massformComputer
I can't correct an issue if i can't reproduce it.

which parameters have you checked for ticketd in your pdf printing preferences(in my setting)?

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

Hi,
I have chosen Tickets and Items.

image

If required, I can provide access, just let me know how to PM credentials to you.

Thanks for your time!

Goran

from pdf.

yllen avatar yllen commented on August 25, 2024

Massive actions are defined in your settings not in the item.
So, post your settings for ticket item

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

I'm sorry, I'm noob here... please let me know what exactly.
Thanks,
Goran

from pdf.

yllen avatar yllen commented on August 25, 2024

image
image

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

I have selected Items there, too.

image

Still the same: Uncaught Exception TypeError: Argument 1 passed to Toolbox::stripTags() must be of the type string, null given, called in /home/getimin5/public_html/glpi/plugins/pdf/inc/item_ticket.class.php on line 122 in /home/getimin5/public_html/glpi/src/Toolbox.php at line 3109

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

Would you like me to send you Superadmin acconut?

from pdf.

yllen avatar yllen commented on August 25, 2024

This error was already corrected.
Duplicate #26

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

Great!

How do I apply it?

Thanks!

Goran

from pdf.

yllen avatar yllen commented on August 25, 2024

You apply the correction 021a46a

from pdf.

gkukovacec avatar gkukovacec commented on August 25, 2024

I have applied the correction, I can confirm that printing now works if Items are selected.

Printing from Action button still does not work, fails with the same error as in initial post.

PHP Notice (8): Undefined index: container in /home/getimin5/public_html/glpi/plugins/pdf/inc/common.class.php at line 517

Please advise.
Thanks,
Goran

from pdf.

yllen avatar yllen commented on August 25, 2024

OK, so corrected for items.
Which fields of which item do you want to print?
Can you give me the error in glpi (php-ellor.log)?

I think one of the field is missing and i must to protect it, like for ticket's item

from pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.