Mautic Community Forums

PHP Fatal error: Allowed memory size exhausted

Your software
My Mautic version is: v2.15.1
My PHP version is: 7.2
My Database type and version is: MySQL 5.7

Your problem
My problem is:
Campaigns start, contacts added from segments, first Action in campaign: emails are not sent

These errors are showing in the log: {error_log}

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /path_to_mautic/app/bundles/LeadBundle/Entity/CustomFieldRepositoryTrait.php on line 92

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /path_to_mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 142

Steps I have tried to fix the problem:
1- Checked Cron Jobs, all in place, all perfect. Campaigns were running before with no trouble!
2- Increased Mem Size in php.ini to 512
Problem still persists

Hmm. Are you sure you have 512MB ? Did you restart apache after changing the settings? Also: are you editing the right php.ini?
Check your emails: images not too large?
Thx
Joey

Thank you for your reply. I did not restart Apache. Image sizes are fairly small.

You need to restart Apache after changing the ini file for changes to take effect.