redmine_wiki_extensions
redmine_wiki_extensions copied to clipboard
Comments sometimes not working
Dear Haru,
In some pages, the comment section didn't work correctly. When the page loaded, I only see this:
{{comment_form}} {{collapse(Korábbi megjegyzések) {{comments}} }} {{count}} Megtekintések száma: {{show_count}}
{{fnlist}}
Screenshot:
In the product.log I didn't see problem:
Started GET "/redmine-sandbox/projects/pch-oneers/wiki/Tezst" for 192.168.0.45 at 2021-09-13 10:33:11 +0200 Processing by WikiController#show as HTML Parameters: {"project_id"=>"pch-oneers", "id"=>"Tezst"} Current user: admin (id=1) Rendering wiki/show.html.erb within layouts/base Rendered wiki/_content.html.erb (100.8ms) Rendered attachments/_form.html.erb (7.7ms) Rendered wiki/_sidebar.html.erb (29.2ms) Rendered wiki/show.html.erb within layouts/base (212.3ms) Rendered plugins/redmine_jstoolbar_ext/app/views/redmine_jstoolbar_ext/_redmine_jstoolbar_ext_partial.html.erb (1.1ms) Rendered plugins/redmine_jstoolbar_ext_images/app/views/redmine_jstoolbar_ext_images/_redmine_jstoolbar_ext_images_partial.html.erb (1.3ms) Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (6.9ms) Rendered plugins/additionals/app/views/additionals/_html_head.html.slim (10.1ms) Rendered plugins/additionals/app/views/additionals/_body_top.slim (6.1ms) Rendered plugins/additionals/app/views/additionals/_content.html.slim (7.3ms) Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (3.6ms) Rendered plugins/additionals/app/views/additionals/_body_bottom.html.slim (8.3ms) Completed 200 OK in 434ms (Views: 350.9ms | ActiveRecord: 36.6ms)
Redmine informations:
Environment: Redmine version 4.1.1.stable Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu] Rails version 5.2.4.2 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Subversion 1.9.7 Cvs 1.12.13 Git 2.17.1 Filesystem
Redmine plugins: additionals 2.0.24 pch 0.0.1 redmine_agile 1.5.3 redmine_ckeditor 1.2.3 redmine_custom_workflows 1.0.4 redmine_jstoolbar_ext 0.2.1 redmine_jstoolbar_ext_images 0.3.1 redmine_lightbox2 0.5.1 redmine_per_project_formatting 0.1.0 redmine_wiki_extensions 0.9.2
I checked there were a simmilar problem (Issue - 1217), but it was fixed in commit: e7821f0aa16b.
Thanks for the help.
Walron
Is the Wiki Extensions module enabled in your project settings page?
I recheck the project settings and the answer is yes, it's enabled.
EDIT: I debugged this: User.current.allowed_to?({:controller => 'wiki_extensions', :action => 'show_comments'}, @project)
It says true.
EDIT #2: If I remove the additionals plugin then the footer were different: I only saw this:
{{fnlist}}
I think the two plugin had some conflicts, but in the log I didn't see anything.
EDIT #3: I found the problem. If the wiki pade have bad begin end tags order the footer won't work corractly. In my case the problam was this:
< pre>< code>Some code< /pre>< /code> (Without of spaces.)
Is there any suggestion for this kind problem to don't cause trouble in the footer? Thank you!