# Chanel -\> email returns Error 500

**URL:** <https://forum.mautic.org/t/chanel-email-returns-error-500/22513>\
**Category:** Product Support\
**Created:** [January 27, 2022, 3:03pm UTC](https://forum.mautic.org/t/chanel-email-returns-error-500/22513 "2022-01-27T15:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio-lazzari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antonio-lazzari/32/737_2.png) [@antonio-lazzari](https://forum.mautic.org/u/antonio-lazzari)\
**Post date:** [January 27, 2022, 3:03pm UTC](https://forum.mautic.org/t/chanel-email-returns-error-500/22513/1 "2022-01-27T15:03:12Z")

</div>

**Your software**  
My Mautic version is: 4.1.1

**Your problem**  
Hi everyone,  
I am on Mautic 4.1.1  
I have this problem:  
When I go to the menu Channels → Email the link doesn’t work.  
If instead of clicking with the left button I do it with the:  
right click → open in a new tab  
it opens the link but I get error 500  
Any ideas?

---

<div class="post-metadata">

**Author:** ![fscla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fscla/32/2156_2.png) [@fscla](https://forum.mautic.org/u/fscla)\
**Post date:** [March 15, 2022, 10:30am UTC](https://forum.mautic.org/t/chanel-email-returns-error-500/22513/2 "2022-03-15T10:30:02Z")

</div>

I’m also having this problem, but I also can’t access Config and Themes.

```auto
mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Type error: Argument 1 passed to Mautic\CoreBundle\Helper\ThemeHelper::shouldLoadTheme() must be of the type array, null given, called in /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php on line 622" at /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php line 642 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Argument 1 passed to Mautic\\CoreBundle\\Helper\\ThemeHelper::shouldLoadTheme() must be of the type array, null given, called in /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php on line 622 at /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php:642)"} []

```

---

<div class="post-metadata">

**Author:** ![rogeriofox](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rogeriofox/32/10364_2.png) [@rogeriofox](https://forum.mautic.org/u/rogeriofox)\
**Post date:** [October 6, 2023, 5:48pm UTC](https://forum.mautic.org/t/chanel-email-returns-error-500/22513/4 "2023-10-06T17:48:53Z")

</div>

I found a solution here:  
[Argument 1 passed to Mautic\CoreBundle\Helper\ThemeHelper::shouldLoadTheme() must be of the type array, null given · Issue #12230 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/12230)

This worked for me!

" Solution worked:  
Update this line :  
private function shouldLoadTheme(array $config, string $featureRequested): bool  
to  
private function shouldLoadTheme(array $config = NULL, string $featureRequested): bool  
in the file: mautic/app/bundles/CoreBundle/Helper/ThemeHelper.php

Reference to similar bug: [#11094](https://github.com/mautic/mautic/issues/11094)"
