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

PHP warnings running CLI install

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2
    • 2.2
    • Installation

      While testing MDL-29474 it has been detected that one PHP warning is happening foreach component installed. It does not happen on upgrade, only on install. And only under current master (2.2).

      After sharing with Petr, he told me he has an idea about it caused by some chicken-egg problem introduced recently so he will looking to this.

      Complete stack trace (for the 1st two installed components):

      Moodle 2.2dev (Build: 20111019) command line installation program
      -->System
      ++ Success ++
      -->qtype_calculated
      PHP Warning:  file_put_contents(/Users/Shared/Jenkins/Home/moodledata/temp/languages): failed to open stream: No such file or directory in /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php on line 6386
      PHP Stack trace:
      PHP   1. {main}() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:0
      PHP   2. install_cli_database() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:674
      PHP   3. upgrade_noncore() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/installlib.php:435
      PHP   4. upgrade_plugins() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:1434
      PHP   5. purge_all_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:371
      PHP   6. core_string_manager->reset_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:1427
      PHP   7. core_string_manager->get_list_of_translations() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6428
      PHP   8. file_put_contents() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6386
       
      Warning: file_put_contents(/Users/Shared/Jenkins/Home/moodledata/temp/languages): failed to open stream: No such file or directory in /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php on line 6386
       
      Call Stack:
          0.0015     977568   1. {main}() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:0
          0.3804   45988384   2. install_cli_database() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:674
          4.8978   66796656   3. upgrade_noncore() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/installlib.php:435
          4.8981   66801008   4. upgrade_plugins() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:1434
          4.9933   66491160   5. purge_all_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:371
          4.9958   66490968   6. core_string_manager->reset_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:1427
          4.9972   65789312   7. core_string_manager->get_list_of_translations() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6428
          4.9978   65796920   8. file_put_contents() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6386
       
      ++ Success ++
      -->qtype_calculatedmulti
      PHP Warning:  file_put_contents(/Users/Shared/Jenkins/Home/moodledata/temp/languages): failed to open stream: No such file or directory in /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php on line 6386
      PHP Stack trace:
      PHP   1. {main}() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:0
      PHP   2. install_cli_database() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:674
      PHP   3. upgrade_noncore() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/installlib.php:435
      PHP   4. upgrade_plugins() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:1434
      PHP   5. purge_all_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:371
      PHP   6. core_string_manager->reset_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:1427
      PHP   7. core_string_manager->get_list_of_translations() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6428
      PHP   8. file_put_contents() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6386
       
      Warning: file_put_contents(/Users/Shared/Jenkins/Home/moodledata/temp/languages): failed to open stream: No such file or directory in /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php on line 6386
       
      Call Stack:
          0.0015     977568   1. {main}() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:0
          0.3804   45988384   2. install_cli_database() /Users/Shared/Jenkins/Home/moodle_integration_git/admin/cli/install.php:674
          4.8978   66796656   3. upgrade_noncore() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/installlib.php:435
          4.8981   66801008   4. upgrade_plugins() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:1434
          5.0175   66154848   5. purge_all_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/upgradelib.php:371
          5.0193   66154896   6. core_string_manager->reset_caches() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:1427
          5.0201   65789312   7. core_string_manager->get_list_of_translations() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6428
          5.0206   65796920   8. file_put_contents() /Users/Shared/Jenkins/Home/moodle_integration_git/lib/moodlelib.php:6386
       
      ++ Success ++
      ...
      ...

            skodak Petr Skoda
            stronk7 Eloy Lafuente (stronk7)
            Aparup Banerjee Aparup Banerjee
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.