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

Call to undefined function resource_set_mainfile()

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2
    • DEV backlog
    • 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.com
              dwahl Daniel Wahl
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: