haru / redmine_wiki_extensions

59 stars 30 forks source link

Emoticons and table sort not working, tags OK (v 0.7.0 on Redmine 3.3.1) #5

Open MagicFab opened 6 years ago

MagicFab commented 6 years ago

We're using version 0.7 from https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads/redmine_wiki_extensions-0.7.0.zip

According to the Redmine plugins directory it should be compatible with Redmine 3.3.x:

0.7.0 (2015-03-09) Compatible with Redmine 3.3.x, 3.2.x, 3.1.x, 3.0.x.

This is our environment:

Environment:
  Redmine version                3.3.1.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
  Rails version                  4.2.7.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Filesystem                     
Redmine plugins:
  autorespond                    0.0.1
  redmine_drawio                 0.8.0
  redmine_page_break_macro       1.0.0
  redmine_pretend                0.0.2+git20130821
  redmine_send_issue_reply_email 1.0.0
  redmine_wiki_extensions        0.7.0

The plugin is enabled in the project we're testing, we tried both an existing wiki page and creating a new one with the example provided:

|_.fruits|_.color|
|Apple|Red|
|Banana|Yellow|
|Mellon|Green|

Tables sort doesn't work, there is no emoticons icon either in the Wiki page editor. Tags show up though.

The web console shows these errors:

Loading failed for the <script> with source “https://redmine/plugin_assets/redmine_wiki_extensions/javascripts/jquery.tablesorter.js”.  wiki:41
Loading failed for the <script> with source “https://redmine/plugin_assets/redmine_wiki_extensions/javascripts/wiki_extensions.js”.  wiki:44
ReferenceError: wiki_extension_create_table_header is not defined  wiki:516:1
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.
haru commented 6 years ago

Maybe plugin_assets directory is not writable.

Go to "Administration" -> "Information" and check "Plugin assets directory writable (./public/plugin_assets) "

2018-02-07 22 12 59
MagicFab commented 6 years ago

Permissions look OK, I also have all green checkmarks.

haru commented 6 years ago

Is "public/plugin_assets/redmine_wiki_extensions/javascripts/jquery.tablesorter.js" exists in your redmine directory?

MagicFab commented 6 years ago

Yes, in 2 locations:

admin@test:~$ ls -lha /usr/share/redmine/plugins/redmine_wiki_extensions/assets/javascripts/
total 60K
drwxr-xr-x 2 root root 4.0K Mar  2  2015 .
drwxr-xr-x 5 root root 4.0K Mar  2  2015 ..
-rw-r--r-- 1 root root  39K Mar  2  2015 jquery.tablesorter.js
-rw-r--r-- 1 root root 4.3K Mar  2  2015 wiki_extensions.js
-rw-r--r-- 1 root root 4.0K Mar  2  2015 wiki_smiles.js
admin@test:~$ ls -lha /var/cache/redmine/default/plugin_assets/redmine_wiki_extensions/javascripts/
total 60K
drwxr-xr-x 2 root root 4.0K Feb  6 14:24 .
drwxr-xr-x 5 root root 4.0K Feb  6 14:24 ..
-rw-r--r-- 1 root root  39K Feb  6 14:24 jquery.tablesorter.js
-rw-r--r-- 1 root root 4.3K Feb  6 14:24 wiki_extensions.js
-rw-r--r-- 1 root root 4.0K Feb  6 14:24 wiki_smiles.js
admin@test:~$