You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following command works but throw deprecated message and show a Command/Moodle39 instead of Moodle41 folder in the trace despite the verbose log line saying "Moodle version detected: 401".
www-data@mdl-appr-dev02:~/moodle/https/moodle-dev$ moosh --verbose user-delete pcoui
Moodle version detected: 401
Top Moodle dir: /var/www/moodle/https/moodle-dev-05
Current working dir: /var/www/moodle/https/moodle-dev-05
Relative Moodle dir:
Processing command option 'help''
Command: delete (user)
Options:
help (): ''
Arguments:
pcoui
++ Class 'format_base' has been renamed for the autoloader and is now deprecated. Please use 'core_courseformat\base' instead. ++
* line 143 of /lib/classes/component.php: call to debugging()
* line 37 of /course/format/collapsibletopics/lib.php: call to core_component::classloader()
* line 877 of /lib/classes/component.php: call to include_once()
* line 7908 of /lib/moodlelib.php: call to core_component::get_plugin_list_with_file()
* line 2452 of /lib/blocklib.php: call to get_plugins_with_function()
* line 2516 of /lib/blocklib.php: call to blocks_delete_instance()
* line 5542 of /lib/accesslib.php: call to blocks_delete_all_for_context()
* line 4247 of /lib/moodlelib.php: call to context->delete_content()
* line 229 of /user/lib.php: call to delete_user()
* line 38 of /var/www/moodle/moosh/Moosh/Command/Moodle39/User/UserDelete.php: call to user_delete_user()
* line 365 of /var/www/moodle/moosh/moosh.php: call to Moosh\Command\Moodle39\User\UserDelete->execute()
Expected behaviour
The same but using the corresponding Moodle API.
Steps to reproduce
Deploy moosh with the git clone method
System-wide link for $PATH
use a git cloned moodle 4.1.5+ using the official moodle repository and MOODLE_401_STABLE branch
run the command from above (moosh --verbose user-delete pcoui)
Thanks for all the fish,
Ludovic Pouzenc
The text was updated successfully, but these errors were encountered:
Additional information : other command like this one seems broken for me :
www-data@mdl-appr-dev02:~/moodle/https/moodle-dev$ moosh --verbose top
Moodle version detected: 401
$CFG - stdClass Object
(
[dbtype] => mariadb
[dblibrary] => native
[dbhost] => localhost
<snip>
)
PHP Fatal error: Method lang_string::__set_state() must take exactly 1 argument in /var/www/moodle/moosh/includes/moodle/lib/moodlelib.php on line 10282
www-data@mdl-appr-dev02:~/moodle/https/moodle-dev$
lposmb
changed the title
moosh user-delete users Moodle59 command for a moodle 4.1 version
moosh user-delete uses Moodle39 command for a moodle 4.1 version
Sep 20, 2023
Actual behaviour
The following command works but throw deprecated message and show a Command/Moodle39 instead of Moodle41 folder in the trace despite the verbose log line saying "Moodle version detected: 401".
Expected behaviour
The same but using the corresponding Moodle API.
Steps to reproduce
Thanks for all the fish,
Ludovic Pouzenc
The text was updated successfully, but these errors were encountered: