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

Call to undefined function resource_set_mainfile()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.2
    • None
    • Administration, Resource
    • OS X 10.7 with default Apache (2.2) and PHP (5.3.6) and 3rd party MySQL installed
    • MySQL
    • MOODLE_22_STABLE
    • Hide

      set up a new environment, set error level to debug then head to /admin/tool/generator.php
      I used 25 users and 10 courses instead of the defaults, but changed nothing else.

      After the error message is thrown the courses and users to exist - but no resources or activities were created in the courses.

      Show
      set up a new environment, set error level to debug then head to /admin/tool/generator.php I used 25 users and 10 courses instead of the defaults, but changed nothing else. After the error message is thrown the courses and users to exist - but no resources or activities were created in the courses.

    Description

      Setting up a new development environment I set errors to debug and ran the generator tool and received the following error:

      25 users correctly inserted in the database.
      10 test courses correctly inserted into the database.
      Fatal error: Call to undefined function resource_set_mainfile() in /Library/WebServer/Documents/dev/moodle/mod/resource/lib.php on line 108

      This is a clean install - no extra resources have been installed. PHP is set to print error messages and debugging is on, but there was no verbose message

      Attachments

        Issue Links

          Activity

            People

              moodle.com Moodle HQ
              dwahl Daniel Wahl
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: