by Simbanic

Enhanced PDF Template add-on allows user to generate a PDF for any SuiteCRM module.

Free 30 day trial
Try it Now

#1856 - HTTP 500 Error on PDF Download

Closed Bug? created by OPDS 5 years ago

Hi when we try to download a PDF for a specific custom module a HTTP 500 error is thrown. We are able to export from other modules including custom modules, but this one new module has something the that causes the issue. The CRM logs show the following...

[6e16e13f-ba3c-f2b7-c4fa-4c04bbcd8141][ERROR] fromString: Conversion of 27/03/2019 12:36 from string failed: DateTime::__construct(): Failed to parse time string (27/03/2019 12:36) at position 0 (2): Unexpected character

The only date fields present are the standard created and modified date fields.

Any ideas or suggestion would be greatly received, thank you for your support.

  1. OPDSUPPORT member avatar

    OPDS

    5 years ago

    We found the issues occurs when we have relationship set between our custom module and Cases, if we remove this relationship the pdf is exports. After looking further at the logs the date time conversion doesn't seem to relate to this issue but there is so much in the debug log it difficult to pinpoint.

    Please let us know if you have suggestions, thank you

  2. OPDSUPPORT member avatar

    OPDS

    5 years ago

    As an alternative is there a way could could prevent the plugin looking at relational data (entirely or just this module)?

    Thanks

  3. OPDSUPPORT member avatar

    OPDS

    5 years ago

    Ok we found the function and commented out for the time being, so it ignores relational beans until we have a better solution. Our next problem is that the pdf does not parse html fields as they are displayed, it just outputs the raw html code. Please could you advise if this is possible to correct? Thank you

  4. andreszafra member avatar

    andreszafra

    3 years ago

    I am having a similar bug when creating a PDF from more that 400 registers on a module, after some minutes I go to error 500.

  5. andreszafra member avatar

    andreszafra

    3 years ago

    I made a copy of my entire site and move it to a dedicated server for testing purpose and still the same, it ends on error 500 after some minutes on large registers, I use this add ok to generate reports for my customers about their cases.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...