[pmwiki-users] Can't Edit Pages

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 28 23:03:02 CST 2005


On Mon, Feb 28, 2005 at 11:08:53PM -0500, Josiah Ritchie wrote:
> On Mon, 28 Feb 2005 09:45:30 -0600, Patrick R. Michaud
> <pmichaud at pobox.com> wrote:
> > On Mon, Feb 28, 2005 at 10:20:47AM -0500, Josiah Ritchie wrote:
> > > I just converted to version 2 and when I go to make changes on a page,
> > > it doesn't take. Even if I change it and then hit preview, the changes
> > > disappear. Any idea what I can do about this? I figured a permission
> > > issue, but my permissions look like they are supposed to (I think).
> > 
> > If the changes are lost during preview, then it's not a permissions
> > problem and must be something else, since preview doesn't depend on
> > file permissions at all.
> > 
> > Is there a url we could look at or experiment with?
> 
> Sure can, sorry I didn't think to include that before.
> 
> http://josiah.ritchietribe.net/pmwiki-2.0.beta23/

Something weird is happening with your $ScriptUrl setting, although
the edit url is 

    http://josiah.ritchietribe.net/pmwiki-2.0.beta23/pmwiki.php?n=Main.HomePage?action=edit

the Edit Page form seems to think that the results should be posted to

    http://josiah.ritchietribe.net/josiah/pmwiki-2.0.beta23/pmwiki.php?n=Main.HomePage?action=edit

Note the extra 'josiah/' at the beginning of the path.  Apparently that
url is somehow redirecting back to the url without the 'josiah/', but
a redirected page loses the contents of the form submission so you end
up with just an 'edit page' form again.

Since PmWiki isn't detecting the correct script url (I suspect your
system is running PHP as a cgi-bin script and has a weird configuration), 
the solution is to explicitly tell PmWiki what url to use.  
In config.php, set:

  $ScriptUrl = 'http://josiah.ritchietribe.net/pmwiki-2.0.beta23/pmwiki.php';

and PmWiki will use the correct value in its forms and links rather
than relying on the redirected value.

Pm



More information about the pmwiki-users mailing list