Moodle
  1. Moodle
  2. MDL-35893

Install database cli breaks when performance settings are enabled in config.php

    Details

    • Rank:
      44658

      Description

      Replication steps:-

      1. clone the moodle code to a new location
      2. setup config.php manually
      3. Add following to config.php
        define('MDL_PERF', true);
        define('MDL_PERFDB', true);
        define('MDL_PERFTOLOG', true);
        define('MDL_PERFTOFOOT', true);
        
      4. Try using the cli install_database.php
      5. It will generate the following error:-
        You have to agree to the license. --help prints out the help                                                                                                                                  
        ++ String does not exist. Please check your string definition for lastmodified/moodle ++                                                                                                      
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for name/moodle ++                                                                                                              
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for type/repository ++                                                                                                          
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for size/repository ++                                                                                                          
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for invalidjson/repository ++                                                                                                   
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for error/moodle ++                                                                                                             
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for info/moodle ++                                                                                                              
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for nofilesattached/repository ++                                                                                               
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for filepicker/repository ++                                                                                                    
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for logout/repository ++                                                                                                        
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for nofilesavailable/repository ++                                                                                              
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for norepositoriesavailable/repository ++                                                                                       
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for fileexistsdialogheader/repository ++                                                                                        
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for fileexistsdialog_editor/repository ++                                                                                       
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for fileexistsdialog_filemanager/repository ++                                                                                  
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for renameto/repository ++                                                                                                      
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for referencesexist/repository ++                                                                                               
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 242 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for addtodock/block ++                                                                                                          
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 243 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()                                                                                                  
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()                                                                                                              
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()                                                                                                                     
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()                                                                                                                              
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()                                                                                                                            
        * line ? of unknownfile: call to moodle_request_shutdown()                                                                                                                                    
        ++ String does not exist. Please check your string definition for undockitem/block ++                                                                                                         
        * line 11080 of /lib/moodlelib.php: call to debugging()                                                                                                                                       
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()                                                                                                              
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()                                                                                              
        * line 243 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()
        * line ? of unknownfile: call to moodle_request_shutdown()
        ++ String does not exist. Please check your string definition for undockall/block ++
        * line 11080 of /lib/moodlelib.php: call to debugging()
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()
        * line 243 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()
        * line ? of unknownfile: call to moodle_request_shutdown()
        ++ String does not exist. Please check your string definition for thisdirectionvertical/langconfig ++
        * line 11080 of /lib/moodlelib.php: call to debugging()
        * line 807 of /lib/outputrequirementslib.php: call to lang_string->__construct()
        * line 490 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()
        * line 243 of /lib/outputrequirementslib.php: call to page_requirements_manager->js_module()
        * line 600 of /lib/pagelib.php: call to page_requirements_manager->__construct()
        * line 717 of /lib/pagelib.php: call to moodle_page->magic_get_requires()
        * line 10344 of /lib/moodlelib.php: call to moodle_page->__get()
        * line 10113 of /lib/moodlelib.php: call to get_performance_info()
        * line ? of unknownfile: call to moodle_request_shutdown()
        PERF:  time: 0.08695s memory_total: 27896416B (26.6[[sizemb]]) memory_growth: 26438520B (25.2[[sizemb]]) memory_peak: 28113696B (26.8[[sizemb]]) includecount: 74 includedyuimodules: 0 includedjsmodules: 2 db reads/writes: 7/0 ticks: 9 user: 10 sys: 0 cuser: 0 csys: 0 serverload: 0.89 
        

        Activity

        Hide
        Petr Škoda added a comment -

        to integrators: I did not backport it to 2.3 intentionally because all new installs should use 2.4.x

        Show
        Petr Škoda added a comment - to integrators: I did not backport it to 2.3 intentionally because all new installs should use 2.4.x
        Hide
        Petr Škoda added a comment -

        Thanks for the detailed report.

        Show
        Petr Škoda added a comment - Thanks for the detailed report.
        Hide
        Sam Hemelryk added a comment -

        Thanks Petr this has been integrated now.

        Show
        Sam Hemelryk added a comment - Thanks Petr this has been integrated now.
        Hide
        Rossiani Wijaya added a comment -

        This is working fine.

        Test passed.

        Show
        Rossiani Wijaya added a comment - This is working fine. Test passed.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        And your fantastic code has met core, hope they become good friends for a long period.

        Closing, thanks!

        Show
        Eloy Lafuente (stronk7) added a comment - And your fantastic code has met core, hope they become good friends for a long period. Closing, thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: