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

Call to undefined function resource_set_mainfile()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.2
    • 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.

      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

            moodle.com Moodle HQ
            dwahl Daniel Wahl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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