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

moodledata/cache/core_component.php created with incorrect permission during fresh installation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6
    • 2.6
    • Installation
    • None

    Description

      Warning: sha1_file(/Users/aparup/mtools/moodleglobalsearchdata/cache/core_component.php): failed to open stream: Permission denied in /Users/aparup/Sites/moodleglobalsearch/lib/classes/component.php on line 132
      Call Stack

      1. Time Memory Function Location
        1 0.0013 405528 {main}

        ( ) ../install.php:0
        2 0.0880 16120256 mysqli_native_moodle_database->get_name( ) ../install.php:407
        3 0.0880 16120416 get_string( ) ../mysqli_native_moodle_database.php:288
        4 0.0904 16580160 core_string_manager->get_string( ) ../moodlelib.php:7617
        5 0.0905 16580768 core_string_manager->load_component_strings( ) ../moodlelib.php:6894
        6 0.0905 16581360 core_component::normalize_component( ) ../moodlelib.php:6736
        7 0.0905 16581432 core_component::init( ) ../component.php:643
        8 0.1018 16746592 sha1_file ( )

      $ ls -al /Users/aparup/mtools/moodleglobalsearchdata/cache/core_component.php
      ---------- 1 aparup staff 38777 2 Jul 15:23 /Users/aparup/mtools/moodleglobalsearchdata/cache/core_component.php

      The problem is that installers do not set permissions properly, let's replicate the logic from lib/setup.php in core_component. (skodak)

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              nebgor Aparup Banerjee
              Damyon Wiese Damyon Wiese
              Adrian Greeve Adrian Greeve
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13