open-lms-open-source / moodle-theme_snap

GNU General Public License v3.0
79 stars 75 forks source link

String errors on clean install #265

Open gjb2048 opened 11 months ago

gjb2048 commented 11 months ago

Snap:

$plugin->version   = 2023073100;
$plugin->requires  = 2022112800;
$plugin->release   = '4.1.3';
$plugin->maturity  = MATURITY_STABLE;
$plugin->component = 'theme_snap';
$plugin->dependencies = [
    'theme_boost' => '2020110900'
];

Moodle:

$version  = 2022112805.03;              // 20221128      = branching date YYYYMMDD - do not modify!
                                        //         RR    = release increments - 00 in DEV branches.
                                        //           .XX = incremental changes.
$release  = '4.1.5+ (Build: 20230826)'; // Human-friendly version name
$branch   = '401';                     // This version's branch.
$maturity = MATURITY_STABLE;             // This version's maturity level.

Errors:

[02-Sep-2023 21:02:05 Europe/London] Debugging: Invalid get_string() identifier: 'gradebook' or component 'local_joulegrader'. Perhaps you are missing $string['gradebook'] = ''; in /lang/en/local_joulegrader.php? in 
* line 356 of \lib\classes\string_manager_standard.php: call to debugging()
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string()
* line 261 of \lib\externallib.php: call to core_external::get_string()
* line 81 of \lib\ajax\service.php: call to external_api::call_external_function()
* line 33 of \lib\ajax\service-nologin.php: call to require_once()

[02-Sep-2023 21:02:05 Europe/London] Debugging: Invalid get_string() identifier: 'outcomes' or component 'core_outcome'. Perhaps you are missing $string['outcomes'] = ''; in lang/en/core_outcome.php? in 
* line 356 of \lib\classes\string_manager_standard.php: call to debugging()
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string()
* line 261 of \lib\externallib.php: call to core_external::get_string()
* line 81 of \lib\ajax\service.php: call to external_api::call_external_function()
* line 33 of \lib\ajax\service-nologin.php: call to require_once()

[02-Sep-2023 21:02:05 Europe/London] Debugging: Invalid get_string() identifier: 'coursereport' or component 'report_allylti'. Perhaps you are missing $string['coursereport'] = ''; in /lang/en/report_allylti.php? in 
* line 356 of \lib\classes\string_manager_standard.php: call to debugging()
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string()
* line 261 of \lib\externallib.php: call to core_external::get_string()
* line 81 of \lib\ajax\service.php: call to external_api::call_external_function()
* line 33 of \lib\ajax\service-nologin.php: call to require_once()

[02-Sep-2023 21:02:05 Europe/London] Debugging: Invalid get_string() identifier: 'pluginname' or component 'local_catalogue'. Perhaps you are missing $string['pluginname'] = ''; in /lang/en/local_catalogue.php? in 
* line 356 of \lib\classes\string_manager_standard.php: call to debugging()
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string()
* line 261 of \lib\externallib.php: call to core_external::get_string()
* line 81 of \lib\ajax\service.php: call to external_api::call_external_function()
* line 33 of \lib\ajax\service-nologin.php: call to require_once()

[02-Sep-2023 21:02:05 Europe/London] Debugging: Invalid get_string() identifier: 'experimental' or component 'block_reports'. Perhaps you are missing $string['experimental'] = ''; in /lang/en/block_reports.php? in 
* line 356 of \lib\classes\string_manager_standard.php: call to debugging()
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string()
* line 261 of \lib\externallib.php: call to core_external::get_string()
* line 81 of \lib\ajax\service.php: call to external_api::call_external_function()
* line 33 of \lib\ajax\service-nologin.php: call to require_once()

[02-Sep-2023 21:02:13 Europe/London] PHP Fatal error:  Out of memory (allocated 23068672) (tried to allocate 270336 bytes) in F:\moodledev\moodle41\theme\snap\classes\local.php on line 37

Therefore the code does not properly check to see if the plugins are there, it only (I think) relies on the setting being set (the default).