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

Warning when attempting to upload users on a new site

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.1
    • Component/s: Installation
    • Labels:
    • Testing Instructions:
      Hide

      1/ clear error log in php
      2/ upload users
      3/ make sure no errors logged and not .htaccess created in temp dir
      4/ move tempdir to different location via $CFG->tempdir
      5/ upload again
      6/ no error expected, .htaccess should be created

      Show
      1/ clear error log in php 2/ upload users 3/ make sure no errors logged and not .htaccess created in temp dir 4/ move tempdir to different location via $CFG->tempdir 5/ upload again 6/ no error expected, .htaccess should be created
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w51_MDL-30621_m23_protectdir

      Description

      I've hit this a couple of times now.
      When I install a new site the very first thing I do is upload users, the past couple of times I have done this I have received the following when I first visit the upload users script.

      Warning: fopen(/private/var/www/moodledata/integration/2_3/temp/.htaccess): failed to open stream: No such file or directory in /private/var/www/integration/lib/setuplib.php on line 1157

      It doesn't appear to be anything critical a quick inspection after the upload and I see that the .htaccess file has now been created so no probs.

      However annoying.

      To replicate:

      1. Install a new site (MUST be an empty moodledata directory)
      2. Proceed till you get to the front page
      3. Browse to Admin settings > Users > Accounts > Upload users
      4. You'll see the notice at the top.

      Cheers
      Sam

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/12