Your software
My PHP version is : 7.4
My MySQL/MariaDB version is (delete as applicable): MySQL/MariaDB version MySQL 5
Updating/Installing Errors
I am (delete as applicable): Updating
Upgrading/installing via (delete as applicable) : Web
These errors are showing in the installer :
These errors are showing in the Mautic log :
[2022-03-01 15:53:02] mautic.NOTICE: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing ‘SELECT l0_.is_published AS is_published_0, l0_.date_added AS date_added_1, l0_.created_by AS created_by_2, l0_.created_by_user AS created_by_user_3, l0_.date_modified AS date_modified_4, l0_.modified_by AS modified_by_5, l0_.modified_by_user AS modified_by_user_6, l0_.checked_out AS checked_out_7, l0_.checked_out_by AS checked_out_by_8, l0_.checked_out_by_user AS checked_out_by_user_9, l0_.id AS id_10, l0_.name AS name_11, l0_.description AS description_12, l0_.alias AS alias_13, l0_.public_name AS public_name_14, l0_.filters AS filters_15, l0_.is_global AS is_global_16, l0_.is_preference_center AS is_preference_center_17, l0_.last_built_date AS last_built_date_18, l0_.category_id AS category_id_19 FROM lead_lists l0_ LEFT JOIN categories c1_ ON l0_.category_id = c1_.id ORDER BY l0_.name ASC’: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_date’ in ‘field list’ (uncaught exception) at /home/agwmadmin/mas.agwm.org/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 while running console command mautic:segments:update
[2022-03-01 15:53:02] mautic.WARNING: Command mautic:segments:update
exited with status code 1
[2022-03-01 15:58:01] mautic.NOTICE: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing ‘SELECT l0_.is_published AS is_published_0, l0_.date_added AS date_added_1, l0_.created_by AS created_by_2, l0_.created_by_user AS created_by_user_3, l0_.date_modified AS date_modified_4, l0_.modified_by AS modified_by_5, l0_.modified_by_user AS modified_by_user_6, l0_.checked_out AS checked_out_7, l0_.checked_out_by AS checked_out_by_8, l0_.checked_out_by_user AS checked_out_by_user_9, l0_.id AS id_10, l0_.name AS name_11, l0_.description AS description_12, l0_.alias AS alias_13, l0_.public_name AS public_name_14, l0_.filters AS filters_15, l0_.is_global AS is_global_16, l0_.is_preference_center AS is_preference_center_17, l0_.last_built_date AS last_built_date_18, l0_.category_id AS category_id_19 FROM lead_lists l0_ LEFT JOIN categories c1_ ON l0_.category_id = c1_.id ORDER BY l0_.name ASC’: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_date’ in ‘field list’ (uncaught exception) at /home/agwmadmin/mas.agwm.org/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 while running console command mautic:segments:update
[2022-03-01 15:58:01] mautic.WARNING: Command mautic:segments:update
exited with status code 1
[2022-03-01 16:03:02] mautic.NOTICE: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing ‘SELECT l0_.is_published AS is_published_0, l0_.date_added AS date_added_1, l0_.created_by AS created_by_2, l0_.created_by_user AS created_by_user_3, l0_.date_modified AS date_modified_4, l0_.modified_by AS modified_by_5, l0_.modified_by_user AS modified_by_user_6, l0_.checked_out AS checked_out_7, l0_.checked_out_by AS checked_out_by_8, l0_.checked_out_by_user AS checked_out_by_user_9, l0_.id AS id_10, l0_.name AS name_11, l0_.description AS description_12, l0_.alias AS alias_13, l0_.public_name AS public_name_14, l0_.filters AS filters_15, l0_.is_global AS is_global_16, l0_.is_preference_center AS is_preference_center_17, l0_.last_built_date AS last_built_date_18, l0_.category_id AS category_id_19 FROM lead_lists l0_ LEFT JOIN categories c1_ ON l0_.category_id = c1_.id ORDER BY l0_.name ASC’: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_date’ in ‘field list’ (uncaught exception) at /home/agwmadmin/mas.agwm.org/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 while running console command mautic:segments:update
[2022-03-01 16:03:02] mautic.WARNING: Command mautic:segments:update
exited with status code 1
Your problem
My problem is :
After the update, I get this email every time the cronjob "console mautic:segments:update
" is executed
In AbstractMySQLDriver.php line 79:
An exception occurred while executing ‘SELECT l0_.is_published AS is_publis
hed_0, l0_.date_added AS date_added_1, l0_.created_by AS created_by_2, l0_.
created_by_user AS created_by_user_3, l0_.date_modified AS date_modified_4,
l0_.modified_by AS modified_by_5, l0_.modified_by_user AS modified_by_user
6, l0.checked_out AS checked_out_7, l0_.checked_out_by AS checked_out_by_
8, l0_.checked_out_by_user AS checked_out_by_user_9, l0_.id AS id_10, l0_.n
ame AS name_11, l0_.description AS description_12, l0_.alias AS alias_13, l
0_.public_name AS public_name_14, l0_.filters AS filters_15, l0_.is_global
AS is_global_16, l0_.is_preference_center AS is_preference_center_17, l0_.l
ast_built_date AS last_built_date_18, l0_.category_id AS category_id_19 FRO
M lead_lists l0_ LEFT JOIN categories c1_ ON l0_.category_id = c1_.id ORDER
BY l0_.name ASC’:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'l0_.last_built_date
’ in ‘field list’
In Exception.php line 18:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'l0_.last_built_date
’ in ‘field list’
In PDOConnection.php line 132:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'l0_.last_built_date
’ in ‘field list’
mautic:segments:update [-b|–batch-limit [BATCH-LIMIT]] [-m|–max-contacts [MAX-CONTACTS]] [-i|–list-id [LIST-ID]] [-tm|–timing [TIMING]] [–bypass-locking] [-t|–timeout TIMEOUT] [-x|–lock_mode LOCK_MODE] [-f|–force] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]
Steps I have tried to fix the problem :
Please advise how to fix it
Thank you