# Clone functionality not working in Twig Templates mtcextendee

**URL:** <https://forum.mautic.org/t/clone-functionality-not-working-in-twig-templates-mtcextendee/29643>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [October 13, 2023, 10:48am UTC](https://forum.mautic.org/t/clone-functionality-not-working-in-twig-templates-mtcextendee/29643 "2023-10-13T10:48:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaydeep121](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jaydeep121](https://forum.mautic.org/u/jaydeep121)\
**Post date:** [October 13, 2023, 10:48am UTC](https://forum.mautic.org/t/clone-functionality-not-working-in-twig-templates-mtcextendee/29643/1 "2023-10-13T10:48:17Z")

</div>

**Your software**  
Mautic version: 3.2.0  
PHP version: 7.2

**Your problem**  
I am using Twig template plugin by mtcextendee.

When I try to clone the template, Nothing happens but I can see some error log in API from network section.

Error Message:  
Symfony\Component\Debug\Exception\FatalErrorException: Error: Uncaught TypeError: Argument 1 passed to MauticPlugin\MauticTwigTemplatesBundle\Service\ContactSearch::setObjectId() must be of the type int, string given, called in /var/www/html/mautic/plugins/MauticTwigTemplatesBundle/Controller/TwigTemplatesController.php on line 146 and defined in /var/www/html/mautic/plugins/MauticTwigTemplatesBundle/Service/ContactSearch.php:253\nStack trace:\n#0 /var/www/html/mautic/plugins/MauticTwigTemplatesBundle/Controller/TwigTemplatesController.php(146): MauticPlugin\MauticTwigTemplatesBundle\Service\ContactSearch-\>setObjectId()\n#1 /var/www/html/mautic/app/bundles/CoreBundle/Controller/AbstractStandardFormController.php(520): MauticPlugin\MauticTwigTemplatesBundle\Controller\TwigTemplatesController-\>getViewArguments()\n#2 /var/www/html/mautic/plugins/MauticTwigTemplatesBundle/Controller/TwigTemplatesController.php(90): Mautic\CoreBundle\Controller\AbstractStandardFormController-\>editStandard()\n#3 [internal function]: MauticPlugin\MauticTwigTemplatesBundle\Controller\TwigTemplatesCo",

File:  
“/var/www/html/mautic/plugins/MauticTwigTemplatesBundle/Service/ContactSearch.php” : line number 253

If anybody faced the same problem before and know how to fix it. Please guide me with your knowledge.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![kuzmanyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmanyy/32/390_2.png) [@kuzmanyy](https://forum.mautic.org/u/kuzmanyy)\
**Post date:** [October 21, 2023, 3:20pm UTC](https://forum.mautic.org/t/clone-functionality-not-working-in-twig-templates-mtcextendee/29643/2 "2023-10-21T15:20:52Z")

</div>

It’s fixed in the last release.  
You can download it from the download link of the received email or contact me.
