# Schedule campaign event - translation bug in timeline

**URL:** <https://forum.mautic.org/t/schedule-campaign-event-translation-bug-in-timeline/6263>\
**Category:** Product Support\
**Created:** [November 29, 2016, 1:42pm UTC](https://forum.mautic.org/t/schedule-campaign-event-translation-bug-in-timeline/6263 "2016-11-29T13:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igrukhe](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Igrukhe](https://forum.mautic.org/u/Igrukhe)\
**Post date:** [November 29, 2016, 1:42pm UTC](https://forum.mautic.org/t/schedule-campaign-event-translation-bug-in-timeline/6263/1 "2016-11-29T13:42:44Z")

</div>

Hello,  
  
  
  
i created a campaign and start some testing in Mautic 2.2.1 release.  
  
  
  
when an event is schedule and i try to view the contact page i got an error 500 :

Code:

/home/html/vendor/symfony/translation/Translator.php (line #209): at SymfonyComponentDebugErrorHandler -\> handleError ( '8', 'Array to string conversion', '/home/html/vendor/symfony/translation/Translator.php', '209', array('id' =\> 'mautic.core.timeline.event.scheduled.time', 'parameters' =\> array('%date%' =\> 'November 29, 2016 1:28 pm', '%event%' =\> array('label' =\> 'Adjust contact points / test', 'href' =\> '/index\_dev.php/s/campaigns/view/1')), 'domain' =\> 'messages', 'locale' =\> null) )

  
As you can see in the template "htmlappbundlesCampaignBundleViewsSubscribedEventsTimelineindex.html.php" has a translation with an %event% parameter, but this one is an array of label and link..  

Code:

\<?php if ($item['isScheduled']): ?\> 

\<?php echo $view['translator']-\>trans('mautic.core.timeline.event.scheduled.time', ['%date%' =\> $view['date']-\>toFullConcat($item['triggerDate']), '%event%' =\> $event['eventLabel']]); ?\>

\<?php endif; ?\>

  
Anyone have this issue ?

---

<div class="post-metadata">

**Author:** ![Igrukhe](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Igrukhe](https://forum.mautic.org/u/Igrukhe)\
**Post date:** [November 29, 2016, 1:42pm UTC](https://forum.mautic.org/t/schedule-campaign-event-translation-bug-in-timeline/6263/2 "2016-11-29T13:42:44Z")

</div>

Hello,

i created a campaign and start some testing in Mautic 2.2.1 release.

when an event is schedule and i try to view the contact page i got an error 500 :

`/home/html/vendor/symfony/translation/Translator.php (line #209):
at SymfonyComponentDebugErrorHandler -> handleError ( '8', 'Array to string conversion', '/home/html/vendor/symfony/translation/Translator.php', '209', array('id' => 'mautic.core.timeline.event.scheduled.time', 'parameters' => array('%date%' => 'November 29, 2016 1:28 pm', '%event%' => array('label' => 'Adjust contact points / test', 'href' => '/index_dev.php/s/campaigns/view/1')), 'domain' => 'messages', 'locale' => null) )`

As you can see in the template “htmlappbundlesCampaignBundleViewsSubscribedEventsTimelineindex.html.php” has a translation with an %event% parameter, but this one is an array of label and link…

[code]\<?php if ($item['isScheduled']): ?\>

\<?php echo $view['translator']-\>trans('mautic.core.timeline.event.scheduled.time', ['%date%' =\> $view['date']-\>toFullConcat($item['triggerDate']), '%event%' =\> $event['eventLabel']]); ?\>

\<?php endif; ?\>[/code]

Anyone have this issue ?
