Error when trying to add New Item


#1

Hi, my new Installation of Omeka -s is:
CentOS Linux release 7.3.1611
PHP 5.6.31
Zend Engine v2.6.0
Mysql:5.5.52-MariaDB MariaDB
Omeka-s v1.0.0-beta4
Modules - SCV Import and File Sideload
when trying to Add New Item or Edit Item get this error:
Zend\ServiceManager\Exception\ServiceNotFoundException
Unable to resolve service “Omeka\Media\Ingester\Manager” to a factory; are you certain you provided it during configuration?
(I changed env do dev in htaccess so there is more Details for the error)
Thanks,
Vlad


Mapping error message : Notice: Undefined offset: 1
#2

I have that exact same problem but with “Add Item”.

Zend\ServiceManager\Exception\ServiceNotFoundException
Unable to resolve service “Omeka\Media\Ingester\Manager” to a factory; are you certain you provided it during configuration?

Details:

Zend\ServiceManager\Exception\ServiceNotFoundException: Unable to resolve service “Omeka\Media\Ingester\Manager” to a factory; are you certain you provided it during configuration? in /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:681
Stack trace:
#0 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(757): Zend\ServiceManager\ServiceManager->getFactory(‘Omeka\Media\Ing…’)
#1 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate(‘Omeka\Media\Ing…’)
#2 /Applications/MAMP/htdocs/omeka-s/modules/FileSideload/Module.php(35): Zend\ServiceManager\ServiceManager->get(‘Omeka\Media\Ing…’)
#3 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): FileSideload\Module->FileSideload{closure}(Object(Zend\EventManager\Event))
#4 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(144): Zend\EventManager\EventManager->triggerListeners(Object(Zend\EventManager\Event))
#5 /Applications/MAMP/htdocs/omeka-s/application/src/ServiceManager/AbstractPluginManager.php(52): Zend\EventManager\EventManager->trigger(‘service.registe…’, Object(Omeka\Media\Ingester\Manager), Object(ArrayObject))
#6 /Applications/MAMP/htdocs/omeka-s/application/src/Controller/Admin/ItemController.php(432): Omeka\ServiceManager\AbstractPluginManager->getRegisteredNames()
#7 /Applications/MAMP/htdocs/omeka-s/application/src/Controller/Admin/ItemController.php(231): Omeka\Controller\Admin\ItemController->getMediaForms()
#8 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\ItemController->addAction()
#9 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#12 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#13 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#14 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /Applications/MAMP/htdocs/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#16 /Applications/MAMP/htdocs/omeka-s/index.php(21): Zend\Mvc\Application->run()
#17 {main}


#3

That stack trace indicates a problem coming from the FileSideload module. If you deactivate that, can you add Items with media by uploading the media directly?


#4

It stopped throwing the error when I disabled FileSideload module. Then we added ImageMagick that was not installed on the server initially. After that I tried to enable FileSideload module again still get the same error. But I do need batch uploading capabilities. Is there some other module that will do the same thing?


#5

I haven’t been able to reproduce this, so I’m also still at a bit of a loss about the root cause.

There are new versions of both Omeka S and FileSideload out, though, so it’s probably worth hoping that those might give a resolution to the issue.


#6

Ugraded to the latest version of Omeka S and FileSideload no errors. Thanks Patrick.


#7

Hi, I have the same problem; though not with adding the Item but with
Adding the Media (jpg, pdf)
to the existing Item, for which I have created metadata first.

I get a message- Omeka S encountered an error.
In logs I don’t see any error, though.
Version is 1.2.0.

I have tried with deactivating the File Sideload, Mapping modules, but that doesn’t help.

The funny thing is that once I make a new item, and add the Media first, and save it that way, it would accept it; but not the other way around.

Any advice would be much appreciated.
Stasha


#8

Did you enable logging? With logging turned on you should get a log entry every time you see that “encountered an error” page. Make sure also that the log file is writable by the server (the same kind of permissions needed for the files folder).