Non-blocking error when creating user

Hello everyone,

For information, I have an error when creating a global administrator user on Omeka S. This error does not prevent the creation of the user. It is probably linked with php 5.6.5.

There was an error.

exception 'Zend\Mail\Transport\Exception\RuntimeException' with message 'Unable to send mail: Unknown error' in /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mail/src/Transport/Sendmail.php:290
Stack trace:
#0 [internal function]: Zend\Mail\Transport\Sendmail->mailHandler('=?UTF-8?Q?Pierr...', 'User Activation...', 'Greetings!\n\nA u...', 'Date: Mon, 09 J...', ' -fuser.name...')
#1 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mail/src/Transport/Sendmail.php(138): call_user_func(Array, '=?UTF-8?Q?Pierr...', 'User Activation...', 'Greetings!\n\nA u...', 'Date: Mon, 09 J...', ' -fuser.name...')
#2 /data/www/myserver/public/omeka-s/application/src/Service/Mailer.php(86): Zend\Mail\Transport\Sendmail->send(Object(Zend\Mail\Message))
#3 /data/www/myserver/public/omeka-s/application/src/Service/Mailer.php(237): Omeka\Service\Mailer->send(Object(Zend\Mail\Message))
#4 /data/www/myserver/public/omeka-s/application/src/Controller/Admin/UserController.php(48): Omeka\Service\Mailer->sendUserActivation(Object(Omeka\Entity\User))
#5 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): Omeka\Controller\Admin\UserController->addAction()
#6 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(271): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(151): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(105): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mvc/src/DispatchListener.php(119): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(271): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(151): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /data/www/myserver/public/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /data/www/myserver/public/omeka-s/index.php(17): Zend\Mvc\Application->run()
#14 {main}

Something looks like it is going amiss when Zend tried to send the email confirming the creation of the user. Check to make sure that sendmail is installed on the server (it usually is). If this is a development installation on your laptop, chances are pretty good that sendmail will fail no matter what though, since sending emails without a domain is a no-no.

This issue was related to insufficient permissions to /tmp. It is fixed now.