Share and send by email fails - error message

When sharing a file by creating a static link and sending via email, there is an error result. E-Mail settings should be correct as I receive testmail (button beside email-settings) and activitys as defined.

Version: 9.1.1 (release channel: stable)
Installation was clean, no update. I am using a customized theme based by example theme.

This is owcloud.log (cleaned)
{"reqId":"xxx","remoteAddr":"xxx","app":"PHP","message":"Undefined index: id at \/var\/www\/vhosts\/xxx.de\/httpdocs\/owncloud\/core\/ajax\/share.php#229","level":3,"time":"2016-11-15T16:00:47+00:00","method":"GET","url":"\/index.php\/core\/ajax\/share.php?fetch=getShareWithEmail&search=bernhard","user":"test"}
{"reqId":"xxx","remoteAddr":"xxx","app":"PHP","message":"Undefined index: id at \/var\/www\/vhosts\/xxx.de\/httpdocs\/owncloud\/core\/ajax\/share.php#229","level":3,"time":"2016-11-15T16:00:47+00:00","method":"GET","url":"\/index.php\/core\/ajax\/share.php?fetch=getShareWithEmail&search=bernhard","user":"test"}
{"reqId":"xxx","remoteAddr":"xxx","app":"PHP","message":"Undefined index: id at \/var\/www\/vhosts\/xxx.de\/httpdocs\/owncloud\/core\/ajax\/share.php#229","level":3,"time":"2016-11-15T16:00:47+00:00","method":"GET","url":"\/index.php\/core\/ajax\/share.php?fetch=getShareWithEmail&search=bernhard","user":"test"}
{"reqId":"xxx","remoteAddr":"xxx","app":"index","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined method OC_Helper::makeURLAbsolute()\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Template\\/Base.php(173): include()\n#1 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Template\\/Base.php(148): OC\\Template\\Base->load('\\/var\\/www\\/vhosts...', NULL)\n#2 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/legacy\\/template.php(226): OC\\Template\\Base->fetchPage(NULL)\n#3 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Share\\/MailNotifications.php(215): OC_Template->fetchPage()\n#4 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Share\\/MailNotifications.php(170): OC\\Share\\MailNotifications->createMailBody('Example.pdf', 'https:\\/\\/xxx...', 1479772800)\n#5 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/core\\/ajax\\/share.php(126): OC\\Share\\MailNotifications->sendLinkShareMail('bernhard@xxx....', 'Example.pdf', 'https:\\/\\/xxx...', 1479772800)\n#6 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Route\\/Route.php(154) : runtime-created function(1): require_once('\\/var\\/www\\/vhosts...')\n#7 [internal function]: _lambdafunc()\n#8 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/private\\/Route\\/Router.php(280): call_user_func('\\x00lambda_501', Array)\n#9 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/lib\\/base.php(891): OC\\Route\\Router->match('\\/core\\/ajax\\/shar...')\n#10 \\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/index.php(39): OC::handleRequest()\n#11 {main}\",\"File\":\"\\/var\\/www\\/vhosts\\/xxx.de\\/httpdocs\\/owncloud\\/themes\\/eurel\\/core\\/templates\\/mail.php\",\"Line\":7}","level":3,"time":"2016-11-15T16:01:02+00:00","method":"POST","url":"\/index.php\/core\/ajax\/share.php","user":"test"}

Hi,

closing as a duplicate of the following URL where you can see that this issue is caused by a 3rdparty app or a not updated custom template: