Your software
My Mautic version is: 4.2.1
My PHP version is: 7.4.28
My Database type and version is:10.2.43-MariaDB
Your problem
My problem is: After upgrading to 4.2.1 I can’t view contact details
These errors are shown in the log:
prod-2022-04-06.php
`
[2022-04-06 13:30:02] console.CRITICAL: Error thrown while running command “mautic:segments:update”. Message: “An exception occurred while executing ‘SELECT m0_.is_published AS is_published_0, m0_.date_added AS date_added_1, m0_.created_by AS created_by_2, m0_.created_by_user AS created_by_user_3, m0_.date_modified AS date_modified_4, m0_.modified_by AS modified_by_5, m0_.modified_by_user AS modified_by_user_6, m0_.checked_out AS checked_out_7, m0_.checked_out_by AS checked_out_by_8, m0_.checked_out_by_user AS checked_out_by_user_9, m0_.id AS id_10, m0_.name AS name_11, m0_.description AS description_12, m0_.alias AS alias_13, m0_.public_name AS public_name_14, m0_.filters AS filters_15, m0_.is_global AS is_global_16, m0_.is_preference_center AS is_preference_center_17, m0_.last_built_date AS last_built_date_18, m0_.category_id AS category_id_19 FROM m_lead_lists m0_ LEFT JOIN m_categories m1_ ON m0_.category_id = m1_.id ORDER BY m0_.name ASC’: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m0_.last_built_date’ in ‘field list’” {“exception”:"[object] (Doctrine\DBAL\Exception\InvalidFieldNameException(code: 0): An exception occurred while executing ‘SELECT m0_.is_published AS is_published_0, m0_.date_added AS date_added_1, m0_.created_by AS created_by_2, m0_.created_by_user AS created_by_user_3, m0_.date_modified AS date_modified_4, m0_.modified_by AS modified_by_5, m0_.modified_by_user AS modified_by_user_6, m0_.checked_out AS checked_out_7, m0_.checked_out_by AS checked_out_by_8, m0_.checked_out_by_user AS checked_out_by_user_9, m0_.id AS id_10, m0_.name AS name_11, m0_.description AS description_12, m0_.alias AS alias_13, m0_.public_name AS public_name_14, m0_.filters AS filters_15, m0_.is_global AS is_global_16, m0_.is_preference_center AS is_preference_center_17, m0_.last_built_date AS last_built_date_18, m0_.category_id AS category_id_19 FROM m_lead_lists m0_ LEFT JOIN m_categories m1_ ON m0_.category_id = m1_.id ORDER BY m0_.name ASC’:\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m0_.last_built_date’ in ‘field list’ at /home/runcloud/webapps/Mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:79, Doctrine\DBAL\Driver\PDO\Exception(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m0_.last_built_date’ in ‘field list’ at /home/runcloud/webapps/Mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m0_.last_built_date’ in ‘field list’ at /home/runcloud/webapps/Mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:132)",“command”:“mautic:segments:update”,“message”:"An exception occurred while executing ‘SELECT m0_.is_published AS is_published_0, m0_.date_added AS date_added_1, m0_.created_by AS created_by_2, m0_.created_by_user AS created_by_user_3, m0_.date_modified AS date_modified_4, m0_.modified_by AS modified_by_5, m0_.modified_by_user AS modified_by_user_6, m0_.checked_out AS checked_out_7, m0_.checked_out_by AS checked_out_by_8, m0_.checked_out_by_user AS checked_out_by_user_9, m0_.id AS id_10, m0_.name AS name_11, m0_.description AS description_12, m0_.alias AS alias_13, m0_.public_name AS public_name_14, m0_.filters AS filters_15, m0_.is_global AS is_global_16, m0_.is_preference_center AS is_preference_center_17, m0_.last_built_date AS last_built_date_18, m0_.category_id AS category_id_19 FROM m_lead_lists m0_ LEFT JOIN m_categories m1_ ON m0_.category_id = m1_.id ORDER BY m0_.name ASC’:\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m0_.last_built_date’ in ‘field list’"} []
`
*Web Server Log
[Wed Apr 06 09:27:05.329207 2022] [proxy_fcgi:error] [pid 25220:tid 139852875994880] [client 76.70.83.119:0] AH01071: Got error 'PHP message: PHP Warning - file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory - in file /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php - at line 394PHP message: PHP Warning: file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory in /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php on line 394PHP message: Symfony\\Component\\Filesystem\\Exception\\IOException: Cannot rename "/home/runcloud/webapps/Mautic/var/cache/prod/appAppKernelProdContainer.php.metabkUwpE" to "/home/runcloud/webapps/Mautic/var/cache/prod/appAppKernelProdContainer.php.meta". - in file /home/runcloud/webapps/Mautic/vendor/symfony/filesystem/Filesystem.php - at line 290', referer: https://marketing.torontoheadshot.com/s/contacts/view/11556
[Wed Apr 06 09:27:00.785510 2022] [proxy_fcgi:error] [pid 25220:tid 139853010278144] [client 76.70.83.119:0] AH01071: Got error 'PHP message: PHP Warning - file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory - in file /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php - at line 394PHP message: PHP Warning: file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory in /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php on line 394PHP message: Symfony\\Component\\Filesystem\\Exception\\IOException: Cannot rename "/home/runcloud/webapps/Mautic/var/cache/prod/ContainerIxbfMcX/getFileEncodingValidatorService.phpYKLZMK" to "/home/runcloud/webapps/Mautic/var/cache/prod/ContainerIxbfMcX/getFileEncodingValidatorService.php". - in file /home/runcloud/webapps/Mautic/vendor/symfony/filesystem/Filesystem.php - at line 290', referer: https://marketing.torontoheadshot.com/s/update
[Wed Apr 06 09:26:47.986183 2022] [proxy_fcgi:error] [pid 25221:tid 139853001885440] [client 76.70.83.119:0] AH01071: Got error 'PHP message: PHP Warning - file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory - in file /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php - at line 394PHP message: PHP Warning: file_put_contents(/home/runcloud/webapps/Mautic/var/cache/prod/annotations.map): failed to open stream: No such file or directory in /home/runcloud/webapps/Mautic/vendor/symfony/http-kernel/Kernel.php on line 394PHP message: Symfony\\Component\\Filesystem\\Exception\\IOException: Cannot rename "/home/runcloud/webapps/Mautic/var/cache/prod/ContainerTLjE2dM/get_ServiceLocator_2frCdQQService.phpfrYHe7" to "/home/runcloud/webapps/Mautic/var/cache/prod/ContainerTLjE2dM/get_ServiceLocator_2frCdQQService.php". - in file /home/runcloud/webapps/Mautic/vendor/symfony/filesystem/Filesystem.php - at line 290'
[Wed Apr 06 04:19:16.342313 2022] [proxy_fcgi:error] [pid 25220:tid 139852959921920] [client 54.164.82.255:0] AH01071: Got error 'PHP message: PHP Notice: Trying to access array offset on value of type bool in /home/runcloud/webapps/Mautic/app/bundles/PageBundle/Entity/HitRepository.php on line 276', referer: https://torontoheadshot.com/contact/
[Wed Apr 06 04:04:35.646769 2022] [proxy_fcgi:error] [pid 25221:tid 139852867602176] [client 54.164.82.255:0] AH01071: Got error 'PHP message: PHP Notice: Trying to access array offset on value of type bool in /home/runcloud/webapps/Mautic/app/bundles/PageBundle/Entity/HitRepository.php on line 276', referer: https://torontoheadshot.com/corporate-headshots-gallery/
[Wed Apr 06 03:51:24.122084 2022] [proxy_fcgi:error] [pid 25222:tid 139852875994880] [client 54.164.82.255:0] AH01071: Got error 'PHP message: PHP Notice: Trying to access array offset on value of type bool in /home/runcloud/webapps/Mautic/app/bundles/PageBundle/Entity/HitRepository.php on line 276', referer: https://torontoheadshot.com/about-me/