Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73991

TCPDF ERROR: SVG file not found for accessibility toolkit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.11.5, 3.11.7, 4.0.1
    • Accessibility toolkit
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-73991_401_TCPDF_error
    • MDL-73991_master_TCPDF_error
    • Hide
      1. TBD: Configure site with an sslproxy/using default moodle-docker network configuration where the server container network is aliased to webserver internally.
      2. Register the site with Brickfield on course admin > plugins > accessibility > brickfield registration
      3. Navigate to Plugins > Admin tools > Accessibility > Accessibility toolkit settings
      4. Tick Enable analysis requests and save changes
      5. Submit a course for analysis from the course settings > accessibility toolkit
      6. Wait for the analysis to complete or by running the scheduled tasks in order:
        1. \tool_brickfield\task\process_analysis_requests
        2. \tool_brickfield\task\bulk_process_caches
      7. Navigate to the summary report for the course from course settings > accessibility toolit > summary report
      8. Click 'Download PDF'

      Before applying the patch this will generate the error, and after the patch the PDF should download as normal, except the images will be missing.
       

      Show
      TBD: Configure site with an sslproxy/using default moodle-docker network configuration where the server container network is aliased to webserver internally. Register the site with Brickfield on course admin > plugins > accessibility > brickfield registration Navigate to Plugins > Admin tools > Accessibility > Accessibility toolkit settings Tick Enable analysis requests and save changes Submit a course for analysis from the course settings > accessibility toolkit Wait for the analysis to complete or by running the scheduled tasks in order: \tool_brickfield\task\process_analysis_requests \tool_brickfield\task\bulk_process_caches Navigate to the summary report for the course from course settings > accessibility toolit > summary report Click 'Download PDF' Before applying the patch this will generate the error, and after the patch the PDF should download as normal, except the images will be missing.  
    • HQ Sprint 1.3 Moppies

      Error occurs in either scenario:

      • A configured SSL proxy for the site
      • An internal network alias on the server such as default moodle-docker aliasing from localhost -> webserver

      FULL STEPS

      • Register single site with Brickfield
      • Add Accessibility toolkit block to a course
      • Submit course for analysis
      • Wait for results to be generated with cron or run the tool_brickfield content analysis requests, and the caching scheduled tasks
      • Click the download PDF icon in block or summary report page

      WHAT I EXPECTED

      • PDF should download

      WHAT ACTUALLY HAPPENS

      • Error is output:

      .../admin/tool/brickfield/pix/pdf/tachometer-alt-solid.svg

      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:

          line 2992 of /lib/tcpdf/tcpdf.php: Exception thrown
          line 22860 of /lib/tcpdf/tcpdf.php: call to TCPDF->Error()
          line 19048 of /lib/tcpdf/tcpdf.php: call to TCPDF->ImageSVG()
          line 18398 of /lib/tcpdf/tcpdf.php: call to TCPDF->openHTMLTagHandler()
          line 5901 of /lib/tcpdf/tcpdf.php: call to TCPDF->writeHTML()
          line 18330 of /lib/tcpdf/tcpdf.php: call to TCPDF->MultiCell()
          line 273 of /admin/tool/brickfield/classes/output/printable/renderer.php: call to TCPDF->writeHTML()
          line 227 of /admin/tool/brickfield/classes/local/tool/printable.php: call to tool_brickfield\output\printable\renderer->pdf_renderer()
          line 131 of /admin/tool/brickfield/index.php: call to tool_brickfield\local\tool\printable->get_output()

      It appears to fail on the curl call to the image URL, but I cannot find any more information as to what is causing the return code of 0.

            bigmoodle Max Larkin
            meltonml Michelle Melton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.