Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2016-12-28 20:09:39

AtomicShrimp
Membre
Inscription : 2015-01-02

XHTML Editor not working after upgrade today

This happened to me once before (link to previous thread: https://forum.dotclear.org/viewtopic.php?id=48574 ) - but the root cause is not the same this time.

After upgrading DotClear today to 2.11.1, I can't seem to edit previous entries that were composed using the XHTML editor (the Excerpt and Content boxes are just missing).

I can create new entries, but when I switch to XHTML editing, the boxes disappear again.

Any ideas what I should do?

Hors ligne

#2 2016-12-28 21:05:09

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

I tried reverting to backup, now my whole site is down.  Pages are failing with

<b>Fatal error</b>:  Uncaught Error: Call to undefined method context::global_filters() in /homepages/5/d196903873/htdocs/ATOMIC/cache/cbtpl/0e/f7/0ef79225e742a8b91f5e3cff1d8e77a8.php:2
Stack trace:
#0 /homepages/5/d196903873/htdocs/ATOMIC/inc/libs/clearbricks/template/class.template.php(268): include()
#1 /homepages/5/d196903873/htdocs/ATOMIC/inc/public/class.dc.template.php(231): template-&gt;getData('post.html')
#2 /homepages/5/d196903873/htdocs/ATOMIC/inc/public/lib.urlhandlers.php(122): dcTemplate-&gt;getData('post.html')
#3 /homepages/5/d196903873/htdocs/ATOMIC/inc/public/lib.urlhandlers.php(523): dcUrlHandlers::serveDocument('post.html')
#4 /homepages/5/d196903873/htdocs/ATOMIC/inc/libs/clearbricks/url.handler/class.url.handler.php(166): dcUrlHandlers::post('2016/12/23/Deco...')
#5 /homepages/5/d196903873/htdocs/ATOMIC/inc/public/lib.urlhandlers.php(187): urlHandler-&gt;callHandler('post', '2016/12/23/Deco...')
#6 /homepages/5/d196903873/htdocs/ATOMIC/inc/public/prepend.php(161): dcUrlHandlers-&gt;getDocument()
#7 /homepages/5/d196903 in <b>/homepages/5/d196903873/htdocs/ATOMIC/cache/cbtpl/0e/f7/0ef79225e742a8b91f5e3cff1d8e77a8.php</b> on line <b>2</b><br />

Hors ligne

#3 2016-12-28 21:26:31

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : XHTML Editor not working after upgrade today

You have to manually delete the template cache folders and files (in /cache/cbtpl/)

It should be enough to restore your blog


Dotclear addicted since 2004

Hors ligne

#4 2016-12-28 21:38:54

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

Thanks - I did that, now I'm getting a message about a missing plugin:

Class 'dcSpamFilter' not found in /homepages/5/d196903873/htdocs/ATOMIC/plugins/accessibleCaptcha/class.dc.filter.accessible.captcha.php on line 20

I had been deactivating some of my plugins to see if that was related problem.  I can't even log into the admin URL now.

Hors ligne

#5 2016-12-28 21:40:19

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : XHTML Editor not working after upgrade today

If you can, add an empty file named _disabled in the /plugins/accessibleCaptcha folder, it will disable it and try again your admin


Dotclear addicted since 2004

Hors ligne

#6 2016-12-28 21:49:00

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

Phew! thanks - that worked - so I can get back into the admin folder and the site is working again now.

I'm back at the previous version now though (2.10 I think) - and not sure how to proceed from here...

Hors ligne

#7 2016-12-28 22:06:47

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : XHTML Editor not working after upgrade today

Actually it is recommended to clear the browser cache and the template cache folder after having upgrading Dotclear.

It may help, before reverting to the previous version, to try with another browser.


Dotclear addicted since 2004

Hors ligne

#8 2016-12-28 22:15:05

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

Thanks - I should have tried that before panicking and reverting back to backup.

Now if I try the 2.11.1 upgrade, it says I need to do a manual update:

The following files of your Dotclear installation have been modified so we won't try to update your installation. Please try to update manually .
admin/js/ie7/IE7.js
admin/js/ie7/IE8.js
admin/js/ie7/IE9.js
admin/js/ie7/blank.gif
admin/js/ie7/ie7-hashchange.js
admin/js/ie7/ie7-recalc.js
admin/js/ie7/ie7-squish.js
admin/js/dragsort-tablerows.js
admin/js/jquery/jquery.modal.js
admin/js/tool-man/dragsort.js
admin/js/tool-man/core.js
admin/js/tool-man/drag.js
admin/js/tool-man/coordinates.js
admin/js/tool-man/events.js
admin/js/tool-man/css.js
admin/js/tool-man/cookies.js
admin/style/modal/modal.css
admin/style/modal/loader.gif
admin/style/modal/close.png
admin/style/iesucks.css
plugins/tags/js/jquery.autocomplete.js

Hors ligne

#9 2016-12-28 22:20:49

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : XHTML Editor not working after upgrade today

You may bypass this message by installing the Fake Me Up plugin (http://plugins.dotaddict.org/dc2/details/fakemeup) and doing again the update.


Dotclear addicted since 2004

Hors ligne

#10 2016-12-28 22:38:12

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

Thanks so much for your help.  I'm back at 2.11.1 now, but also, I'm back with no functioning XHTML editor.  I tried clearing the browser cache (and a different browser that has never visited the admin pages before) and I cleared the template cache, but the content and excerpt boxes are missing

Hors ligne

#11 2016-12-28 22:45:58

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

I just tried switching editors - if I change the preferred editor for XHTML to dcLegacyEditor or dcACEditor, I can edit XHTML, but if I set it to dcCKEditor, the edit boxes are missing.

Hors ligne

#12 2016-12-28 23:15:34

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

OK... I might be getting somewhere now.  When I inspect the source for the editor page where the XHTML text boxes are missing, I see the following markup:


<textarea cols="50" rows="5" name="post_excerpt" id="post_excerpt" style="visibility: hidden;" class="hide">…</textarea>

If I understand this correctly, the CSS is hiding the text area, but I don't know why, or how to change this.

Hors ligne

#13 2016-12-29 04:47:09

ben_griffith
Membre
Lieu : Wiltshire
Inscription : 2009-09-28

Re : XHTML Editor not working after upgrade today

Just let me add this important setting as your original request started with " XHTML Editor not working after upgrade ... when I switch to XHTML editing, the boxes disappear again".

Before you upgrade, you need to make sure that

1. in config.php. line 38, have set the correct directory otherwise XHTML editor will be empty

// Admin URL. You need to set it for some features.
define('DC_ADMIN_URL','http://www.your domain.fr/your_blog/admin/');

or alternatively depends on in what order your blog is
// Admin URL. You need to set it for some features.
define('DC_ADMIN_URL','/../admin/');

2. Once in the upgraded dashboard, go to "Users" (left menu), click on your user name, and in "Preferred format": choose your editor.

3. And/or in  "My preferences", go to "Edition" and choose your editor.

Dernière modification par ben_griffith (2017-01-05 03:50:22)


I Dotclear.

Hors ligne

#14 2016-12-29 12:37:17

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

I feel very stupid right now.  I just tried accessing the admin interface from a different computer here at work and everything is fine.

Whatever was wrong at the end of last night must be an artifact of my browser cache (I did clear it down in the middle of the mess, but maybe should have done it again at the end), my browser version, or some other local or transient factor.

I am hugely grateful to Franck and Ben for the excellent assistance and support.

Hors ligne

#15 2016-12-29 13:04:14

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : XHTML Editor not working after upgrade today

You're welcome :-)


Dotclear addicted since 2004

Hors ligne

#16 2016-12-29 20:24:47

AtomicShrimp
Membre
Inscription : 2015-01-02

Re : XHTML Editor not working after upgrade today

It was something in my browser cache - even though I had cleared it and tried <Ctrl>refresh - the only thing that worked was to clear the cache back to 'the beginning of time' - now I have my text area back on this computer at home.

Hors ligne

#17 2016-12-30 04:15:38

ben_griffith
Membre
Lieu : Wiltshire
Inscription : 2009-09-28

Re : XHTML Editor not working after upgrade today

Glad to hear that everything works now.

The browser cache is also important. Browsers like Firefox from Mozilla look only for changes in the style.css and don't compare other files of a webpage. Deleting the History (or deleting cache files physically) is the only chance to get content reloaded properly.


I Dotclear.

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map