Strange behaviour in printing to PDF - Possible bug?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1664

    #1

    Strange behaviour in printing to PDF - Possible bug?

    Since Upgrading to 9.0.8 there is a strange error in my installations (wich are all the same).

    In a custom entity I have to print out some PDF. For convenience I created Bootstrap buttons based on the WYSIWYG editor field, where I coded the Link to the PDF template by concatenating the necessary values, as shown in the following example. The code is implemented to the Editos field by formula.

    [PHP]ausstellungslisteDrucken(this is the WYSIWYG field) = string\concatenate('<button type="button" class="btn-xs btn-primary" style="width: 100%;">', '<a rel="noopener noreferrer"',' ', 'href="/?entryPoint=pdf&entityType=Ausstellungen&entityId= ',id ,'&templateId=649aea4e09f81da53','"',' ', 'target="_blank">',
    '<span style="color: #fff; text-decoration: none;">','ohne Preis','</span></a></button>');(the rest is the code to concatenate the URL to the PDF, which is pulled by the templateId on base of the current record (entityId=',id ))
    Until the Upgrade this worked without problems. This one button does not even appear and also printing by the menu on top of the record, the PDF will not be created, only a blank page with error 500 appears.
    Nothing in log file or Server log.

    The most strange thing is, when I duplicate the same formula right after the already present first formula, it works.
    I tried also with any third party plugin deinstalled.
  • yuri
    Member
    • Mar 2014
    • 8943

    #2
    Unfortunately, I cannot currently look into. It's been too much workload for me, can't handle more.

    Could be related: https://github.com/espocrm/espocrm/s...qrwp-v8v3-hqp2
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...