New Install - 500 Error on 3rd step - mailer_sparkpost_region

Your software Mautic 4.4.latest
My PHP version is : 7.4
My MySQL/MariaDB version is : MySQL/MariaDB version 10.3.34

Updating/Installing Errors
I am : Installing
Installing via : Command Line

These errors are showing in the installer :

These errors are showing in the Mautic log :
[2022-08-21 00:56:01] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:34372}
[2022-08-21 00:56:24] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:34366}
[2022-08-21 02:04:08] mautic.NOTICE: LogicException: DoctrineMetadataCacheWarmer must load metadata first, check priority of your warmers. (uncaught exception) at /var/www/html/lemming/vendor/doctrine/doctrine-bundle/CacheWarmer/DoctrineMetadataCacheWarmer.php line 47 while running console command cache:warmup {“hostname”:“DATACENTER-02”,“pid”:3516}
[2022-08-21 02:04:08] mautic.WARNING: Command cache:warmup exited with status code 1 {“hostname”:“DATACENTER-02”,“pid”:3516}
[2022-08-21 02:07:56] mautic.WARNING: PHP Warning - require(/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php): failed to open stream: No such file or directory - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“className”:“Mautic\UserBundle\Entity\Role”,“classMetadata”:“[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@1654)”,“proxyClassName”:“Proxies\CG\Mautic\UserBundle\Entity\Role”,“fileName”:“/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php”} {“hostname”:“DATACENTER-02”,“pid”:3510}
[2022-08-21 02:07:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php’ (include_path=‘.:/usr/share/php’) - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“hostname”:“DATACENTER-02”,“pid”:3510}
[2022-08-21 02:07:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php’ (include_path=‘.:/usr/share/php’) - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“hostname”:“DATACENTER-02”,“pid”:3510}
[2022-08-21 02:08:05] mautic.WARNING: PHP Warning - require(/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php): failed to open stream: No such file or directory - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“className”:“Mautic\UserBundle\Entity\Role”,“classMetadata”:“[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@1653)”,“proxyClassName”:“Proxies\CG\Mautic\UserBundle\Entity\Role”,“fileName”:“/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php”} {“hostname”:“DATACENTER-02”,“pid”:34703}
[2022-08-21 02:08:05] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php’ (include_path=‘.:/usr/share/php’) - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“hostname”:“DATACENTER-02”,“pid”:34703}
[2022-08-21 02:08:05] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/html/lemming/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php’ (include_path=‘.:/usr/share/php’) - in file /var/www/html/lemming/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 197 {“hostname”:“DATACENTER-02”,“pid”:34703}
[2022-08-21 02:15:55] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:34703}
[2022-08-21 02:34:03] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:34704}
[2022-08-21 02:39:28] mautic.ERROR: SCHEMA ERROR: An index with name ‘fax_search’ was already defined on table ‘leads’. {“hostname”:“DATACENTER-02”,“pid”:3710}
[2022-08-21 02:39:31] mautic.ERROR: SCHEMA ERROR: An exception occurred while executing ‘SELECT f.alias, f.is_unique_identifer as is_unique, f.type, f.object FROM lead_fields f WHERE f.object = ‘lead’ ORDER BY f.field_order ASC’: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘lemming_db.lead_fields’ doesn’t exist {“hostname”:“DATACENTER-02”,“pid”:3710}
[2022-08-21 02:40:47] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:34702}
[2022-08-21 02:46:19] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:3510}
[2022-08-21 02:47:01] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: “Neither the property “mailer_sparkpost_region” nor one of the methods “getMailerSparkpostRegion()”, “mailerSparkpostRegion()”, “isMailerSparkpostRegion()”, “hasMailerSparkpostRegion()”, “__get()” exist and have public access in class “Mautic\InstallBundle\Configurator\Step\EmailStep”.” at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php line 446 {“exception”:“[object] (Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException(code: 0): Neither the property "mailer_sparkpost_region" nor one of the methods "getMailerSparkpostRegion()", "mailerSparkpostRegion()", "isMailerSparkpostRegion()", "hasMailerSparkpostRegion()", "__get()" exist and have public access in class "Mautic\InstallBundle\Configurator\Step\EmailStep". at /var/www/html/lemming/vendor/symfony/property-access/PropertyAccessor.php:446)”} {“hostname”:“DATACENTER-02”,“pid”:3594}

Your problem
My problem is :
I can not get passed the 2nd step due to this mailer_sparkpost_region error

Steps I have tried to fix the problem :
clear cache
reset permissions for www-data
php bin/console cache:warmup comes up clear
php bin/console mautic:assets:generate is ok
php bin/console mautic.install:data is ok but did generate some other errors
I set the version of db n local.php
restart mysql, apache2

I don’t use mailer sparkpost and google turns up nothing on the subject…this is a fresh install

Look like permission error to me.

I would suggest check your folders’ permission.

I have same issue and solve this problem by adding a missing property

Mautic\InstallBundle\Configurator\Step\EmailStep:
class EmailStep implements StepInterface
{
...
public $mailer_sparkpost_region;
...
1 Like

Where exactly was this change made?
@mhd.jalilvand

I am currently having this issue and would appreciate a fix.

did not check it myself, but try:

mautic/app/bundles/InstallBundle/Configurator/Step/EmailStep.php

Ah excellent. This fixed it for me.
:heart:

Thanks