Wiki forms are blank / empty if trying to edit a subpage
Wiki forms are blank / empty if trying to edit a subpage
Posted:Mon 01 of Jun, 2009 (18:56 UTC)forum,
I just upgraded from 2.0.something to 2.6.0 (also php4 to php5). Everything went smoothly enough, but I'm having a small problem now. If I go to any Wiki page (use the example "Single Sign On"), I can edit the entire page, but not sections (as designated by !'s)
An example:
The page is
ttp://wikiserver/wiki/index.php?page=Single+Sign-On
The "Edit" link at the top goes to:
ttp://wikiserver/wiki/edit.php?page_id=12
I have a subheading called !OpenDS Requirements. When I click the edit next to that section, it goes to:
ttp://wikiserver/wiki/edit.php?content_id=18&section=1
The first "Edit", for the entire page, works as expected. Any of the subheading "Edit"s open to a "Create Wiki Page" version of the page, instead of the "Edit $title" page that should be there.
Thoughts?
Thanks!
Wes
Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Wed 03 of Jun, 2009 (06:01 UTC)I've tried to check here but can't get sections edit at present, and I'm not even sure the title mode made it to R2.6 anyway ...
Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Wed 03 of Jun, 2009 (14:15 UTC)Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Mon 08 of Jun, 2009 (17:44 UTC)Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Mon 22 of Jun, 2009 (18:10 UTC)Line 666 of format.tikiwiki.php just needs tweaking, but I'm not sure if page_id is actually available in the data hash.
Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Tue 23 of Jun, 2009 (09:43 UTC)site urls to reach wiki page, all work:
(the first one shows up when accessing the site via the wikibook structure toc)-
.../bitweaver/index.php?structure_id=49 -
.../bitweaver/index.php?content_id=58 -
.../bitweaver/index.php?page_id=30
section edit url on mouseover:
this link doesnt work; it shows a new wiki page.../bitweaver/wiki/edit.php?content_id=58§ion=1correct, self-constructed section edit:
these urls both work:-
.../bitweaver/wiki/edit.php?structure_id=49§ion=1 -
.../bitweaver/wiki/edit.php?page_id=30§ion=1
Re: Wiki forms are blank / empty if trying to edit a subpage
Posted:Thu 16 of Jul, 2009 (19:02 UTC)After some superficial glancing, in wiki/edit.php on line 25 there is
unset($_REQUESTcontent_id>'content_id');
Of course, this is a bit of "duh" and commenting it out fixes the problem immediately. But it probably isn't the *answer*. However, it works for me for the moment.
It looks like the real changes need to be made in
liberty/plugins/format.tikiwiki.php
at line 666