You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I migrated from redmine 3.4.13 to redmine 4.1.
I could create KB article and show the article on "overview"/"content". But I couldn't refer to tag link, and displayed "Internal error" message:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
And following message were confirmed in production.log:
KbArticle Load (1.5ms) SELECT DISTINCT kb_articles.* FROM "kb_articles" INNER JOIN taggings kb_articles_taggings ON kb_articles_taggings.taggable_id = kb_articles.id AND kb_articles_taggings.taggable_type = 'KbArticle' INNER JOIN tags kb_articles_tags ON kb_articles_tags.id = kb_articles_taggings.tag_id WHERE "kb_articles"."project_id" = $1 AND ((kb_articles_tags.name LIKE 'tagtest')) ORDER BY title asc [["project_id", 33]]
RedmineCrm::ActsAsTaggable::Tag Load (0.5ms) SELECT tags.id, tags.name, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN kb_articles ON kb_articles.id = taggings.taggable_id WHERE ("id" = 181 AND taggings.taggable_type = 'KbArticle') GROUP BY tags.id, tags.name HAVING (COUNT(*) > 0)
Completed 500 Internal Server Error in 29ms (ActiveRecord: 12.4ms)
ActiveRecord::StatementInvalid (PG::AmbiguousColumn: ERROR: column reference "id" is ambiguous
LINE 1: ...s ON kb_articles.id = taggings.taggable_id WHERE ("id" = 181...
^
: SELECT tags.id, tags.name, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN kb_articles ON kb_articles.id = taggings.taggable_id WHERE ("id" = 181 AND taggings.taggable_type = 'KbArticle') GROUP BY tags.id, tags.name HAVING (COUNT(*) > 0)):
plugins/redmine_knowledgebase/app/controllers/categories_controller.rb:133:in `sort'
plugins/redmine_knowledgebase/app/controllers/categories_controller.rb:133:in `prepare'
plugins/redmine_knowledgebase/app/controllers/categories_controller.rb:20:in `index'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
tagtest is sample tag.
Is any workaround of this issue?
Regards,
The text was updated successfully, but these errors were encountered:
iwasi-1234
changed the title
PG::AmbiguousColumn: ERROR: column reference "id" is ambiguous
Could not open tag link (PG::AmbiguousColumn: ERROR: column reference "id" is ambiguous)
Dec 31, 2020
Environment
Description
I migrated from redmine 3.4.13 to redmine 4.1.
I could create KB article and show the article on "overview"/"content". But I couldn't refer to tag link, and displayed "Internal error" message:
And following message were confirmed in production.log:
tagtest
is sample tag.Is any workaround of this issue?
Regards,
The text was updated successfully, but these errors were encountered: