We had problems with our server and we reinstall the os en put everything back and now after the login we get a error on bookstack
Exact BookStack Version
latest
Log Content
Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'activities.loggable_id' in 'where clause' (Connection: mysql, SQL: select * from activities where (exists (select entity_id, entity_type, max(owner_id) as owner_id, max(status) as status from joint_permissions where activities.loggable_id = joint_permissions.entity_id and role_id in (1, 3, 4) and activities.loggable_type = joint_permissions.entity_type group by entity_type, entity_id having (status IN (1, 3) or (owner_id = 3 and status != 2)))) and (loggable_type != page or exists (select id from pages where pages.id = activities.loggable_id and activities.loggable_type = page and pages.draft = 0)) order by created_at desc limit 10 offset 0)
Hi @ryanvoorspoels,
When you say "put everything back" what exactly do you mean? Did you restore an old content? Please detail the steps followed there if possible.
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
We had problems with our server and we reinstall the os en put everything back and now after the login we get a error on bookstack
Exact BookStack Version
latest
Log Content
Illuminate\Database\QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'activities.loggable_id' in 'where clause' (Connection: mysql, SQL: select * from
activities
where (exists (selectentity_id
,entity_type
, max(owner_id) as owner_id, max(status) as status fromjoint_permissions
whereactivities
.loggable_id
=joint_permissions
.entity_id
androle_id
in (1, 3, 4) andactivities
.loggable_type
=joint_permissions
.entity_type
group byentity_type
,entity_id
having (status IN (1, 3) or (owner_id = 3 and status != 2)))) and (loggable_type
!= page or exists (selectid
frompages
wherepages
.id
=activities
.loggable_id
andactivities
.loggable_type
= page andpages
.draft
= 0)) order bycreated_at
desc limit 10 offset 0)Hosting Environment
php8.3 ubuntu server 24.04 apache