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

Call to undefined function resource_set_mainfile()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: DEV backlog
    • Component/s: Administration, Resource
    • Labels:
    • Environment:
      OS X 10.7 with default Apache (2.2) and PHP (5.3.6) and 3rd party MySQL installed
    • Database:
      MySQL
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_22_STABLE

      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

              Assignee:
              moodle.com moodle.com
              Reporter:
              dwahl Daniel Wahl
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: