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

Excel export may return a zero bytes file - problem with excel temp directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6.4, 1.7, 1.8
    • 1.6.3, 1.6.4, 1.7
    • Libraries
    • None
    • linux, and probably all others with permissions enforcement
    • MOODLE_16_STABLE, MOODLE_17_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Problem:
      Can't write temp file. It reports no errors at all.

      Solution:
      Add to excellib.class.php constructor MoodleExcelWorkbook
      $this->pear_excel_workbook->setTempDir($CFG->dataroot."/temp");

      Foruns:
      http://moodle.org/mod/forum/discuss.php?d=53302

        1. MDL-7176_excellib.class.php.patch
          0.7 kB
          Paulo Matos
        2. MDL-7176-oldlib.patch
          1 kB
          Paulo Matos

            skodak Petr Skoda
            paulo.matos Paulo Matos (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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