# Marketplace installation of Custom Objects fails

**URL:** <https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [April 1, 2023, 1:33pm UTC](https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588 "2023-04-01T13:33:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 1, 2023, 1:33pm UTC](https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588/1 "2023-04-01T13:33:56Z")

</div>

**Your software**  
My Mautic version is: 4.4.7  
My PHP version is: 8.0

**Your problem**  
My problem is:

Tried to install “custom objects” plugin from the marketplace. Takes a while, confirms installation. Asks for activation in plugins.

However, its not in the plugins section, can’t be activated. Is also not showing up anywhere in Mautic. The plugin folder doesn’t show this plugin either.

These errors are showing in the log:

“[2023-04-01 15:17:23] mautic.ERROR: Installation of plugin through Composer has failed”

Steps I have tried to fix the problem:

Tried to install from CLI via “composer require acquia/mc-cs-plugin-custom-objects” confirms the installation. Clear cache, install plugin via command line made it finally appear in the plugins list in Mautic.

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [April 1, 2023, 9:25pm UTC](https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588/2 "2023-04-01T21:25:04Z")

</div>

I had this issue after installing Mautic with Composer and I thought I did something wrong so didn’t bother to report it.

---

<div class="post-metadata">

**Author:** ![radi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radi/32/13364_2.png) [@radi](https://forum.mautic.org/u/radi)\
**Post date:** [April 11, 2023, 7:10am UTC](https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588/3 "2023-04-11T07:10:01Z")

</div>

I think I have the same problem:

**Your software**  
My Mautic version is: 4.4.7  
My PHP version is: 7.4.33

**Your problem**  
When I try to run the installation of any addon on, the information appears:  
“Successfully installed Cronfig”

My mautic is a fresh test installation.

But in log:

````auto
[2023-04-11 07:05:06] mautic.ERROR: Installation of plugin through Composer has failed: [] {"hostname":"ubuntu-2gb-fsn1-1","pid":24208}
[2023-04-11 07:05:20] mautic.WARNING: PHP Warning - require(/home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/getSwiftmailer_EmailSender_ListenerService.php): failed to open stream: No such file or directory - in file /home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/appAppKernelProdContainer.php - at line 2338 {"file":"getSwiftmailer_EmailSender_ListenerService.php","lazyLoad":true} {"hostname":"ubuntu-2gb-fsn1-1","pid":24208}
[2023-04-11 07:05:20] mautic.ERROR: PHP Notice: require(): Failed opening required '/home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/getSwiftmailer_EmailSender_ListenerService.php' (include_path='.:/usr/share/php') - in file /home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/appAppKernelProdContainer.php - at line 2338 [] {"hostname":"ubuntu-2gb-fsn1-1","pid":24208}
[2023-04-11 07:05:20] mautic.WARNING: PHP Warning - Cannot modify header information - headers already sent by (output started at /home/perfo-ma/htdocs/test.testdomain.com/vendor/symfony/http-foundation/Response.php:384) - in file /home/perfo-ma/htdocs/test.testdomain.com/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php - at line 481 {"error":{"inline":null,"type":64,"message":"The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.","logMessage":null,"line":2338,"file":"/home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/appAppKernelProdContainer.php","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"/home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/appAppKernelProdContainer.php","line":2338,"args":[]}],"context":[],"showExceptionMessage":false,"previous":null},"inTemplate":false,"isAjax":true,"dataArray":{"errors":[{"message":"The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.","code":500,"type":null}]}} {"hostname":"ubuntu-2gb-fsn1-1","pid":24208}
[2023-04-11 07:05:20] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required '/home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/getSwiftmailer_EmailSender_ListenerService.php' (include_path='.:/usr/share/php') - in file /home/perfo-ma/htdocs/test.testdomain.com/var/cache/pro_/ContainerJh3AbeS/appAppKernelProdContainer.php - at line 2338 [] {"hostname":"ubuntu-2gb-fsn1-1","pid":24208}```
````

---

<div class="post-metadata">

**Author:** ![victor.j](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/victor.j/32/6600_2.png) [@victor.j](https://forum.mautic.org/u/victor.j)\
**Post date:** [May 22, 2023, 4:36am UTC](https://forum.mautic.org/t/marketplace-installation-of-custom-objects-fails/27588/4 "2023-05-22T04:36:43Z")

</div>

Hi guys,

Any solution for this issue?  
Fresh install through composer, I installed the plugin from Marketplace and then I’m stucking with a 500 internal error just after hitting the button to go to the plugins page (CTA after install is successful).

Mautic version: Mautic 4.4.8

Log:

`

> [2023-05-22 00:20:16] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\TableNotFoundException: “An exception occurred while executing ‘SELECT c0\_.is\_published AS is\_published\_0, c0\_.date\_added AS date\_added\_1, c0\_.created\_by AS created\_by\_2, c0\_.created\_by\_user AS created\_by\_user\_3, c0\_.date\_modified AS date\_modified\_4, c0\_.modified\_by AS modified\_by\_5, c0\_.modified\_by\_user AS modified\_by\_user\_6, c0\_.checked\_out AS checked\_out\_7, c0\_.checked\_out\_by AS checked\_out\_by\_8, c0\_.checked\_out\_by\_user AS checked\_out\_by\_user\_9, c0\_.id AS id\_10, c0\_.alias AS alias\_11, c0\_.name\_singular AS name\_singular\_12, c0\_.name\_plural AS name\_plural\_13, c0\_.description AS description\_14, c0\_.lang AS lang\_15, c0\_.type AS type\_16, c0\_.category\_id AS category\_id\_17, c0\_.relationship\_object AS relationship\_object\_18, c0\_.master\_object AS master\_object\_19 FROM cdc\_mt\_custom\_object c0\_ LEFT JOIN cdc\_mt\_categories c1\_ ON c0\_.category\_id = c1\_.id WHERE c0\_.is\_published = ?’ with params [1]: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘databasemtc.cdc\_mt\_custom\_object’ doesn’t exist” at /var/www/vhosts/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 61 {“exception”:“[object] (Doctrine\DBAL\Exception\TableNotFoundException(code: 0): An exception occurred while executing ‘SELECT c0\_.is\_published AS is\_published\_0, c0\_.date\_added AS date\_added\_1, c0\_.created\_by AS created\_by\_2, c0\_.created\_by\_user AS created\_by\_user\_3, c0\_.date\_modified AS date\_modified\_4, c0\_.modified\_by AS modified\_by\_5, c0\_.modified\_by\_user AS modified\_by\_user\_6, c0\_.checked\_out AS checked\_out\_7, c0\_.checked\_out\_by AS checked\_out\_by\_8, c0\_.checked\_out\_by\_user AS checked\_out\_by\_user\_9, c0\_.id AS id\_10, c0\_.alias AS alias\_11, c0\_.name\_singular AS name\_singular\_12, c0\_.name\_plural AS name\_plural\_13, c0\_.description AS description\_14, c0\_.lang AS lang\_15, c0\_.type AS type\_16, c0\_.category\_id AS category\_id\_17, c0\_.relationship\_object AS relationship\_object\_18, c0\_.master\_object AS master\_object\_19 FROM cdc\_mt\_custom\_object c0\_ LEFT JOIN cdc\_mt\_categories c1\_ ON c0\_.category\_id = c1\_.id WHERE c0\_.is\_published = ?’ with params [1]:\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table ‘databasemtc.cdc\_mt\_custom\_object’ doesn’t exist at /var/www/vhosts/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:61, Doctrine\DBAL\Driver\PDO\Exception(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘databasemtc.cdc\_mt\_custom\_object’ doesn’t exist at /var/www/vhosts/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘databasemtc.cdc\_mt\_custom\_object’ doesn’t exist at /var/www/vhosts/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117)”} {“hostname”:“srv”,“pid”:28429}

`  
Any help is greatly appreciated.

Thank you.
