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

Prevent dvips from cluttering in the error log

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.9, 3.0
    • Fix Version/s: 2.9.4, 3.0.2
    • Component/s: Filters
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      You need a moodle install with the tex filter configured, that is easier said that done:

      1. Disable the mathjax filter
      2. Install latex, dvips and convert libraries sudo apt-get install texlive-full
      3. Login as admin
      4. Enable tex filter (Settings -> Site administration -> Plugins -> Filters -> Manage filters)
      5. Click settings (next to tex filter) and make sure libraries point to right path
      6. Create a label in course paste:

        $$ \sqrt {x + y}
        $$
        

      7. Save and return to course
      8. Make sure you can see square-root x + y image.
      9. Inspect the image and make sure thats coming from filter/tex/pix.php and not mathjax

      If you don't get to that point, you've likely got your install misconfigured..

      Test
      The test involves tailing your apache error log and make sure your not getting 'non-errors' about dvips in there, this is just one example of how to do it:

      1. Ensure you've not got any pre-built tex by running rm -r moodledata/filter/tex/ and purging caches
      2. Open new incognito window (eliminate browser cache)
      3. Go to an atto editor and open the equation editor
      4. VERIFY: that the apache error log is not spammed with many informational messags about dvips
      Show
      Setup You need a moodle install with the tex filter configured, that is easier said that done: Disable the mathjax filter Install latex, dvips and convert libraries sudo apt-get install texlive-full Login as admin Enable tex filter (Settings -> Site administration -> Plugins -> Filters -> Manage filters) Click settings (next to tex filter) and make sure libraries point to right path Create a label in course paste: $$ \sqrt {x + y} $$ Save and return to course Make sure you can see square-root x + y image. Inspect the image and make sure thats coming from filter/tex/pix.php and not mathjax If you don't get to that point, you've likely got your install misconfigured.. Test The test involves tailing your apache error log and make sure your not getting 'non-errors' about dvips in there, this is just one example of how to do it: Ensure you've not got any pre-built tex by running rm -r moodledata/filter/tex/ and purging caches Open new incognito window (eliminate browser cache) Go to an atto editor and open the equation editor VERIFY: that the apache error log is not spammed with many informational messags about dvips
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-23128-master

      Description

      line 124 proposed change: $command = "{$CFG->filter_tex_pathdvips} -q -R -E $dvi -o $ps"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Jan/16