# Segment update is too slow with PHP warning

**URL:** <https://forum.mautic.org/t/segment-update-is-too-slow-with-php-warning/28532>\
**Category:** Product Support\
**Created:** [July 6, 2023, 10:17am UTC](https://forum.mautic.org/t/segment-update-is-too-slow-with-php-warning/28532 "2023-07-06T10:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![genie9](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@genie9](https://forum.mautic.org/u/genie9)\
**Post date:** [July 6, 2023, 10:17am UTC](https://forum.mautic.org/t/segment-update-is-too-slow-with-php-warning/28532/1 "2023-07-06T10:17:50Z")

</div>

**Your software**  
My Mautic version is: 4.4.7  
My PHP version is: 7.4  
My Database type and version is: 5.7.38

**Your problem**  
My problem is:

The issue shows up once i run mautic:segments:update

These errors are showing in the log:

PHP Warning: Declaration of Mautic\LeadBundle\Model\ListModel::createForm($entity, Symfony\Component\Form\FormFactoryInterface $formFactory, $action = NULL, $options = Array) should be compatible with Mautic\CoreBundle\Model\FormModel::createForm($entity, $formFactory, $action = NULL, $options = Array) in /var/www/html/mautic/app/bundles/LeadBundle/Model/ListModel.php on line 201  
PHP Warning: Declaration of Mautic\LeadBundle\Model\ListModel::dispatchEvent($action, &$entity, $isNew = false, ?Symfony\Contracts\EventDispatcher\Event $event = NULL) should be compatible with Mautic\CoreBundle\Model\FormModel::dispatchEvent($action, &$entity, $isNew = false, ?Symfony\Component\EventDispatcher\Event $event = NULL) in /var/www/html/mautic/app/bundles/LeadBundle/Model/ListModel.php on line 233

Steps I have tried to fix the problem:

---

<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:** [July 9, 2023, 12:21pm UTC](https://forum.mautic.org/t/segment-update-is-too-slow-with-php-warning/28532/2 "2023-07-09T12:21:22Z")

</div>

Hi,

1. Plz check if you don’t have empty fields in your fliter.  
Sometimes some fields disappear, and segment update fails.

2. Plz check if you are using segment membership as filter. That can slow things down.
