[dokuwiki] Re: Having problems using the struct plugin

  • From: Frank Thommen <list.dokuwiki@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 26 Oct 2016 16:59:08 +0200

On 10/26/2016 04:27 PM, Myron Turner wrote:

First of all there is a php error in inline.php:

PHP Parse error:  syntax error, unexpected 'finally' (T_STRING),
expecting catch (T_CATCH) in
/var/www/html/lancelot_tt/lib/plugins/struct/action/inline.php on line 142

On my system, with php 5.4.16, this error crashes the output and I get a
blank page.

Secondly, you must have an old plugin installed, because addInitEvent is
no longer included in DW.

Maybe, but all installed plugins are up-to-date, as is DW.

When I wrote that all plugins are disabled, I referred to browser plugins, not DW plugins. Hence your comment lead me to the solution: After the "ACL Auditor Admin Plugin" was disabled, the "addInitEvent" error was gone and the struct entry form is now complete.

Thanks a lot
frank



On 2016-10-26 4:41 AM, Frank Thommen wrote:
On 10/25/2016 04:10 PM, Andreas Gohr wrote:
I'm at a complete loss on how to use the struct plugin.  I have
created a
schema (-> struct_schema_editor.png), a page with a lookup table (at
least I
think I did) with:

Your screens are missing the editing part.

I know :-)

Either you do not have the
needed permissions to edit the schema data or something went wrong
with the JavaScript initialization. Check if you have any error in the
JavaScript error console.

I have full permissions on the page (admin) and in the lookup schema the
field with list of editors is empty (see attached screenshot).

The only JavaScript error I get in the Firefox Browser Console is:
-----
ReferenceError: addInitEvent is not defined
[Learn More]js.php:23:471278
window.controllers is deprecated. Do not use it for UA
detection.struct_lookup
-----

I have no idea if that is relevant.  All plugins are disabled to avoid
collateral problems.

I tried the page with other browsers (Konqueror [Linux] and Safari [Mac
OS X]) to no avail.

Is maybe something with my lookup schema wrong (see attachment)?

frank


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: