Error when create eBook for a site

Installed eBook 3.3.0.9 on Omeka S 3.0.2.

I am able to create ebook for selected items, but when I am trying to create ebook for a site I got following notice and error:

Notice: Undefined variable: services in /omeka-s/modules/Ebook/src/Mvc/Controller/Plugin/Ebook.php
Error: Call to a member function get() on null in /omeka-s/modules/Ebook/src/Mvc/Controller/Plugin/Ebook.php:527
Stack trace:
#0 /omeka-s/modules/Ebook/src/Mvc/Controller/Plugin/Ebook.php(248): Ebook\Mvc\Controller\Plugin\Ebook->processSite()
#1 /omeka-s/modules/Ebook/src/Mvc/Controller/Plugin/Ebook.php(227): Ebook\Mvc\Controller\Plugin\Ebook->create()
#2 [internal function]: Ebook\Mvc\Controller\Plugin\Ebook->__invoke()
#3 /omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(275): call_user_func_array()
#4 /omeka-s/modules/Ebook/src/Controller/Admin/EbookController.php(58): Laminas\Mvc\Controller\AbstractController->__call()
#5 /omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Ebook\Controller\Admin\EbookController->createSiteAction()
#6 /omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#7 /omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#8 /omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil()
#9 /omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch()
#10 /omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch()
#11 /omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#12 /omeka-s/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil()
#13 /omeka-s/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

The error is from /Ebook/src/Mvc/Controller/Plugin/Ebook.php line 527:

$siteSettings = $services->get('Omeka\Settings\Site');

Has anyone seen this kind of error and know how to fix it?
Thanks in advance for your help!

Hello.
I believe you posted your request in the wrong section: this is the one for Omeka Classic, while your question is about a plugin for Omeka S.

Thanks Daniele, but I don’t think I can change the category to Omeka S. I just created a new topic in Omeka S category:

Thanks,

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.