[pmwiki-users] Why doesn't this installation sequence work?
H. Fox
haganfox at users.sourceforge.net
Mon Mar 20 19:23:42 CST 2006
On 3/20/06, christian.ridderstrom at gmail.com
<christian.ridderstrom at gmail.com> wrote:
> This is the same error message Hagan got so it's confirmed. I looked into
> it, and the problem seems to be in skin.php. I've attached a patch at
> the end of this post which gives a slightly more verbose message:
>
> ?unable to find skin from list pmwiki because the directory
> /home/chr/pmwiki/pub/skins/pmwiki doesn't exist!
>
> So the problem is that skin.php looks in the wrong place for the skin.
> AFAICT, the error occurs because pub/ isn't located in $FarmD, but I
> didn't think $FarmD had to point there, just to where cookbook/ and
> scripts/ is located?
>
> Do we need a new variable called something like $FarmPubD?
I think so.
Hagan
-------------- next part --------------
*** skins-old.php 2006-03-20 15:38:19.000000000 -0700
--- skins-new.php 2006-03-20 15:35:48.000000000 -0700
***************
*** 40,52 ****
# the $skin array.
function SetSkin($pagename, $skin) {
global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
! $FarmPubDirUrl, $FarmD;
unset($Skin);
foreach((array)$skin as $s) {
$sd = FmtPageName("./pub/skins/$s", $pagename);
if (is_dir($sd))
{ $Skin=$s; $SkinDirUrl="$PubDirUrl/skins/$Skin"; break; }
! $sd = FmtPageName("$FarmD/pub/skins/$s", $pagename);
if (is_dir($sd))
{ $Skin=$s; $SkinDirUrl="$FarmPubDirUrl/skins/$Skin"; break; }
}
--- 40,53 ----
# the $skin array.
function SetSkin($pagename, $skin) {
global $Skin, $SkinDir, $SkinDirUrl, $IsTemplateLoaded, $PubDirUrl,
! $FarmPubDirUrl, $FarmD, $FarmPubD;
unset($Skin);
+ SDV($FarmPubD, "$FarmD/pub");
foreach((array)$skin as $s) {
$sd = FmtPageName("./pub/skins/$s", $pagename);
if (is_dir($sd))
{ $Skin=$s; $SkinDirUrl="$PubDirUrl/skins/$Skin"; break; }
! $sd = FmtPageName("$FarmPubD/skins/$s", $pagename);
if (is_dir($sd))
{ $Skin=$s; $SkinDirUrl="$FarmPubDirUrl/skins/$Skin"; break; }
}
More information about the pmwiki-users
mailing list