Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category-import not working with Moodle 3.11 #388

Closed
dseral opened this issue Sep 4, 2021 · 1 comment
Closed

category-import not working with Moodle 3.11 #388

dseral opened this issue Sep 4, 2021 · 1 comment

Comments

@dseral
Copy link

dseral commented Sep 4, 2021

  • moosh version: v1.1
  • moodle version: 3.11
    • database: MySQL 8.x
  • php version: 7.3.30
  • operating system: ubuntu18.04

Actual behaviour

Creating new category XXX Category under 0
PHP Warning: require_once(/home/moodle2021/lib/coursecatlib.php): failed to open stream: No such file or directory in /root/src/moosh/Moosh/Command/Moodle39/Category/CategoryImport.php on line 70

Warning: require_once(/home/moodle2021/lib/coursecatlib.php): failed to open stream: No such file or directory in /root/src/moosh/Moosh/Command/Moodle39/Category/CategoryImport.php on line 70
PHP Fatal error: require_once(): Failed opening required '/home/web/moodle2021/lib/coursecatlib.php' (include_path='/home/moodle2021/lib/pear:.:/usr/share/php') in /root/src/moosh/Moosh/Command/Moodle39/Category/CategoryImport.php on line 70

Fatal error: require_once(): Failed opening required '/home/web/moodle2021/lib/coursecatlib.php' (include_path='/home/moodle2021/lib/pear:.:/usr/share/php') in /root/src/moosh/Moosh/Command/Moodle39/Category/CategoryImport.php on line 70

Expected behaviour

Importing Categories

Steps to reproduce

moosh -n -p /home/web/moodle2021/ category-import categories.xml

@ycordelpro
Copy link
Contributor

Hello,
I have corrected the category import for Moodle 3.10.
I created a pull request. You can try by correcting the modified files.
#392

@tmuras tmuras closed this as completed Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants