[pmwiki-users] Need help troubleshooting (ScriptUrl?)

Patrick R. Michaud pmichaud at pobox.com
Fri Aug 25 15:38:31 CDT 2006


On Thu, Aug 24, 2006 at 08:20:25PM -0400, Pico wrote:
> Resolved: $ScriptUrl was not set according to questioner, who posted 
> this followup on the Questions page:
> 
> "Thanks for the information. That pointed me in the right direction. I 
> didn't edit the config file for the $ScriptUrl, it was still commented 
> out with the default information placed there. After I uncommented it 
> out and filled in the url it works fine now."

I suspect that whatever webserver was being used had an incorrect
value for $_SERVER['SCRIPT_NAME'], thus PmWiki was picking up an
incorrect value for $ScriptUrl.

Which, of course, is exactly why we have the capability to
explicitly set $ScriptUrl for when the environment gets it wrong.  
:-)

Pm


> Pico wrote:
> > A post on the Questions page identifies a site that appears to have an
> > odd install issue that needs troubleshooting.  (This is not my own
> > Question).  The problem appears to be related to the ScriptUrl.  Here
> > is a quick summary of how the url changes in response to various
> > actions:
> > 
> > 1. Initial visit (and subsequent clicks on PmWiki Logo)
> > http://www.bynw.com/wiki/pmwiki.php
> > 
> > 2. Click on HomePage (or View) links:
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage
> > 
> > 3. Click again on HomePage (or View) links:
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage?n=Main.HomePage
> > 
> > 4. And again...
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage?n=Main.HomePage?n=Main.HomePage
> > 
> > Notice the pattern of appends.  The same thing happens with edits, only
> > the action string in included:
> > 
> > 1. Initial visit (and subsequent clicks on PmWiki Logo)
> > http://www.bynw.com/wiki/pmwiki.php
> > 
> > 2. Click on Edit:
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage?action=edit
> > 
> > 3. Click on Save (or Cancel, or Preview):
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage?action=edit?n=Main.HomePage?action=edit
> > 
> > Note that the edit screen remains posted and subsequent clicks will
> > append ?n=Main.HomePage?action=edit again, and again.
> > 
> > Finally, I added some page variables and note that the value of the
> > ScriptUrl keeps changing:
> > 
> > 1. Initial visit (and subsequent clicks on PmWiki Logo)
> > Address bar is http://www.bynw.com/wiki/pmwiki.php
> > {$ScriptUrl} is http://www.bynw.com/wiki/pmwiki.php 
> > {$PageUrl} is http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage
> > 
> > 2. Click on HomePage (or View) links:
> > Address bar is http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage
> > {$ScriptUrl} is http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage 
> > {$PageUrl} is
> > http://www.bynw.com/wiki/pmwiki.php?n=Main.HomePage?n=Main.HomePage
> > 
> > I won't be able to check the list tonight, but if someone comes up with
> > the answer, please add it to the questions page.
> > 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 




More information about the pmwiki-users mailing list