Ok - my first check for this kind of thing is 'Is it really version 3.6.10?'. So, I looked up 3.6.10 in Github and checked some of the error messages made sense. I didn't get far...
PHP Warning: is_dir() expects parameter 1 to be a valid path, string given in /kucmwbi/www/moodle/lib/classes/component.php on line 648
https://github.com/moodle/moodle/blob/v3.6.10/lib/classes/component.php
The is_dir() call is on line 649, not 648. It's a small thing but points to some possible mix up of code.
PHP Warning: is_dir() expects parameter 1 to be a valid path, string given in /kucmwbi/www/moodle/lib/classes/component.php on line 648
https://github.com/moodle/moodle/blob/v3.6.10/lib/classes/component.php
The is_dir() call is on line 649, not 648. It's a small thing but points to some possible mix up of code.