Dspace Connector errors

Hi y’all. I am currently working with Omeka S and the DSpace Connector module. However, every time I try to do anything at all, it throws errors and nothing populates. I included the errors below.

We are currently trying to pull using this information: https://ir.ua.edu and then /rest (endpoint). Any advice would be super helpful! Thanks in advance.

Notice: Undefined variable: communities in /srv/www/adhc/fork/modules/DspaceConnector/src/Controller/IndexController.php on line 69
 
 
Warning: Invalid argument supplied for foreach() in /srv/www/adhc/fork/modules/DspaceConnector/view/dspace-connector/index/import.phtml on line 25
 
Warning: Invalid argument supplied for foreach() in /srv/www/adhc/fork/modules/DspaceConnector/view/dspace-connector/index/import.phtml on line 47

Hi! I’m not able to recreate this error with the repository and endpoint given–may I ask what respective versions of Omeka S and the DSpace Connector you are using?

Sure!

Omeka S version 3.0.1
DSpace Connector version 1.2.0

Hmmm that matches what I have. Perhaps it’s a server issue… are you able to run curl https://ir.ua.edu/rest/communities from the command line on the server hosting your Omeka S, and if so, does it output the expected JSON result listing communities?

The full error message might also help, if you could post the application.log output and/or a screenshot of the page where the error is happening. Omeka-S Error logging: https://omeka.org/s/docs/user-manual/errorLogging/

Quick question on this–do the DSpace and Omeka instances need to be on the same server?

Here is the full error:

2021-01-19T18:14:26+00:00 ERR (3): Error importing data
2021-01-19T18:14:26+00:00 ERR (3): ErrorException: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php:320
Stack trace:
#0 [internal function]: Laminas\Stdlib\ErrorHandler::addError(2, ‘stream_socket_e…’, ‘/srv/www/adhc/f…’, 320, Array)
#1 /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php(320): stream_socket_enable_crypto(Resource id #708, true, 57)
#2 /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client.php(1445): Laminas\Http\Client\Adapter\Socket->connect(‘ir.ua.edu’, 443, true)
#3 /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client.php(945): Laminas\Http\Client->doRequest(Object(Laminas\Uri\Http), ‘GET’, true, Array, ‘’)
#4 /srv/www/adhc/fork/modules/DspaceConnector/src/Controller/IndexController.php(97): Laminas\Http\Client->send()
#5 /srv/www/adhc/fork/modules/DspaceConnector/src/Controller/IndexController.php(62): DspaceConnector\Controller\IndexController->fetchData(‘https://ir.ua.e…’, ‘collections’)
#6 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): DspaceConnector\Controller\IndexController->importAction()
#7 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#8 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#9 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(105): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#10 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#11 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#12 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#13 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#14 /srv/www/adhc/fork/index.php(21): Laminas\Mvc\Application->run()
#15 {main}

Next Laminas\Http\Client\Adapter\Exception\RuntimeException: Unable to enable crypto on TCP connection ir.ua.edu: make sure the “sslcafile” or “sslcapath” option are properly set for the environment. in /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php:350
Stack trace:
#0 /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client.php(1445): Laminas\Http\Client\Adapter\Socket->connect(‘ir.ua.edu’, 443, true)
#1 /srv/www/adhc/fork/vendor/laminas/laminas-http/src/Client.php(945): Laminas\Http\Client->doRequest(Object(Laminas\Uri\Http), ‘GET’, true, Array, ‘’)
#2 /srv/www/adhc/fork/modules/DspaceConnector/src/Controller/IndexController.php(97): Laminas\Http\Client->send()
#3 /srv/www/adhc/fork/modules/DspaceConnector/src/Controller/IndexController.php(62): DspaceConnector\Controller\IndexController->fetchData(‘https://ir.ua.e…’, ‘collections’)
#4 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): DspaceConnector\Controller\IndexController->importAction()
#5 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#6 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#7 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(105): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#8 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#9 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#10 /srv/www/adhc/fork/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#11 /srv/www/adhc/fork/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#12 /srv/www/adhc/fork/index.php(21): Laminas\Mvc\Application->run()
#13 {main}

Thank you for your help!

The instances do not need to be on the same server.

The error you’re getting has to do with the HTTPS support on your server that’s running Omeka. You may need to update the server’s trusted certificates.

If you can’t update the server, you can also manually specify different certificates by using the 'http_client' => 'sslcafile' option in the Omeka S config/local.config.php file. One common source for trusted certificates is hosted by the curl project.

This solved it! Thank you both so much!