Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9569

Exceptions from DOMPDF libarary are not wrapped as a CiviCRM error message

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.7
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When the library DOMPDF gets an error/exception, CiviCRM does not wrap the exception as a usual CiviCRM error message. This means the end-user gets a completely white page with a message such as the one below. This particular error message means that the PDF letter has some invalid HTML that cannot be converted to PDF.

      Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame not found in cellmap' in /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/cellmap.cls.php:227 Stack trace: #0 /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/table_cell_renderer.cls.php(80): Cellmap->get_spanned_cells(Object(Table_Cell_Frame_Decorator)) #1 /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/renderer.cls.php(290): Table_Cell_Renderer->render(Object(Table_Cell_Frame_Decorator)) #2 /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/renderer.cls.php(138): Renderer->_render_frame('table-cell', Object(Table_Cell_Frame_Decorator)) #3 /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/renderer.cls.php(196): Renderer->render(Object(Table_Cell_Frame_Decorator)) #4 /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/renderer.cls.php(196): Renderer->render(Object(Table_Row_Frame_Dec in /home/austintx/public_html/sites/all/modules/civicrm/packages/dompdf/include/cellmap.cls.php on line 227

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: