moosh
moosh copied to clipboard
"Cannot redeclare cli_problem()" error when running course-delete command
- moosh version: 0.24
- moodle version: 3.1.7
- database: MySQL 5.5
- php version: 5.5.9
- operating system: Ubuntu 14.04
Actual behaviour
running course-delete command results in the following error:
PHP Fatal error: Cannot redeclare cli_problem() (previously declared in /home/moodle/moosh/includes/functions.php:127) in /var/www/moodle/lib/clilib.php on line 184
Expected behaviour
Steps to reproduce
I can't reproduce it and can't see how could that happen in the latest version. Can you try with the latest moosh version please?
I'm still seeing this in the latest version of Moosh. It is a real problem.
moosh version: 0.26 Moodle Version: 3.5.1 PHP version: 7.1.18 OS Ubuntu 16.04.4
PHP Fatal error: Cannot redeclare cli_problem() (previously declared in /usr/share/moosh/includes/functions.php:109) in /var/www/moodle/lib/clilib.php on line 184
The only way I've been able to get around this is to comment out the declaration of cli_problem in the Moosh source code.