dokufreaks / plugin-blog

Use DokuWiki as blogging tool
https://dokuwiki.org/plugin:blog
GNU General Public License v2.0
24 stars 18 forks source link

startSectionEdit errors on latest DokuWiki “Greebo” #92

Closed sylvaticus closed 6 years ago

sylvaticus commented 6 years ago

Just updated DokuWiki to the latest version (“Greebo”), but blog page now shows the following errors

startSectionEdit: $data "plugin_include_start" is NOT an array! One of your plugins needs an update.
startSectionEdit: $data "plugin_include_end" is NOT an array! One of your plugins needs an update.
startSectionEdit: $data "section" is NOT an array! One of your plugins needs an update.
startSectionEdit: $data "plugin_include_editbtn" is NOT an array! One of your plugins needs an update.

Also, entering new blog items is impossible as an error Failed to handle action: preview is issue

Thank you

EDIT: The Failed to handle action: preview error has already been fixed in master.

sylvaticus commented 6 years ago

This issue (for the Blog plugin) seems to be related to this issue (for the relevant DokuWiki documentation):

https://github.com/splitbrain/dokuwiki/issues/2290

sylvaticus commented 6 years ago

How to implement the re-factored section edit:

https://www.dokuwiki.org/devel:section_editor

Klap-in commented 6 years ago

General issue: https://github.com/splitbrain/dokuwiki/issues/2290

Please see for examples how to fix a plugin: https://github.com/dokufreaks/plugin-include/commit/de790317615bccbc2a2276b1d8c455e2ae5a9090 https://github.com/selfthinker/dokuwiki_plugin_wrap/pull/162

michitux commented 6 years ago

This should already be fixed by updating the include plugin. Note that even though no new version has been released you can just update the include plugin.

sylvaticus commented 6 years ago

I confirm that clicking "re-install" on the include plugin solves the startSectionEdit issue (even if the installed version of the include plugin remained the same, 2017-08-24).

asheenlevrai commented 6 years ago

I have only this message:

startSectionEdit: $data "section" is NOT an array! One of your plugins needs an update.

However I haven't installed the plugin "plugin-blog". I thought this message was caused by the plugin "editSection2". Am I wrong? How can I determine which plugin causes the message? Tx. -a-

lpaulsen93 commented 6 years ago

Try disabling the plugin, re-fresh the cache and page and see if you still get the message.

lpaulsen93 commented 6 years ago

There also seems to be a PR/a fix pending for editsections2 , see https://github.com/kazmiya/dokuwiki-plugin-editsections2/pull/11/files