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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.6
    • 2.6
    • Installation
    • None

      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)

            skodak Petr Skoda
            nebgor Aparup Banerjee
            Damyon Wiese Damyon Wiese
            Adrian Greeve Adrian Greeve
            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.