eBook module error when create ebook for a site

I’ve installed eBook 3.3.0.9 on Omeka S 3.0.2.

I’m able to create ebook for selected items with no errors, but when I tried 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');

Does anyone have any ideas ?
Thank you in advance!

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