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

Publish course to hub

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Hub
    • Labels:
      None
    • Environment:
      Moodle 2.0 Preview 4+ (Build: 20100831)
      Debian Lenny, php 5.2.14-0.dotdeb.0, postgresql 8.3.11-0lenny1
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When i try to share a course for download, after selecting hub, filling the "Course publication information" form and pressing "Upload this course to ..." button, i get the following error:

      Error reading from database

      Debug info: ERROR: invalid input syntax for integer: ""
      SELECT * FROM mdl_course_published WHERE huburl = $1 AND courseid = $2 AND enrollable = $3
      [array (
      0 => 'http://<address of my server>/moodle3',
      1 => '2',
      2 => false,
      )]
      Stack trace:
      line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
      line 229 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
      line 669 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
      line 1069 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
      line 1018 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
      line 176 of /course/publish/lib.php: call to moodle_database->get_records()
      line 112 of /course/publish/forms.php: call to course_publish_manager->get_publications()
      line 152 of /lib/formslib.php: call to course_publication_form->definition()
      line 82 of /course/publish/metadata.php: call to moodleform->moodleform()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              pmolnar Molnár Péter
              Tester:
              Nobody
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10