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

Export to portfolio fails with database error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 2.3
    • 2.3
    • Portfolio
    • None
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE

      Latest weekly of Moodle 2.3 Build: 20120522
      Latest build of Mahara 1.5 (2012041005)

      Set up MNET and confirm that roaming from Moodle to Mahara works
      Create a forum post and attempt to export to Mahara in HTML format. Error results... (the error was really mangled up too which doesn't help)

      Debug info:
      Error code: dmlreadexception
      Stack trace:

      line 982 of /lib/portfoliolib.php: portfolio_export_exception thrown
      line 247 of /lib/portfolio/exporter.php: call to portfolio_export_rethrow_exception()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 267 of /portfolio/add.php: call to portfolio_exporter->process_stage()

      A third party exception was thrown during portfolio export (dml_read_exception). Caught and rethrown but this should really be fixed

      line 245 of /lib/portfolio/exporter.php: call to debugging()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 267 of /portfolio/add.php: call to portfolio_exporter->process_stage()

      exception 'dml_read_exception' with message 'Error reading from database' in /var/www/moodle23/lib/dml/moodle_database.php:413
      Stack trace:
      #0 /var/www/moodle23/lib/dml/mysqli_native_moodle_database.php(868): moodle_database->query_end(false)
      #1 /var/www/moodle23/lib/filestorage/file_storage.php(421): mysqli_native_moodle_database->get_records_sql('SELECT f.*, r.r...', Array)
      #2 /var/www/moodle23/lib/portfolio/exporter.php(812): file_storage->get_area_files('1', 'portfolio', 'exporter', 8, '', false)
      #3 /var/www/moodle23/portfolio/mahara/lib.php(174): portfolio_exporter->get_tempfiles()
      #4 /var/www/moodle23/lib/portfolio/exporter.php(459): portfolio_plugin_mahara->prepare_package()
      #5 /var/www/moodle23/lib/portfolio/exporter.php(227): portfolio_exporter->process_stage_package()
      #6 /var/www/moodle23/lib/portfolio/exporter.php(233): portfolio_exporter->process_stage(4)
      #7 /var/www/moodle23/portfolio/add.php(267): portfolio_exporter->process_stage(3, false)
      #8

      {main}

      line 246 of /lib/portfolio/exporter.php: call to debugging()
      line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
      line 267 of /portfolio/add.php: call to portfolio_exporter->process_stage()portfolio_exporter->process_stage(4)
      #7 /var/www/moodle23/portfolio/add.php(267): portfolio_exporter->process_stage(3, false)
      #8 {main}

      <ul style="text-align: left"><li>line 246 of /lib/portfolio/exporter.php: call to debugging()</li><li>line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()</li><li>line 267 of /portfolio/add.php: call to portfolio_exporter->process_stage()</li></ul></div>

            poltawski Dan Poltawski
            howardsmiller Howard Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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