Hi there!
We have migrated system from Moodle 3.4+ to Moodle 3.5.9+ running on Ubuntu 16.* system, and Mysql database.
When we are trying to build theme (default cron job), we are experience following errors
Execute adhoc task: core\task\build_installed_themes_task
... started 11:39:41. Current memory use 47.3MB.
Default exception handler: Exception - Call to undefined method Sabberworm\CSS\Value\Size::getListComponents() Debug:
Error code: generalexceptionmessage
* line 273 of /lib/rtlcss/RTLCSS.php: Error thrown
* line 223 of /lib/rtlcss/RTLCSS.php: call to MoodleHQ\RTLCSS\RTLCSS->processRule()
* line 55 of /lib/classes/rtlcss.php: call to MoodleHQ\RTLCSS\RTLCSS->processDeclaration()
* line 192 of /lib/rtlcss/RTLCSS.php: call to core_rtlcss->processDeclaration()
* line 63 of /lib/rtlcss/RTLCSS.php: call to MoodleHQ\RTLCSS\RTLCSS->processBlock()
* line 1964 of /lib/outputlib.php: call to MoodleHQ\RTLCSS\RTLCSS->flip()
* line 1942 of /lib/outputlib.php: call to theme_config->rtlize()
* line 1148 of /lib/outputlib.php: call to theme_config->post_process()
* line 208 of /lib/outputlib.php: call to theme_config->get_css_content()
* line 52 of /lib/classes/task/build_installed_themes_task.php: call to theme_build_css_for_themes()
* line 185 of /lib/cronlib.php: call to core\task\build_installed_themes_task->execute()
* line 74 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 61 of /admin/cli/cron.php: call to cron_run()
!!! Exception - Call to undefined method Sabberworm\CSS\Value\Size::getListComponents() !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 273 of /lib/rtlcss/RTLCSS.php: Error thrown
* line 223 of /lib/rtlcss/RTLCSS.php: call to MoodleHQ\RTLCSS\RTLCSS->processRule()
* line 55 of /lib/classes/rtlcss.php: call to MoodleHQ\RTLCSS\RTLCSS->processDeclaration()
* line 192 of /lib/rtlcss/RTLCSS.php: call to core_rtlcss->processDeclaration()
* line 63 of /lib/rtlcss/RTLCSS.php: call to MoodleHQ\RTLCSS\RTLCSS->processBlock()
* line 1964 of /lib/outputlib.php: call to MoodleHQ\RTLCSS\RTLCSS->flip()
* line 1942 of /lib/outputlib.php: call to theme_config->rtlize()
* line 1148 of /lib/outputlib.php: call to theme_config->post_process()
* line 208 of /lib/outputlib.php: call to theme_config->get_css_content()
* line 52 of /lib/classes/task/build_installed_themes_task.php: call to theme_build_css_for_themes()
* line 185 of /lib/cronlib.php: call to core\task\build_installed_themes_task->execute()
* line 74 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 61 of /admin/cli/cron.php: call to cron_run()
!!
PHP Fatal error: Uncaught coding_exception: Coding error detected, it must be fixed by a programmer: A lock was created but not released at:
/var/www/html/scdiamond/lib/classes/task/manager.php on line 461
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #3104);
$lock->release(); // Locks must ALWAYS be released like this.
in /var/www/html/scdiamond/lib/classes/lock/lock.php:117
Stack trace:
#0 [internal function]: core\lock\lock->__destruct()
#1 {main}
thrown in /var/www/html/scdiamond/lib/classes/lock/lock.php on line 117
Fatal error: Uncaught coding_exception: Coding error detected, it must be fixed by a programmer: A lock was created but not released at:
/var/www/html/scdiamond/lib/classes/task/manager.php on line 461
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #3104);
$lock->release(); // Locks must ALWAYS be released like this.
in /var/www/html/scdiamond/lib/classes/lock/lock.php:117
Stack trace:
#0 [internal function]: core\lock\lock->__destruct()
#1 {main}
thrown in /var/www/html/scdiamond/lib/classes/lock/lock.php on line 117
From the above error we realize that theme is looking for function Sabberworm\CSS\Value\Size::getListComponents() which should be located in /lib/php-css-parser/Value/Size.php.
But we dont find any appropriate defination in the file which is as below
/********************/lib/php-css-parser/Value/Size.php ******************************/