Forum OpenACS Q&A: Re: extending the xowiki page class

Collapse
Posted by Matthew Smith on
Gustaf,

I am unable to get what you showed me to work. When I browse to:
https://(server)/xowiki/multiple-output-types
I get this error:
Error:

Page 'multiple-output-types' is not available.

I even tried removing the xowiki instance and reinstalling it.

Perhaps I am putting the multiple-output-types.page file in the wrong place?

I uploaded it to:
/packages/xowiki/www/prototypes/multiple-output-types.page

Collapse
Posted by Stefan Sobernig on
Matthew,

I tried to reproduce the issue with Gustaf Neumann's code sample from above. Works fine with me!

- Anything to detect in the error.log?

//stefan

Collapse
Posted by Matthew Smith on
Where is the error log located?
Collapse
Posted by Stefan Sobernig on
(path_to_your_openacs_installation)/log/error.log
Collapse
Posted by Matthew Smith on
There is a ton of stuff in the log, mostly db stuff, but I did find this:
[15/May/2008:12:39:46][7030.3069311888][-conn:dodss-cleat::4] Notice: --try en:multiple-output-types -> 0, ::1390 ::xowiki::Package->resolve_request (2902ms, 3ms)
[15/May/2008:12:39:46][7030.3069311888][-conn:dodss-cleat::4] Notice: no prototype for 'multiple-output-types' found, ::1390 ::xowiki::Package->resolve_page (2903ms, 0ms)
Collapse
Posted by Stefan Sobernig on
Matthew,


[15/May/2008:12:39:46][7030.3069311888][-conn:dodss-cleat::4] Notice: --try en:multiple-output-types -> 0, ::1390 ::xowiki::Package->resolve_request (2902ms, 3ms)
[15/May/2008:12:39:46][7030.3069311888][-conn:dodss-cleat::4] Notice: no prototype for 'multiple-output-types' found, ::1390 ::xowiki::Package->resolve_page (2903ms, 0ms)

the only way I can reproduce that behaviour (and the second log message) is by

  1. mangling file-level permissions on xowiki/www/prototypes/multiple-output-types.page so that the running user can't read the file
  2. the file is not present at that very location
  3. internally, the prototype logic uses a [file readable ...] which returns 0 in either of the above cases.

    so, i'd say: check permissions and file ownership.

    //stefan

Collapse
Posted by Matthew Smith on
It started working today for some unknown reason. The permissions are rw on the file now, I don't know if they changed somehow. Thank you for the help.