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

Folder "admin" hard coded. Does not use new name in config.php

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Login as Admin
      • Create a new course; course/management.php
      • Save and display the new course.
      • Go to the course page.
      • Turn Editing On.
      • Add a lesson activity.
      • Ensure competencies are available.
      • Save and return to the course.
      • Edit config.php
      • Set $CFG->admin = 'testadmin';
      • $CFG->debug = (E_ALL | E_STRICT);
      • $CFG->debugdisplay = 1;
      • Save and close the file
      • mv admin testadmin
      • From the course page, click edit on the Lesson. No warnings should be displayed at the top of the screen.

      If the same procedure is applied to the existing moodle release, you will see the warnings . Be careful when switching branches we a renamed admin folder, it will mess with your git.

      Show
      Login as Admin Create a new course; course/management.php Save and display the new course. Go to the course page. Turn Editing On. Add a lesson activity. Ensure competencies are available. Save and return to the course. Edit config.php Set $CFG->admin = 'testadmin'; $CFG->debug = (E_ALL | E_STRICT); $CFG->debugdisplay = 1; Save and close the file mv admin testadmin From the course page, click edit on the Lesson. No warnings should be displayed at the top of the screen. If the same procedure is applied to the existing moodle release, you will see the warnings . Be careful when switching branches we a renamed admin folder, it will mess with your git.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:

      Description

      I got these warning alerts when I tried to edit a LESSON activity (Administration / lesson administration / edit settings. The include_once url is wrong. I is using the folder /admin/ which I renamed in /config.php .

      Warning: include_once(/home/musappc/public_html/music/admin/tool/lp/classes/course_competencies_form_element.php): failed to open stream: No such file or directory in /home/musappc/public_html/music/lib/pear/HTML/QuickForm.php on line 575

      Warning: include_once(): Failed opening '/home/musappc/public_html/music/admin/tool/lp/classes/course_competencies_form_element.php' for inclusion (include_path='/home/musappc/public_html/music/lib/pear:.;/path/to/php/pear') in /home/musappc/public_html/music/lib/pear/HTML/QuickForm.php on line 575

      Warning: include_once(/home/musappc/public_html/music/admin/tool/lp/classes/course_competency_rule_form_element.php): failed to open stream: No such file or directory in /home/musappc/public_html/music/lib/pear/HTML/QuickForm.php on line 575

      Warning: include_once(): Failed opening '/home/musappc/public_html/music/admin/tool/lp/classes/course_competency_rule_form_element.php' for inclusion (include_path='/home/musappc/public_html/music/lib/pear:.;/path/to/php/pear') in /home/musappc/public_html/music/lib/pear/HTML/QuickForm.php on line 575

      I renamed the folder "admin" in my config.php file but this URL appears to be hard coded and not using the correct name for the "admin" folder.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mr-russ Russell Smith
              Reporter:
              cprudhoe Clarence Prudhoe
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              David Monllaó
              Tester:
              Ankit Agarwal
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16