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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.6.4, 1.7
    • Fix Version/s: 1.6.4, 1.7, 1.8
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      linux, and probably all others with permissions enforcement
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              paulo.matos Paulo Matos
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Nov/06