# How to install Acquia's Custom Objects plugin?

**URL:** <https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204>\
**Category:** 3rd Party Addons\
**Created:** [May 24, 2022, 2:00pm UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204 "2022-05-24T14:00:10Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 5, 2024, 8:42am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/61 "2024-02-05T08:42:33Z")

</div>

The latest version of the CO plugin is broken as it needs some new code in Mautic. But that cannot get into Mautic 4 anymore as it’s security-fixes only mode.

This is related issue with the code changes needed in Mautic, but it will never get back into Mautic 4:

> <https://github.com/acquia/mc-cs-plugin-custom-objects/issues/303>
>
> \### Mautic Version
> 
> 4.2.x series
> 
> \### PHP version
> 
> 7.4
> 
> \### What browsers are yo…u seeing the problem on?
> 
> \_No response\_
> 
> \### What happened?
> 
> A bug happened during run \`mautic:custom\_items:scheduled\_export\` 
> Seems Mautic\\CoreBundle\\Helper\\ExportHelper need update - some commits not push already?
> 
> \### How can we reproduce this issue?
> 
> Step 1: Run \`mautic:custom\_items:scheduled\_export\`
> 
> \### Relevant log output
> 
> \`\`\`shell
> In CustomItemExportSchedulerModel.php line 96:
> 
> Attempted to call an undefined method named "getValidExportFileName" of class "Mautic\\CoreBundle\\Helper\\ExportHelper".
> \`\`\`
> 
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct

Another option is to use some older version of the CO plugin.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 5, 2024, 10:49am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/62 "2024-02-05T10:49:05Z")

</div>

Hey,

I also realized there must be a ‘cut’ between M4 and M5.  
I have the following branch in production for a client:  
`mc-cs-plugin-custom-objects-RELEASE_ACS-2022.09.02`  
Works for me just fine.  
Of course I suggest to use the latest version.

Joey

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [February 23, 2024, 10:08pm UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/63 "2024-02-23T22:08:38Z")

</div>

Hi,

Thanks for the replies. I haven’t had the time to really dive into it anymore. I tried this one as well, but I still couldn’t get it to work.

Do you use a composer install?

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 8:01am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/64 "2024-02-26T08:01:24Z")

</div>

Hello guys please have you finally instal the plugin?

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 8:05am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/65 "2024-02-26T08:05:09Z")

</div>

hello @joeyk i had an issue while installing mc-cs-plugin-custom-objects in mautic 4.4  
please can you help me?. i try clearing the cash but it’s still showing thesame error. thank in advance.

 ![Error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/983423f115de8577751ede5d46e0024bd4560daf.png)

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 8:05am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/66 "2024-02-26T08:05:53Z")

</div>

hello @escopecz i had an issue while installing mc-cs-plugin-custom-objects in mautic 4.4  
please can you help me?. i try clearing the cash but it’s still showing thesame error. thank in advance.

 ![Error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/983423f115de8577751ede5d46e0024bd4560daf.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 26, 2024, 8:52am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/67 "2024-02-26T08:52:20Z")

</div>

Hi, can you plz paste here:

1. what Mautic version you have
2. which branch you installed and how (composer, download etc.)

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 9:04am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/68 "2024-02-26T09:04:56Z")

</div>

Thanks for reply Sir. I have mautic 4.4 and i instal it manually

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 26, 2024, 9:06am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/69 "2024-02-26T09:06:31Z")

</div>

Ok. Which branch? See my comment above regarding the branch i tested with m4

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 9:08am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/71 "2024-02-26T09:08:47Z")

</div>

but it’s showing this error.

 ![Error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/983423f115de8577751ede5d46e0024bd4560daf.png)

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 9:15am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/72 "2024-02-26T09:15:10Z")

</div>

This the branch

> **[GitHub - acquia/mc-cs-plugin-custom-objects: Mautic plugin adding Custom...](https://github.com/acquia/mc-cs-plugin-custom-objects)**
>
> Mautic plugin adding Custom Objects feature. Contribute to acquia/mc-cs-plugin-custom-objects development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 26, 2024, 9:33am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/73 "2024-02-26T09:33:20Z")

</div>

Okay so:

That is not a branch. That is a repository, but that’s okay, you are very close.

This is where you are now:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/73ffcc2388b7c34ac33c6e26094d923a3ab61536.png)

Scroll up and read what I’m writing:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/63fc331cb8049392c04dc69c101d89872bc53bda.png)

Scroll further above to my comment:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5d201127af93266d44c80ac1d37adf23de2b1ef8.png)

This is the Branch you need.

Now how can you download that if you do manuall install?

Go to Github:

> **[GitHub - acquia/mc-cs-plugin-custom-objects: Mautic plugin adding Custom...](https://github.com/acquia/mc-cs-plugin-custom-objects)**
>
> Mautic plugin adding Custom Objects feature. Contribute to acquia/mc-cs-plugin-custom-objects development by creating an account on GitHub.

Click here

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/68dfbeb4e85cc65992bc44512a86650c744796bd.png)

Then click here:

1. RIGHT CLICK
2. LEFT CLICK

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d1f6a9e87e45390de456f7d8cb21503d2b9b9346.png)

Copy the URL with left click and use that for download.

Let me know how it went.

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 9:45am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/74 "2024-02-26T09:45:06Z")

</div>

Thank Sir. I will let you know when done.  
i’m using mautic 4.4.11

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 26, 2024, 12:06pm UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/75 "2024-02-26T12:06:16Z")

</div>

Thank Sir i successfully install the plugin but i have this error whenever a add a product in the objet created and i can’t import from other source too.

 ![ErrorCheck](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5ae44b4d7b15912890d04c2422cacff575fd9d79.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 26, 2024, 2:30pm UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/76 "2024-02-26T14:30:03Z")

</div>

Plz share relevant logs from Gear icon \> system \> logs

---

<div class="post-metadata">

**Author:** ![janoslaszlo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/janoslaszlo/32/11505_2.png) [@janoslaszlo](https://forum.mautic.org/u/janoslaszlo)\
**Post date:** [February 26, 2024, 6:34pm UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/77 "2024-02-26T18:34:01Z")

</div>

Dear @joeyk I am fighting with the same problem.

I run Mautic v5.0.3 without composer. My PHP version is 8.0.30.  
Can you confirm that the plugin is compatible with my Mautic and PHP version?

I downloaded the mentioned branch and extracted it into the plugins folder. Renamed it to CustomObjectsBundle.  
I run the php80 ./mautic/bin/console mautic:plugins:install command. The result is 0 new plugins were installed and 0 updated.  
I run php80 ./mautic/bin/console cache:clear and receiving error: Compile Error: Access level to MauticPlugin\CustomObjectsBundle\Controller\CustomObject\FormController::renderForm() must be protected (as in class Symfony\Bundle\FrameworkBundle\Controller\AbstractController) or weaker  
Do you have any idea, how to fix it?

I also tried to install the plugin using php80 ./mautic/bin/console mautic:marketplace:install acquia/mc-cs-plugin-custom-objects -vvv. This time I got this error: Error while installing this plugin. Check the logs for more details or run again with the -vvv parameter.  
The log contains this: [2024-02-26T18:20:28.411523+00:00] mautic.WARNING: Command `mautic:marketplace:install` exited with status code 2 {“hostname”:“s50”,“pid”:861212}  
Is this because of the lack of composer?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 27, 2024, 7:33am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/78 "2024-02-27T07:33:04Z")

</div>

Szia, and welcome to the community.  
I don’t have a live install on 5.0.3, we still use it in 4.4.11.  
maybe @escopecz can confirm it.

@laszlo.janos can you check if his comment above is a fix?

> [@How to install Acquia's Custom Objects plugin?](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/49):
>
> Sorry about this. The plugin is developed by Acquia that have different release cycle than the community. You have to manually insert this new class: or wait for Mautic 5 release. That PR could be also cherry-picked to a new pull request for Mautic 4 if someone would want support for Mautic 4.

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 27, 2024, 8:10am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/79 "2024-02-27T08:10:40Z")

</div>

Hello @joeyk@escopecz please i’m facing this issue after installing custom objet and when i want to add new item or import something it’s show me the screen below. please for help. i’m using mautic 4.4.11 with PHP 7.4.33.

what i have don : i have clear the cash

error in the log : [2024-02-27 08:06:21] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Attempted to call an undefined method named “loadMetadata” of class “MauticPlugin\CustomObjectsBundle\Entity\AbstractCustomFieldValue”.” at /var/www/html/mautic/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/StaticPHPDriver.php line 65 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Attempted to call an undefined method named "loadMetadata" of class "MauticPlugin\CustomObjectsBundle\Entity\AbstractCustomFieldValue". at /var/www/html/mautic/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/StaticPHPDriver.php:65)”} {“hostname”:“ip-172-31-39-150”,“pid”:467}

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4f6f6fbbb071ad73fa0a07323c3eb226bdf1beb3.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 27, 2024, 10:51am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/82 "2024-02-27T10:51:53Z")

</div>

FYI:

Plz don’t ping everyone in the community one by one. If someone has time to answer, they will.

I’m - personally not answering here, because it works for me, never encountered your issues. I have no idea how to fix it.

---

<div class="post-metadata">

**Author:** ![kafoalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kafoalex/32/12681_2.png) [@kafoalex](https://forum.mautic.org/u/kafoalex)\
**Post date:** [February 27, 2024, 11:03am UTC](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204/83 "2024-02-27T11:03:00Z")

</div>

Thanks Sir

[Previous page](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204.md?page=3)

[Next page](https://forum.mautic.org/t/how-to-install-acquias-custom-objects-plugin/24204.md?page=5)
