Text editors not diplayed - JSToolbar not loading?

Added by Francesco Moro 3 months ago

Hello,

I'm quiet a noob and not really experienced in ruby and rails.
This is my setup:

Environment:
  Redmine version                4.0.3.stable
  Ruby version                   2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
  Rails version                  5.2.2.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.9.3
  Git                            2.7.4
  Filesystem                     
Redmine plugins:
  redmine_ckeditor               1.2.2

After the upgrade from redmine 3.4.x to 4.0.3 all the icons of the text editors in Issues and Wikis are missing.
I've tryied installing CKEditor but it made no difference, nor it makes switching from textile to Markdown and so on.

Can you give me some hint?
Thank you!

icons_missing.png - an example of a new issue (10.3 KB)

code.png - html code of the page (75.6 KB)

Replies (6)

RE: Text editors not diplayed (JSToolbar not loading?) - Added by Marius BALTEANU 3 months ago

Do you have any JS error in the console log?

RE: Text editors not diplayed - JSToolbar not loading? - Added by Francesco Moro 3 months ago

I keep getting 500 error while tryine to comment this post....

RE: Text editors not diplayed - JSToolbar not loading? - Added by Francesco Moro 3 months ago

Marius BALTEANU wrote:

Do you have any JS error in the console log?

I'm sorry, which one is the console log?

This is redmine production log:

Started GET "/projects/ufficio-tecnico/issues/new" for 192.168.3.21 at 2019-05-22 17:16:16 +0200
Processing by IssuesController#new as HTML
  Parameters: {"project_id"=>"ufficio-tecnico"}
  Current user: user (id=3)
  Rendering issues/new.html.erb within layouts/base
  Rendered issues/_form_custom_fields.html.erb (3.0ms)
  Rendered issues/_attributes.html.erb (12.4ms)
  Rendered issues/_form.html.erb (22.9ms)
  Rendered attachments/_form.html.erb (1.3ms)
  Rendered issues/_watchers_form.html.erb (3.6ms)
  Rendered issues/new.html.erb within layouts/base (29.3ms)
Completed 200 OK in 214ms (Views: 41.7ms | ActiveRecord: 155.0ms)

If you tell me more precisely where to look at I'll post you anything it might be helpful...

thank you

RE: Text editors not diplayed - JSToolbar not loading? - Added by Francesco Moro 3 months ago

here you will find the apache log. If I try posting it I get a 500 internal server error...
I will file a bug report...

pastebin.com/zgXYNE9q

RE: Text editors not diplayed - JSToolbar not loading? - Added by Marius BALTEANU 3 months ago

I'm referring to your browser console log where you can see Javascript errors. For example: https://developers.google.com/web/tools/chrome-devtools/console/

RE: Text editors not diplayed - JSToolbar not loading? - Added by Francesco Moro 3 months ago

This is the error I get in Chrome Console respectively on ticket creation page and on wiki pages :

new:158 Uncaught TypeError: wikiToolbar.setPreviewUrl is not a function
    at new:158
(anonymous) @ new:158
wiki:150 Uncaught TypeError: wikiToolbar.setPreviewUrl is not a function
    at wiki:150
(anonymous) @ wiki:150

These are my local gems (in case you need to know them):

$ gem list --local

*** LOCAL GEMS ***

actioncable (5.2.3, 5.2.2.1)
actionmailer (5.2.3, 5.2.2.1, 4.2.8)
actionpack (5.2.3, 5.2.2.1, 4.2.8)
actionpack-xml_parser (2.0.1, 1.0.2)
actionview (5.2.3, 5.2.2.1, 4.2.8)
activejob (5.2.3, 5.2.2.1, 4.2.8)
activemodel (5.2.3, 5.2.2.1, 4.2.8)
activerecord (5.2.3, 5.2.2.1, 4.2.8)
activestorage (5.2.3, 5.2.2.1)
activesupport (5.2.3, 5.2.2.1, 4.2.8)
addressable (2.6.0, 2.4.0)
arel (9.0.0, 6.0.4)
bigdecimal (1.2.8)
builder (3.2.3)
bundle (0.0.1)
bundler (2.0.1, 1.16.1)
ckeditor (5.0.0)
climate_control (0.2.0)
coderay (1.1.1)
concurrent-ruby (1.1.5, 1.0.5)
crass (1.0.4)
css_parser (1.7.0, 1.5.0)
csv (3.0.9)
did_you_mean (1.0.0)
erubi (1.8.0)
erubis (2.7.0)
globalid (0.4.2, 0.4.0)
htmlentities (4.3.4)
i18n (1.6.0, 0.7.0)
io-console (0.4.5)
jquery-rails (4.3.3, 3.1.4)
json (1.8.3)
kaminari (1.1.1)
kaminari-actionview (1.1.1)
kaminari-activerecord (1.1.1)
kaminari-core (1.1.1)
loofah (2.2.3, 2.0.3)
mail (2.7.1, 2.6.6)
marcel (0.3.3)
method_source (0.9.2)
mime-types (3.2.2, 3.1)
mime-types-data (3.2019.0331, 3.2016.0521)
mimemagic (0.3.3, 0.3.2)
mini_mime (1.0.1)
mini_portile2 (2.4.0, 2.1.0)
minitest (5.11.3, 5.10.3, 5.8.4)
multi_json (1.13.1)
mysql2 (0.5.2, 0.4.8)
net-ldap (0.16.1, 0.12.1)
net-telnet (0.1.1)
nio4r (2.3.1)
nokogiri (1.10.3, 1.7.2)
orm_adapter (0.5.0)
pandoc-ruby (2.0.2)
paperclip (6.1.0)
power_assert (0.2.7)
protected_attributes (1.1.4)
psych (2.0.17)
public_suffix (3.0.3)
rack (2.0.7, 1.6.8, 1.6.4)
rack-openid (1.4.2)
rack-raw-upload (1.1.1)
rack-test (1.1.0, 0.6.3)
rails (5.2.3, 5.2.2.1, 4.2.8)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (2.0.3, 1.0.8)
rails-html-sanitizer (1.0.4, 1.0.3)
railties (5.2.3, 5.2.2.1, 4.2.8)
rake (12.3.2, 12.0.0, 10.5.0)
rbpdf (1.19.8, 1.19.2)
rbpdf-font (1.19.1)
rdoc (4.2.1)
redcarpet (3.4.0)
request_store (1.0.5)
rmagick (3.1.0, 2.16.0, 2.15.4)
roadie (3.5.0, 3.2.2)
roadie-rails (1.3.0, 1.1.1)
rouge (3.3.0)
ruby-openid (2.3.0)
sprockets (3.7.2, 3.7.1)
sprockets-rails (3.2.1, 3.2.0)
terrapin (0.6.0)
test-unit (3.1.7)
thor (0.20.3, 0.19.4)
thread_safe (0.3.6)
tzinfo (1.2.5, 1.2.3)
websocket-driver (0.7.0)
websocket-extensions (0.1.3)

thank you

(1-6/6)