# Error 500 in email links

**URL:** <https://forum.mautic.org/t/error-500-in-email-links/5884>\
**Category:** Product Support\
**Created:** [February 23, 2016, 9:52am UTC](https://forum.mautic.org/t/error-500-in-email-links/5884 "2016-02-23T09:52:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mazab](https://forum.mautic.org/u/mazab)\
**Post date:** [February 23, 2016, 9:52am UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/1 "2016-02-23T09:52:33Z")

</div>

Hi all,  
  
we are testing Mautic since a few days to support our marketing. All looks very cool and clear, great tool so far, but today when I tried to send a few testmails, I’ve run into some issues.  
  
  
  
I have sent a mail to 10 test users, the mail includes a link to an external test site. When you click on that link, mautic opens and gives a “500 Internal Server Error” on https://.com/r/d4sdhs8738…  
  
  
  
When I do the same on my logged in browser, it works and I am being redirected to the final URL.  
  
  
  
Mautic logs gives

Code:

[2016-02-23 09:48:17] mautic.CRITICAL: Uncaught PHP Exception DoctrineORMORMException: "The EntityManager is closed." at /srv/XXXXXX/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php line 129 {"exception":"[object] (Doctrine\ORM\ORMException(code: 0): The EntityManager is closed. at /srv/XXXXXXX/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:129)"} []

  
Can anyone tell me whats wrong ?  
  
regards, Mart

---

<div class="post-metadata">

**Author:** ![qvplite](https://avatars.discourse-cdn.com/v4/letter/q/35a633/32.png) [@qvplite](https://forum.mautic.org/u/qvplite)\
**Post date:** [April 9, 2016, 5:55am UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/2 "2016-04-09T05:55:00Z")

</div>

I’m also having this problem. Lots of users upset about broken links…

---

<div class="post-metadata">

**Author:** ![johannesd83](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@johannesd83](https://forum.mautic.org/u/johannesd83)\
**Post date:** [March 15, 2016, 6:27pm UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/3 "2016-03-15T18:27:05Z")

</div>

Found this thread while googling this exact same problem. @mazab Were you able to fix it?

---

<div class="post-metadata">

**Author:** ![mazab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mazab](https://forum.mautic.org/u/mazab)\
**Post date:** [February 23, 2016, 9:52am UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/4 "2016-02-23T09:52:33Z")

</div>

Hi all,  
we are testing Mautic since a few days to support our marketing. All looks very cool and clear, great tool so far, but today when I tried to send a few testmails, I’ve run into some issues.

I have sent a mail to 10 test users, the mail includes a link to an external test site. When you click on that link, mautic opens and gives a “500 Internal Server Error” on https://.com/r/d4sdhs8738…

When I do the same on my logged in browser, it works and I am being redirected to the final URL.

Mautic logs gives

```auto
[2016-02-23 09:48:17] mautic.CRITICAL: Uncaught PHP Exception DoctrineORMORMException: "The EntityManager is closed." at /srv/XXXXXX/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php line 129 {"exception":"[object] (Doctrine\ORM\ORMException(code: 0): The EntityManager is closed. at /srv/XXXXXXX/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:129)"} []
```

Can anyone tell me whats wrong ?

regards, Mart

---

<div class="post-metadata">

**Author:** ![jsumeguin](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jsumeguin](https://forum.mautic.org/u/jsumeguin)\
**Post date:** [October 6, 2016, 6:59am UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/5 "2016-10-06T06:59:50Z")

</div>

i am also experiencing this problem. have you solved this mazab?

---

<div class="post-metadata">

**Author:** ![michaelbdana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelbdana/32/422_2.png) [@michaelbdana](https://forum.mautic.org/u/michaelbdana)\
**Post date:** [November 5, 2016, 7:49pm UTC](https://forum.mautic.org/t/error-500-in-email-links/5884/6 "2016-11-05T19:49:43Z")

</div>

my problem is similar but the links in my emails all start with “[http://localhost/r/](http://localhost/r/)…” and of course that won’t do.
