Projet

Général

Profil

Actions

Anomalie #1749

fermé

Error when printing objects

Ajouté par Guillaume AGNIERAY il y a 5 mois. Mis à jour il y a 5 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
28/11/2023
Echéance:
% réalisé:

100%

Temps estimé:

Description

  • when printing the history of a single object that has never been rented
        Message : wordwrap(): Passing null to parameter #1 ($string) of type string is deprecated
        Fichier : /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/IO/PdfObject.php
        Ligne : 252
    
        Trace
    
        #0 [internal function]: {closure}()
        #1 /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/IO/PdfObject.php(252): wordwrap()
        #2 /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/IO/PdfObject.php(188): GaletteObjectsLend\IO\PdfObject->addCell()
        #3 /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/IO/PdfObject.php(115): GaletteObjectsLend\IO\PdfObject->drawCard()
        #4 /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/Controllers/PdfController.php(93): GaletteObjectsLend\IO\PdfObject->drawCards()
        #5 [internal function]: GaletteObjectsLend\Controllers\PdfController->printObject()
        ...
      
  • when batch printing a selection of objects (requires PR#12)
        Message : basename(): Passing null to parameter #1 ($path) of type string is deprecated
        Fichier : /var/www/galette/galette/vendor/tecnickcom/tcpdf/tcpdf.php
        Ligne : 7759
    
        Trace
    
        #0 [internal function]: {closure}()
        #1 /var/www/galette/galette/vendor/tecnickcom/tcpdf/tcpdf.php(7759): basename()
        #2 /var/www/galette/galette/lib/Galette/IO/Pdf.php(474): TCPDF->Output()
        #3 /var/www/galette/galette/lib/Galette/Controllers/PdfController.php(87): Galette\IO\Pdf->download()
        #4 /var/www/galette/galette/plugins/plugin-objectslend/lib/GaletteObjectsLend/Controllers/PdfController.php(128): Galette\Controllers\PdfController->sendResponse()
        #5 [internal function]: GaletteObjectsLend\Controllers\PdfController->printObjects()
        ...
      

Mis à jour par Guillaume AGNIERAY il y a 5 mois

Sorry I opened thsi issue on the wrong project :/
It is actually related to the Objectslend plugin.

Mis à jour par Johan Cwiklinski il y a 5 mois

  • Projet changé de Évènements à Prêt d'objets
  • Version utilisée 2.0.0 supprimé

Mis à jour par Johan Cwiklinski il y a 5 mois

  • Assigné à mis à Johan Cwiklinski

I've not been able to reproduce the first issue, but it should be fixed anyway. Second one was easy to reproduce, and is fixed ;)

Mis à jour par Johan Cwiklinski il y a 5 mois

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

Mis à jour par Johan Cwiklinski il y a 5 mois

  • Statut changé de Résolu à Fermé

Johan Cwiklinski a écrit (#note-3):

I've not been able to reproduce the first issue, but it should be fixed anyway. Second one was easy to reproduce, and is fixed ;)

For first issue, I made another change: c17c36d29eb49cdf2746c81935fc46dc96f18a74

Actions

Formats disponibles : Atom PDF