moosh icon indicating copy to clipboard operation
moosh copied to clipboard

Moosh course-backup issue

Open thanos-k opened this issue 9 months ago • 0 comments

I am using moodle version 4.5.3

$version = 2024100703.00; $release = '4.5.3 (Build: 20250317)';

but when I attempt to do a course backup using

/opt/moosh-1.27/moosh/moosh.php -o session_handler_class=unset -p /var/www/moodle course-backup 2

I get the following warnings and eventual error

PHP Warning:  Undefined property: stdClass::$libdir in /var/www/moodle/mod/stickynotes/lib.php on line 28

Warning: Undefined property: stdClass::$libdir in /var/www/moodle/mod/stickynotes/lib.php on line 28
PHP Warning:  require_once(/formslib.php): Failed to open stream: No such file or directory in /var/www/moodle/mod/stickynotes/lib.php on line 28

Warning: require_once(/formslib.php): Failed to open stream: No such file or directory in /var/www/moodle/mod/stickynotes/lib.php on line 28
PHP Warning:  Undefined property: stdClass::$dirroot in /var/www/moodle/lib/classes/string_manager_standard.php on line 139

Warning: Undefined property: stdClass::$dirroot in /var/www/moodle/lib/classes/string_manager_standard.php on line 139
PHP Warning:  Undefined property: stdClass::$dirroot in /var/www/moodle/lib/classes/string_manager_standard.php on line 139

Warning: Undefined property: stdClass::$dirroot in /var/www/moodle/lib/classes/string_manager_standard.php on line 139
PHP Warning:  Undefined property: stdClass::$dirroot in /var/www/moodle/lib/setuplib.php on line 446

Warning: Undefined property: stdClass::$dirroot in /var/www/moodle/lib/setuplib.php on line 446
PHP Warning:  include(/version.php): Failed to open stream: No such file or directory in /var/www/moodle/lib/setuplib.php on line 446

Warning: include(/version.php): Failed to open stream: No such file or directory in /var/www/moodle/lib/setuplib.php on line 446
PHP Warning:  include(): Failed opening '/version.php' for inclusion (include_path='/var/www/moodle/lib/pear:.:/usr/share/php') in /var/www/moodle/lib/setuplib.php on line 446

Warning: include(): Failed opening '/version.php' for inclusion (include_path='/var/www/moodle/lib/pear:.:/usr/share/php') in /var/www/moodle/lib/setuplib.php on line 446
PHP Warning:  Undefined variable $branch in /var/www/moodle/lib/setuplib.php on line 452

Warning: Undefined variable $branch in /var/www/moodle/lib/setuplib.php on line 452
PHP Warning:  Undefined property: stdClass::$forced_plugin_settings in /var/www/moodle/lib/moodlelib.php on line 1017

Warning: Undefined property: stdClass::$forced_plugin_settings in /var/www/moodle/lib/moodlelib.php on line 1017
!!! error/generalexceptionmessage !!!
PHP Warning:  Undefined property: stdClass::$libdir in /var/www/moodle/lib/dml/moodle_database.php on line 900

Warning: Undefined property: stdClass::$libdir in /var/www/moodle/lib/dml/moodle_database.php on line 900
PHP Warning:  require_once(/ddllib.php): Failed to open stream: No such file or directory in /var/www/moodle/lib/dml/moodle_database.php on line 900

Warning: require_once(/ddllib.php): Failed to open stream: No such file or directory in /var/www/moodle/lib/dml/moodle_database.php on line 900
Exception ignored in shutdown function tool_log\log\manager::dispose: Failed opening required '/ddllib.php' (include_path='/var/www/moodle/lib/pear:.:/usr/share/php')


Ι seems that it does not recognize $dirroot and as a consequence $libdir.

I am on php 8.1.2

Any ideas what might be causing this ?

thanos-k avatar Apr 02 '25 18:04 thanos-k