[Pmwiki-users] Port number added twice to URL

Patrick R. Michaud pmichaud
Thu Jul 24 09:05:36 CDT 2003

Indeed, the double-port-number problem was (supposed to have been) fixed
in the pmwiki-0.5.0 and later releases.  If you're already using 0.5.0
or later and still having this problem, then let me know so I can 
look into it further.  

In the meantime, the normal fix is to explicitly set the value of 
$ScriptUrl in the local.php file.  PmWiki tries its best to figure out
the best URL to use from the information available, but sometimes
it just gets it wrong and so you can explicitly set it in local.php
if needed.



On Thu, Jul 24, 2003 at 08:47:46AM -0400, Bob Dively wrote:
> From: "Robert Webster" <rewebster at adelphia.net>
> >When running Apache on any port other than 80,
> >the port number gets appended twice to the URL.
> >I've tried setting Apache's UseCanonicalName
> >both on and off with no good effect.
> I posted about this same problem back at the beginning of
> June. At the time, I was able to solve the issue by
> commenting lines 33 & 34 in pmwiki.php, which were:
>   $ScriptUrl .= ':'.$HTTP_SERVER_VARS['SERVER_PORT'];
> That was a few release back, so if those lines are stll in
> pmwiki.php they might be different line numbers by now. PM
> mentioned something about possibly fixing it in subsequent
> releases, but I'm not sure if that happened or not (haven't
> had a lot of time to keep up with the code).
> You can also explicitly set $ScriptUrl in your local.php
> file.
> -b
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com

More information about the pmwiki-users mailing list