I am getting the following error when upgrading EasyAdmin:
Warning: require_once(/var/www/omekas/modules/EasyAdmin/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/omekas/modules/EasyAdmin/Module.php on line 66
Fatal error: Uncaught Error: Failed opening required '/var/www/omekas/modules/EasyAdmin/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/omekas/modules/EasyAdmin/Module.php:66 Stack trace: #0 /var/www/omekas/vendor/laminas/laminas-modulemanager/src/Listener/InitTrigger.php(25): EasyAdmin\Module->init(Object(Laminas\ModuleManager\ModuleManager)) #1 /var/www/omekas/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\ModuleManager\Listener\InitTrigger->__invoke(Object(Laminas\ModuleManager\ModuleEvent)) #2 /var/www/omekas/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\ModuleManager\ModuleEvent)) #3 /var/www/omekas/vendor/laminas/laminas-modulemanager/src/ModuleManager.php(161): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\ModuleManager\ModuleEvent)) #4 /var/www/omekas/vendor/laminas/laminas-modulemanager/src/ModuleManager.php(77): Laminas\ModuleManager\ModuleManager->loadModule(Object(EasyAdmin\Module)) #5 /var/www/omekas/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\ModuleManager\ModuleManager->onLoadModules(Object(Laminas\ModuleManager\ModuleEvent)) #6 /var/www/omekas/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\ModuleManager\ModuleEvent)) #7 /var/www/omekas/vendor/laminas/laminas-modulemanager/src/ModuleManager.php(100): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\ModuleManager\ModuleEvent)) #8 /var/www/omekas/application/src/Mvc/Application.php(34): Laminas\ModuleManager\ModuleManager->loadModules() #9 /var/www/omekas/index.php(19): Omeka\Mvc\Application::init(Array) #10 {main} thrown in /var/www/omekas/modules/EasyAdmin/Module.php on line 66
In looking at the Module.php file, it seems that this is incorrect:
class Module extends AbstractModule
{
use TraitModule;
const NAMESPACE = __NAMESPACE__;
protected $dependencies = [
'Common',
];
public function init(ModuleManager $moduleManager): void
{
require_once __DIR__ . '/vendor/autoload.php';
}
I believe it’s looking for the vendor/autoload.php in the EasyADmin directory- is that right? My system has it under the root of the application.
If that is not the issue, anyone know otherwise?