Omeka S & Sparql module: Failed opening required modules/Common/TraitModule.php

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 387
Joined: Tue Nov 12, 2013 2:05 am

Omeka S & Sparql module: Failed opening required modules/Common/TraitModule.php

Post by peter_b »

When trying to install Daniel-KM's "Sparql" module for Omeka S:
https://omeka.org/s/modules/Sparql/

...I get the following error:
Error
Failed opening required '/home/.sites/1/site9786333/web/pha/omeka-s/modules/Common/TraitModule.php' (include_path='.:/usr/lib/php://share/php/php:/usr/share/pear:/usr/share/php')
Followed by a usual stack trace:
Error: Failed opening required '/home/.sites/1/site9786333/web/pha/omeka-s/modules/Common/TraitModule.php' (include_path='.:/usr/lib/php://share/php/php:/usr/share/pear:/usr/share/php') in /home/.sites/1/site9786333/web/pha/omeka-s/modules/Sparql/Module.php:6
Stack trace:
#0 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-loader/src/ModuleAutoloader.php(258): require_once()
#1 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-loader/src/ModuleAutoloader.php(210): Laminas\Loader\ModuleAutoloader->loadModuleFromDir('/home/.sites/1/...', 'Sparql\\Module')
#2 /home/.sites/1/site9786333/web/pha/omeka-s/application/src/Module/Manager.php(354): Laminas\Loader\ModuleAutoloader->autoload('Sparql\\Module')
#3 /home/.sites/1/site9786333/web/pha/omeka-s/application/src/Module/Manager.php(225): Omeka\Module\Manager->getModuleObject(Object(Omeka\Module\Module))
#4 /home/.sites/1/site9786333/web/pha/omeka-s/application/src/Controller/Admin/ModuleController.php(117): Omeka\Module\Manager->install(Object(Omeka\Module\Module))
#5 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): Omeka\Controller\Admin\ModuleController->installAction()
#6 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /home/.sites/1/site9786333/web/pha/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /home/.sites/1/site9786333/web/pha/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
[SOLUTION]

The install documentation page for the Sparql module already says it clearly:
The module Common must be installed first.
So, install this one before:
https://gitlab.com/Daniel-KM/Omeka-S-module-Common
User avatar
peter_b
Chatterbox
Posts: 387
Joined: Tue Nov 12, 2013 2:05 am

Laminas\Router\Exception\RuntimeException: Route with name "sparql" not found

Post by peter_b »

Unfortunately, there's more.

I've installed "common module", and then tried to install Sparql again, but get this error:
Laminas\Router\Exception\RuntimeException
Route with name "sparql" not found
Seems I'm not the first one:
https://forum.omeka.org/t/spaqrl-module ... blem/26297
Post Reply