We have upgrade our installation to the latest version and have issues with a custom entity based on EVENT. When opening the list view, everything is fine. When opening the detail page of an entity, we see a server error 500 banner and also some sub lists do not resolve.
In the logfile we can see the following error:
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /Activities/CairfulServerAccess/5addc43331bfbb5c5/activities; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5/tasks; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5/stream; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /Activities/CairfulServerAccess/5addc43331bfbb5c5/history; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
βIt states that the date_start column is missing in the database, but in fact it exists. I have seen similar cases here in the forum, but these all had the issue after manually deleting a field, which we did not. In the opend detail page, the edit form is rendered and also, the start date is displayed properly. You can even add new entities and the value put in start date field is persisted. Nevertheless it is no longer possible to delete the entry via UI. Are tickmarks correct in the SQL? 'cairful_server_access.date_start'β -> `cairful_server_access`.`date_start`β?
We have the same issue with another entity also based on type EVENT.
I have tried rebuild, deleting cache, checked entity/client defs (seem to be ok, did not change).
I did not try rebuild --hard, but I assume this wont change much since database fields seem to be ok.
During the migration path from our former version to the latest version, I had one issue with a hangig upgrade script which I cancelled after some minutes.
After repeating the upgrade, everything seems to upgrade normal and fast. May this be related? Did something change in the event based entities' structures?
Espo Version is latest, PHP is 8.2.5
We have paid AdvancedPack + SalesPack + Outlook expansions installed in latest version.
In the logfile we can see the following error:
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /Activities/CairfulServerAccess/5addc43331bfbb5c5/activities; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5/tasks; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /CairfulServerAccess/5addc43331bfbb5c5/stream; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
[2023-04-28 12:31:15] ERROR: (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cairful_server_access.date_start' in 'field list'; GET /Activities/CairfulServerAccess/5addc43331bfbb5c5/history; line: 76, file: /var/www/html/espo/application/Espo/ORM/Executor/DefaultSqlExecutor.php
βIt states that the date_start column is missing in the database, but in fact it exists. I have seen similar cases here in the forum, but these all had the issue after manually deleting a field, which we did not. In the opend detail page, the edit form is rendered and also, the start date is displayed properly. You can even add new entities and the value put in start date field is persisted. Nevertheless it is no longer possible to delete the entry via UI. Are tickmarks correct in the SQL? 'cairful_server_access.date_start'β -> `cairful_server_access`.`date_start`β?
We have the same issue with another entity also based on type EVENT.
I have tried rebuild, deleting cache, checked entity/client defs (seem to be ok, did not change).
I did not try rebuild --hard, but I assume this wont change much since database fields seem to be ok.
During the migration path from our former version to the latest version, I had one issue with a hangig upgrade script which I cancelled after some minutes.
After repeating the upgrade, everything seems to upgrade normal and fast. May this be related? Did something change in the event based entities' structures?
Espo Version is latest, PHP is 8.2.5
We have paid AdvancedPack + SalesPack + Outlook expansions installed in latest version.
Comment