printPDF - 500 Internal Server Error Template compile error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mjacak
    Junior Member
    • Jun 2024
    • 7

    printPDF - 500 Internal Server Error Template compile error

    Attempting to print to PDF causes 500 Internal Server Error Template compile error for all modules.

    1. EpsoPD version: 8.3.3
    2. php 8.3.2
    3. mysql 8.0.31
    4. data/tmp folder permission: 775

    log:
    [2024-06-28 08:36:23] CRITICAL: (0) Template compile error. :: GET / :: /home/users/xxxxx/public_html/crm.xxxxx.com/application/Espo/Core/Htmlizer/Htmlizer.php(120)
    ​​
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    It is working fine on two instances of mine. Check your template code.
    Rabii
    Web Dev

    Comment

    • mjacak
      Junior Member
      • Jun 2024
      • 7

      #3
      The template is very basic:

      Today: {{today}}
      Name: {{name}}
      email: {{emailAddress}}

      I just installed a fresh instance and testing functions for further use.
      Any other advice ?​

      Comment

      • rabii
        Active Community Member
        • Jun 2016
        • 1250

        #4
        Check if you have any custom code or extensions that might cause this issue.
        Rabii
        Web Dev

        Comment

        • mjacak
          Junior Member
          • Jun 2024
          • 7

          #5
          There is the default, fresh instance of crm, with 1 account and 1 pdf template.
          All system requirements are: Success
          Last edited by mjacak; 06-28-2024, 10:55 AM.

          Comment

          • rabii
            Active Community Member
            • Jun 2016
            • 1250

            #6
            can you share the code of the pdf (click on code icon to display the code) and sate that with us here. i am sure there is something in your content that is blocking the pdf to pdf function.
            Rabii
            Web Dev

            Comment

            • mjacak
              Junior Member
              • Jun 2024
              • 7

              #7
              ​<p>Today: {{today}}</p>
              <p>Name: {{name}}</p>
              <p>email: {{emailAddress}}</p>

              printscreen below:



              ​​
              Attached Files

              Comment

              • rabii
                Active Community Member
                • Jun 2016
                • 1250

                #8
                everything looks fine here, can you try a pdf for another entity call or meeting.
                Rabii
                Web Dev

                Comment

                • mjacak
                  Junior Member
                  • Jun 2024
                  • 7

                  #9
                  I created meeting and pdf template for it. Error is the same:

                  500 Internal Server Error
                  Template compile error.​
                  Last edited by mjacak; 07-01-2024, 08:02 AM.

                  Comment

                  • rabii
                    Active Community Member
                    • Jun 2016
                    • 1250

                    #10
                    There must be something in your codebase that trigger the error.
                    Rabii
                    Web Dev

                    Comment

                    • mjacak
                      Junior Member
                      • Jun 2024
                      • 7

                      #11
                      Do you have any idea what should I do next to make this feature to work ?

                      Comment

                    • mjacak
                      Junior Member
                      • Jun 2024
                      • 7

                      #12
                      Ok. Thank you for your time and attention.

                      Comment

                      • esforim
                        Active Community Member
                        • Jan 2020
                        • 2204

                        #13
                        Perhaps it your PHP, try 8.2 and check again.

                        Clear your cache.
                        Try the other PDF type (you will need to install this from Github iirc)

                        Comment

                        Working...