# Adding Assets Causes Error 500

**URL:** <https://forum.mautic.org/t/adding-assets-causes-error-500/1904>\
**Category:** Product Support\
**Created:** [June 2, 2015, 6:05pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904 "2015-06-02T18:05:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [June 2, 2015, 6:05pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/1 "2015-06-02T18:05:50Z")

</div>

Hi,  
  
  
  
I believe, I somehow broke my asset view.  
  
  
  
I tried to upload a text document but there was an error message (I can’t remember the wording but it was generic). After that I navigated to another part of the application. Now that I wanted to try it again, I click _New_ in the _Manage Assets_ screen and all what happens is an application-internal error 500.  
  
  
  
I had an almost similar issue yesterday (I mistyped an _is:_ filter which caused a 500 from this time on), in this case deleting all cookies and cache files helped - unfortunately not in this case.  
  
  
  
Any Ideas?  
  
  
  
Peter

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [June 2, 2015, 6:05pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/2 "2015-06-02T18:05:50Z")

</div>

Hi,

I believe, I somehow broke my asset view.

I tried to upload a text document but there was an error message (I can’t remember the wording but it was generic). After that I navigated to another part of the application. Now that I wanted to try it again, I click New in the Manage Assets screen and all what happens is an application-internal error 500.

I had an almost similar issue yesterday (I mistyped an is: filter which caused a 500 from this time on), in this case deleting all cookies and cache files helped - unfortunately not in this case.

Any Ideas?

Peter

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [June 2, 2015, 6:44pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/3 "2015-06-02T18:44:43Z")

</div>

His is what the debug mode says:

[code] RuntimeException

/var/www/html/mautic2/app/bundles/CoreBundle/Helper/EncryptionHelper.php (line #31):  
/var/www/html/mautic2/app/cache/dev/appDevDebugProjectContainer.php (line #4717): at MauticCoreBundleHelperEncryptionHelper -\> \_\_construct ( object(MauticFactory) )  
/var/www/html/mautic2/app/bootstrap.php.cache (line #2083): at appDevDebugProjectContainer -\> getMautic\_Helper\_EncryptionService ( )  
/var/www/html/mautic2/app/bundles/CoreBundle/Factory/MauticFactory.php (line #661): at SymfonyComponentDependencyInjectionContainer -\> get ( ‘mautic.helper.encryption’ )  
/var/www/html/mautic2/app/bundles/AddonBundle/Integration/AbstractIntegration.php (line #276): at MauticCoreBundleFactoryMauticFactory -\> getHelper ( ‘encryption’ )  
/var/www/html/mautic2/app/bundles/AddonBundle/Integration/AbstractIntegration.php (line #239): at MauticAddonBundleIntegrationAbstractIntegration -\> decryptApiKeys ( array() )  
/var/www/html/mautic2/app/bundles/AddonBundle/Integration/AbstractIntegration.php (line #139): at MauticAddonBundleIntegrationAbstractIntegration -\> getDecryptedApiKeys ( )  
/var/www/html/mautic2/app/bundles/AddonBundle/Helper/IntegrationHelper.php (line #104): at MauticAddonBundleIntegrationAbstractIntegration -\> setIntegrationSettings ( object(Integration) )  
/var/www/html/mautic2/app/bundles/AssetBundle/Controller/AssetController.php (line #356): at MauticAddonBundleHelperIntegrationHelper -\> getIntegrationObjects ( null, array(‘cloud\_storage’) )  
/var/www/html/mautic2/app/bundles/CoreBundle/Controller/CommonController.php (line #303): at MauticAssetBundleControllerAssetController -\> newAction ( ‘0’, ‘’ )  
at MauticCoreBundleControllerCommonController -\> executeAction ( ‘new’, ‘0’, ‘0’, ‘’ )  
/var/www/html/mautic2/app/bootstrap.php.cache (line #3001): at call\_user\_func\_array ( array(object(AssetController), ‘executeAction’), array(‘new’, ‘0’, ‘0’, ‘’) )  
/var/www/html/mautic2/app/bootstrap.php.cache (line #2963): at SymfonyComponentHttpKernelHttpKernel -\> handleRaw ( object(Request), ‘1’ )  
/var/www/html/mautic2/app/bootstrap.php.cache (line #3112): at SymfonyComponentHttpKernelHttpKernel -\> handle ( object(Request), ‘1’, true )  
/var/www/html/mautic2/app/bootstrap.php.cache (line #2361): at SymfonyComponentHttpKernelDependencyInjectionContainerAwareHttpKernel -\> handle ( object(Request), ‘1’, true )  
/var/www/html/mautic2/app/AppKernel.php (line #115): at SymfonyComponentHttpKernelKernel -\> handle ( object(Request), ‘1’, true )  
/var/www/html/mautic2/index\_dev.php (line #38): at AppKernel -\> handle ( object(Request) )[/code]

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [June 2, 2015, 8:43pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/4 "2015-06-02T20:43:54Z")

</div>

So that exception is due to missing mcrypt:

`if (!extension_loaded('mcrypt')) {
            throw new RuntimeException($factory->getTranslator()->trans('mautic.core.error.no.mcrypt'));
}
`

Can you ask your host to enable and install Mcrypt for php?

---

<div class="post-metadata">

**Author:** ![ivo](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@ivo](https://forum.mautic.org/u/ivo)\
**Post date:** [August 6, 2015, 4:56pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/5 "2015-08-06T16:56:56Z")

</div>

Hello!

I have the same problem, I’ve already verified if Mcrypt is enabled and it’s ok!

Can you help me to solve this problem?

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [August 11, 2015, 2:30pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/6 "2015-08-11T14:30:19Z")

</div>

Hi Ivo

Could you start a new thread and post your error logs? Thanks!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/adding-assets-causes-error-500/1904/7 "2020-02-02T22:58:52Z")

</div>


