additionals icon indicating copy to clipboard operation
additionals copied to clipboard

Recursion Crash when going to settings page, news page and documents page

Open tqing1128 opened this issue 5 years ago • 2 comments

I use docker redmine:4

when I go to administration -> settings, projects-> settings, news page and documents page. I get a recursive issue:

plugins/redmine_quick_replies/lib/redmine_quick_replies/patches/wiki_formatting_patch.rb:17:in heads_for_wiki_formatter_with_redmine_quick_replies' plugins/additionals/lib/additionals/patches/formatting_helper_patch.rb:10:in heads_for_wiki_formatter' plugins/additionals/lib/additionals/patches/formatting_helper_patch.rb:10:in heads_for_wiki_formatter' plugins/redmine_quick_replies/lib/redmine_quick_replies/patches/wiki_formatting_patch.rb:17:in heads_for_wiki_formatter_with_redmine_quick_replies' plugins/additionals/lib/additionals/patches/formatting_helper_patch.rb:10:in `heads_for_wiki_formatter' ... ... ...

I think it conflicts with redmine_quick_replies plus

tqing1128 avatar Apr 30 '20 13:04 tqing1128

Hi @TQING1990,

same as here https://github.com/AlphaNodes/additionals/issues/71#issuecomment-591290491

This cannot be fixed, because a plugin can only be use prepend or alias_method. More plugins use prepend - and is more modern - of these reasons additionals plugins use prepend (redmine_quick_replies uses alias_method).

More interesting information to this topic can be found here: https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain/

alexandermeindl avatar Apr 30 '20 15:04 alexandermeindl

thanks

tqing1128 avatar May 06 '20 01:05 tqing1128