-
Bug
-
Resolution: Fixed
-
Critical
-
2.6
-
None
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
w29_
MDL-40435_m26_componentpermissions -
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
- 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)