Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL error when flagging and unflagging Content Entities #192

Closed
left23 opened this issue May 18, 2024 · 0 comments · Fixed by #193
Closed

SQL error when flagging and unflagging Content Entities #192

left23 opened this issue May 18, 2024 · 0 comments · Fixed by #193
Assignees

Comments

@left23
Copy link
Collaborator

left23 commented May 18, 2024

When I tried to flag a mission with "Mission Complete" (as Player, not admin) Eg. /mission/210-main-mission-mine-some-crystals
I get this in the console

http://192.168.178.206/flag/flag/mission_completed/616?destination=/mission/210-main-mission-mine-some-crystals&token=rw2nWcHMr_FCRiLyaenuY_P572u1IMwh6SDdCrP9GWw&_wrapper_format=drupal_ajax
Drupal\Core\Entity\EntityStorageException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2: SELECT node__field_switches.field_switches_target_id FROM node__field_switches WHERE node__field_switches.entity_id =; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Paragraph flags work fine. I understand Player role is not supposed to flag the Mission Complete in this way (via the frontend "unflag" button), but I enabled it for ease of testing as I am trying to construct Views.

@left23 left23 converted this from a draft issue May 18, 2024
Techbot added a commit that referenced this issue May 20, 2024
@Techbot Techbot linked a pull request May 20, 2024 that will close this issue
Techbot added a commit that referenced this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants