Re: warnings generated by FixFlow skin
Gregor Klarič <[email protected]> Fri, 12 Sep 2025 19:20:17 +0200
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <CA+whS2LKPMa_5KCakPMeNmKzUjAoPWniUuoLqyc4cPx3WX=KzQ@mail.gmail.com> |
--===============1120354649238258033== Content-Type: multipart/alternative; boundary="000000000000ca11b2063e9dde59" --000000000000ca11b2063e9dde59 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You can try and change this line if(isset($opt['target'])) $target =3D MakePageName($pagename, $opt['target']); to if (!empty($opt['target'])) $target =3D MakePageName($pagename, $opt['target']); and see if this gets rid of the warning. Am Fr., 12. Sept. 2025 um 17:13 Uhr schrieb Piotr Dybczy=C5=84ski < [email protected]>: > Hi all, > > In the latest version of the FixFlow skin there exist a script named: > searchbox2.php > > There are lines in it: > > if(isset($opt['target'])) $target =3D MakePageName($pagename, > $opt['target']); > else $target =3D $pagename; > $out =3D FmtPageName(" class=3D'wikisearch' action=3D'\$PageUrl' > method=3D'get'>", $target); > $opt['n'] =3D IsEnabled($EnablePathInfo, 0) ? '' : $target; > > which generate following warnings: > > PHP Warning: Undefined array key "target" in > /home/var_www/WikiPub/pmwiki/pub/skins/triad/searchbox2.php on line 20 > > Could you give me a hint how to repair this? > > I use PmWiki for decades but still do not understand PHP :) > > Thanks in advance, > Piotr > -- > /*********************************************************************** > dr Piotr A. Dybczy=C5=84ski > homepage: https://www.dybczynski.pl/Piotr > e-mail: [email protected] > *****************************************************************PAD***/ > > > > _______________________________________________ > pmwiki-users mailing list > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > --000000000000ca11b2063e9dde59 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">You can try and change this line<br><br>=C2=A0if(isset($op= t['target'])) $target =3D MakePageName($pagename, $opt['target&= #39;]);<br><br>to<br><br>if (!empty($opt['target'])) $target =3D Ma= kePageName($pagename, $opt['target']);=C2=A0<br><br>and see if this= gets rid of the warning.</div><br><div class=3D"gmail_quote gmail_quote_co= ntainer"><div dir=3D"ltr" class=3D"gmail_attr">Am Fr., 12. Sept. 2025 um 17= :13=C2=A0Uhr schrieb Piotr Dybczy=C5=84ski <<a href=3D"mailto:piotr@dybc= zynski.pl">[email protected]</a>>:<br></div><blockquote class=3D"gmail= _quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204= ,204);padding-left:1ex">Hi all,<br> <br> In the latest version of the FixFlow skin there exist a script named:<br> searchbox2.php<br> <br> There are lines in it:<br> <br> if(isset($opt['target'])) $target =3D MakePageName($pagename, <br> $opt['target']);<br> else $target =3D $pagename;<br> $out =3D FmtPageName(" class=3D'wikisearch' action=3D'\$Pa= geUrl' <br> method=3D'get'>", $target);<br> $opt['n'] =3D IsEnabled($EnablePathInfo, 0) ? '' : $target;= <br> <br> which generate following warnings:<br> <br> PHP Warning:=C2=A0 Undefined array key "target" in <br> /home/var_www/WikiPub/pmwiki/pub/skins/triad/searchbox2.php on line 20<br> <br> Could you give me a hint how to repair this?<br> <br> I use PmWiki for decades but still do not understand PHP :)<br> <br> Thanks in advance,<br> Piotr<br> -- <br> /***********************************************************************<br= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 dr Piotr A. Dybczy=C5=84ski<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0homepa= ge: <a href=3D"https://www.dybczynski.pl/Piotr" rel=3D"noreferrer" target= =3D"_blank">https://www.dybczynski.pl/Piotr</a><br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 e-mail: <a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a><br> *****************************************************************PAD***/<br= > <br> <br> <br> _______________________________________________<br> pmwiki-users mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">pmwiki-users= @pmichaud.com</a><br> <a href=3D"http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel=3D"no= referrer" target=3D"_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki= -users</a><br> </blockquote></div> --000000000000ca11b2063e9dde59-- --===============1120354649238258033== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users --===============1120354649238258033==--