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

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

XMLWordPrintable

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • 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.

      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.

            mr-russ Russell Smith
            cprudhoe Clarence Prudhoe
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            David Monllaó David Monllaó
            Ankit Agarwal Ankit Agarwal
            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.