tmuras / moosh

Moosh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoload.php file is not included in the repo

oliversl opened this issue · comments

$loader = require $moosh_dir . '/vendor/autoload.php';

  • moosh version: 1.6
  • moodle version: 3.10.11
    • database:
  • php version: 7.3
  • operating system: Centos 7

Actual behaviour

# moosh plugin-list
PHP Warning:  require(/opt/moosh/moosh-1.5/vendor/autoload.php): failed to open stream: No such file or directory in /opt/moosh/moosh-1.5/moosh.php on line 24
PHP Fatal error:  require(): Failed opening required '/opt/moosh/moosh-1.5/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /opt/moosh/moosh-1.5/moosh.php on line 24

Expected behaviour

file vendor/autoload.php should exist or should not be required

Steps to reproduce

Download latest release and unzip it

Following "Installation from Moodle package" instruction from homepage, you need to additionally do:

yum install git
yum install composer
cd mosh-1.5 # (unpacked directory)
composer install

After that you will be able to use moosh