Forum

Export PDF From Act...
 
Notifications
Retirer tout

Export PDF From Activities

4 Posts
4 Utilisateurs
0 Reactions
923 Vu
(@fad)
Posts: 46
Trusted Member
Début du sujet
 
[#9807]

Hi,

I'm with the following !

I can't export activties in pdf (Very strange because it works fine since long time on previous version). I have the log informations here below :

_____________________________________________________________________________________________________________________________2025-04-09 06:36:14.989 ===== TRACE ===== [3] NEW CONNECTED USER 'farnaud' (using remember me feature)
2025-04-09 06:36:25.171 ** ERROR ** [V12.0.2] [3] EXCEPTION **
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] on file '/var/www/projeqtor/external/html2pdf/src/Parsing/Html.php' at line (262)
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] cause = Tags are closed in a wrong order for

2025-04-09 06:36:25.171 ** ERROR ** [V12.0.2] [3] => #0 /var/www/projeqtor/external/html2pdf/src/Parsing/Html.php (94) -> getTagAction()
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] => #1 /var/www/projeqtor/external/html2pdf/src/Html2Pdf.php (611) -> parse()
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] => #2 /var/www/projeqtor/view/print.php (425) -> writeHTML()
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] => #3 /var/www/projeqtor/view/print.php (312) -> finalizePrint()
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] => Error on print for parameters:
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] -> page : objectDetail.php
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] -> object class : Activity
2025-04-09 06:36:25.171
** ERROR ** [V12.0.2] [3] -> object id : 000303
2025-04-09 06:36:25.171
** ERROR ***** [V12.0.2] [3] -> report name :
________________________________________________________________________________________________________________________________________________
Projeqtor is hosted on Ubuntu 24.4.02 LTS.

Thank you for your help,

Fred

 


 
Posté : 09/04/2025 8:45 am
(@marylene)
Posts: 592
Membre Admin
 

Hello,

I'm not reproducing this on my end.
Given the error message, the problem probably lies with the content of this activity (id: 303).
There's probably a description or comment field containing incorrect HTML. Try looking at fields that may contain rich text to check if there's a problem.


 
Posté : 10/04/2025 11:39 am
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

Does this mean that fiels are not text protected and users can make HTML injection in them ?


 
Posté : 11/04/2025 7:12 pm
(@babynus)
Posts: 14952
Membre Admin
 

The stored data is protected but not converted nor "fixed".
Description, notes and other fields have editor feature.
These fields are stored in html format, after some sanitization (events, scripts) but not fix .
For instance if you enter (in code format)

OK
The tags are not correctly closed.
Brower will manage closing tags automatically, but not the external library used to export PDF


 
Posté : 18/04/2025 5:30 pm
Share:
Retour en haut