Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
CkgEdit Icon disappears after Bootstrap3 Template update
Avatar
rgleason #1
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Subject: CkgEdit Icon disappears after Bootstrap3 Template update
Dear Myron,

Opencpn Website page for reminder:
https://opencpn.org/wiki/dokuwiki/doku.…?id=opencpn:open…

Companion Post about Bootstrap3:  https://forum.dokuwiki.org/post/68037

We have been having troubles with the Bootstrap3 Template.
It started making the dokuwiki pages disappear, and the fix took away the essential CkgEdit Icon.
Therefore I reverted back to the bootstrap3 version that worked.
Days later while editing a page and then saving, the page went invisible again.
I checked the bootstrap3 template again and found there were some updates, but I had not installed them.
To fix the problem of visibility I used the new url provided and installed the updated bootstrap3 template.
That fixed the page visibility problem, but again ckgedit icon disappeared!

I tried to reinstall ckgedit and then logged out and back in and that did not fix it.
Should I uninstall ckgedit completely and then reinstall?
Perhaps there is something else I should do?
I may have to go back to the previous bootstrap3 template if there is no fix as ckgedit is more important.
The other alternative is just to go back to the standard dokuwiki template.

What do you suggest I try to do?
Thanks.
Rick

PS: Later I tried to uninstall bootstrap3 and set to dokuwiki template, still ckgedit icon did not show on the side.
Then I uninstalled ckgedit and reinstalled, no change.
Then I searched and found bootstrap3 template and installed that. no change in ckedit icon, still not shown.
Then I uninstalled ckgedit again and reinstalled it, still no ckgedit icon shows.
This post was edited on 2020-01-03, 19:23 by rgleason.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4755 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I tested this, and you are correct.  But the problem is not with ckgedit but, it seems, with the way in which bootstrap3 implements the new dokuwiki menu system.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
rgleason #3
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Subject: Bootstrap3 Implements the new dokuwiki menu system in a way that excludes CkgEdit!
Thank you Myron, for your test and troubleshooting!

Who should I report this to?  Bootstrap3?    Dokuwiki?
Should I  [try] go back to a previous version of Bootstrap3 that works?

Also it this seems to occur with the standard Dokuwiki template, so it may be a more generic problem than we realized.

Should I close the github Issue?

Best,
Rick
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4755 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I have not been able to reproduce this myself using the stndard dokuwiki template, and I've also tested on others.   When you change templates, clear out both the dokuwiki cache (delete all items in data/cache) and the browser cache.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
rgleason #5
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Myron, thankyou for testing.

I have used Filezilla to clean out every single data/cache file and folder.  Then I found an unused version of Google Chrome and logged into the wiki and found that chgedit icon was still missing. I then thought I would check out the ckgedit configuration file and looked through that carefully and tried checking to allow Visitors to see the toolbar, and I tried changing the Gui to Moono, but those did not help. 

Then I tried clearing the cache in Edge and logging into the wiki.  It to did not show the ckgedit icon.

I'm trying to run and complete a full index next.

Should I clear away some other folders perhaps?
Perhaps there is a way to shutdown/reboot/Dokuwiki by using FTP and filezila?

Search Index seems to stop at 659/721.  Have run it several times.
This post was edited on 2020-01-07, 03:14 by rgleason.
Avatar
rgleason #6
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Please see

https://github.com/giterlizzi/dokuwiki-template-bootstrap3…

Going back to Bootstrap3  v3016-02-29 fixed it, but the dokuwiki template also has the problem.

https://github.com/giterlizzi/dokuwiki-template-bootstrap3…

See this note and below

https://github.com/giterlizzi/dokuwiki-template-bootstrap3…

We cannot use the current version of bootstrap3 or dokuwiki templates, it appears.
Who do we report this too?
Avatar
lotar #7
Member since Apr 2015 · 12 posts · Location: Rome, Italy
Group memberships: Members
Show profile · Link to this post
I think the problem is an incompatibility with new DokuWiki menu system (added in the stable version of template and DokuWiki) and CKGEditor Plugin.

Can you open the issue to the plugin author ?

Joseph
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4755 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I am in fact using the new menu system, and I spent some time this morning testing against all of the templates which have enabled the new menu system, and the only one which shows the error reported by @rgleason  is the current bootstrap3.  I am not sure what bootstrap3 is doing but it seems to choose the dwedit plugin over ckgedit*.  If you disable the dwedit plugin, the page edit icon reverts to ckgedit. 

So, the solution for @rgleason is to disable the dwedit plugin and manually insert the dw edit button into the template in main.php. To do the latter, open main.php and add the following code:
  <?php 
  global $ID;
  $params = array('do'=>'edit','mode'=>'dwiki',
     'fck_preview_mode'=>'nil'); 
  if($REV) { $params['rev'] = $REV; }
  $name = "DW Edit";
  $button = html_btn($name , $ID, "", $params,"post",$name,$name);  
  echo $button;     
 ?>

Place this between lines 82 and 91.  That is, below this:
 
<div id="dw__msgarea" class="small">
                <?php $TEMPLATE->getMessageArea() ?>
 </div>
If you don't want the button, you can insert a link.  See https://www.dokuwiki.org/plugin:dwedit.  But I think you will find that the button fits in better with the template design.

Unfortunately this will be lost on updates.
* This should read "dokuwiki's icon", not ckgedit, since ckgedit doesn't have its own icon.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited 5 times, last on 2020-01-11, 05:45 by turnermm.
Avatar
lotar #9
Member since Apr 2015 · 12 posts · Location: Rome, Italy
Group memberships: Members
Show profile · Link to this post
I have found the problem. For increase the performance (and access) the template store all menu items in array with the "type" as the array key. The DWEdit menu have the same "type" of standard DokuWiki Edit action menu (https://github.com/turnermm/dwedit/blob/master/MenuItem.ph…) and this overwrite the previous array item.

I have renamed the type in MenuItem.php (eg. dwedit) and now work fine.

Joseph
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4755 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I've made the change to the dwedit plugin so that users of bootstrap3 will be able to use dwedit without any problems.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
rgleason #11
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Myron wrote:
..bootstrap3 is doing but it seems to choose the dwedit plugin over ckgedit*.  If you disable the dwedit plugin, the page edit icon reverts to ckgedit. 

Agreed. I logged into opencpn wiki and was going to update plugins, in particular dwedit to update Myron's current change and oddly, I don't seem to be able to get (using bootstrap3 template) to the admin dropdown (logout, login, configuration, extension, etc). I am currently logged in so I am able to edit documents, but the higher level functions to logout, login, admin config, extension etc are simply not available. There appears to be no dropdown menu.

Now I noticed this right after I updated the MS Windows 10 -Microsoft/NSA Security patch.  However I do not know if this is related.
I am going to try clearing the dokuwiki cache and clearing my browser cache, but this seems to be a new problem across several browsers. Firefox, Edge, Chrome.   Note: In chrome, there was a "Login" in lieu of the normal dropdown body icon, so I was able to open up the login page and login, once logged in, I could edit, but the wrench and body icons in the upper right do not drop down anymore.
Avatar
rgleason #12
Member since Sep 2016 · 282 posts
Group memberships: Members
Show profile · Link to this post
Using Filezilla to remove the data/cache and clearing the Edge cache does not seem to fix it. I do have a selection for "Login" and after login the half body icon that is a dropdown shows, but the dropdown menu does not appear.

Thus cannot get into Admin and Extensions and Configuration to update the plugins.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 06:49:34 (UTC +01:00)