Re: 404 errors when following action link

David Annett <[email protected]> Sat, 22 Nov 2025 22:22:53 +1300
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============2860250674373426200==
Content-Type: multipart/alternative;
 boundary="------------aqVtTbTy9I6Hl5YtzJNCLpZr"
Content-Language: en-US, en-GB

This is a multi-part message in MIME format.
--------------aqVtTbTy9I6Hl5YtzJNCLpZr
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

I have made progress, the query parts have the wrong separator.  On the 
page:
http://example.com/wiki/pmwiki.php?n=Site.APage
the edit URL provided is:
http://example.com/wiki/pmwiki.php?n=Site.APage?action=edit
when it should be:
http://example.com/wiki/pmwiki.php?n=Site.APage&action=edit

Not sure if this is PMWiki issue or a Lighttpd issue but I am guessing 
this is something I can configure Lighttpd to deal with, but it would be 
better if the rendered page had the correct URL.

On 22/11/25 21:50, David Annett wrote:
> I had $ScriptUrl commented out.  Setting didn't help.  I don't have 
> CleanURLs or $EnablePathInfo defined that I can see.
>
> However .htaccess is a good clue as I have used Lighttpd in the RPI 5, 
> instead of Apache I have used on the x64 implementation. I'm going to 
> look into that.
>
>
> On 22/11/25 17:40, Petko Yotov wrote:
>> There looks like a problem with the $ScriptUrl variable.
>>
>> It should point to the browser-reachable URL of your index.php or 
>> pmwiki.php file, for example:
>>
>> $ScriptUrl = 'https://www.example.com/wiki/index.php';
>> $ScriptUrl = 'http://192.168.1.55/wiki/index.php';
>>
>> Or a path without the domain name or IP address:
>> $ScriptUrl = '/wiki/index.php';
>>
>> Normally PmWiki should autodetect this and you wouldn't need to 
>> define it. I'd check if your local/config.php has a value that is 
>> wrong, or points to the old server URL.
>>
>> If you were using CleanURLs or $EnablePathInfo - see Cookbook - there 
>> may be additional configuration on the server to direct such requests 
>> to PmWiki. For Apache servers it is often a .htaccess file, and it 
>> may be a "hidden" file, in a file manager you may need to enable 
>> "Show hidden files" to see it. Check if you need to migrate this file 
>> too.
>>
>> Petko
>

-- 
ACCL_Sig
David Annett
Annett Computer Company

Email: 	[email protected]
Website: 	www.annett.co.nz <http://www.annett.co.nz>
NZ mobile: 	+64 21 436 707
USA mobile: 	+1 650 772 1412
NZ address: 	90 Muhunoa West Rd, Ohau, Manawatu 5570, New Zealand
NZ shipping address: 	2/6 Parker Ave, Levin 5510, New Zealand
Signal: 	+64 21 436 707
WeChat: 	DavidAnnett

--------------aqVtTbTy9I6Hl5YtzJNCLpZr
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    I have made progress, the query parts have the wrong separator.  On
    the page:<br>
      <a class="moz-txt-link-freetext" href="http://example.com/wiki/pmwiki.php?n=Site.APage">http://example.com/wiki/pmwiki.php?n=Site.APage</a><br>
    the edit URL provided is:<br>
      <a class="moz-txt-link-freetext" href="http://example.com/wiki/pmwiki.php?n=Site.APage?action=edit">http://example.com/wiki/pmwiki.php?n=Site.APage?action=edit</a><br>
    when it should be:<br>
      <a class="moz-txt-link-freetext" href="http://example.com/wiki/pmwiki.php?n=Site.APage&amp;action=edit">http://example.com/wiki/pmwiki.php?n=Site.APage&amp;action=edit</a><br>
    <div class="moz-cite-prefix"><br>
      Not sure if this is PMWiki issue or a Lighttpd issue but I am
      guessing this is something I can configure Lighttpd to deal with,
      but it would be better if the rendered page had the correct URL.<br>
      <br>
      On 22/11/25 21:50, David Annett wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:[email protected]">I had
      $ScriptUrl commented out.  Setting didn't help.  I don't have
      CleanURLs or $EnablePathInfo defined that I can see.
      <br>
      <br>
      However .htaccess is a good clue as I have used Lighttpd in the
      RPI 5, instead of Apache I have used on the x64 implementation. 
      I'm going to look into that.
      <br>
      <br>
      <br>
      On 22/11/25 17:40, Petko Yotov wrote:
      <br>
      <blockquote type="cite">There looks like a problem with the
        $ScriptUrl variable.
        <br>
        <br>
        It should point to the browser-reachable URL of your index.php
        or pmwiki.php file, for example:
        <br>
        <br>
        $ScriptUrl = '<a class="moz-txt-link-freetext" href="https://www.example.com/wiki/index.php">https://www.example.com/wiki/index.php</a>';
        <br>
        $ScriptUrl = '<a class="moz-txt-link-freetext" href="http://192.168.1.55/wiki/index.php">http://192.168.1.55/wiki/index.php</a>';
        <br>
        <br>
        Or a path without the domain name or IP address:
        <br>
        $ScriptUrl = '/wiki/index.php';
        <br>
        <br>
        Normally PmWiki should autodetect this and you wouldn't need to
        define it. I'd check if your local/config.php has a value that
        is wrong, or points to the old server URL.
        <br>
        <br>
        If you were using CleanURLs or $EnablePathInfo - see Cookbook -
        there may be additional configuration on the server to direct
        such requests to PmWiki. For Apache servers it is often a
        .htaccess file, and it may be a "hidden" file, in a file manager
        you may need to enable "Show hidden files" to see it. Check if
        you need to migrate this file too.
        <br>
        <br>
        Petko
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>ACCL_Sig</title>
      <br>
      <span style="font-weight: bold; color: rgb(0, 0, 0);">David Annett</span><br>
      <span style="color: rgb(0, 0, 0);">Annett Computer Company</span>
      <br>
      <br>
      <table>
        <tbody>
          <tr>
            <td>Email:</td>
            <td><span style="color: rgb(0, 0, 0);"><a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></span></td>
          </tr>
          <tr>
            <td>Website:</td>
            <td><a style="color: rgb(0, 0, 0);"
                href="http://www.annett.co.nz">www.annett.co.nz</a></td>
          </tr>
          <tr>
            <td>NZ mobile:</td>
            <td>+64 21 436 707</td>
          </tr>
          <tr>
            <td>USA mobile:</td>
            <td>+1 650 772 1412</td>
          </tr>
          <tr>
            <td>NZ address:</td>
            <td>90 Muhunoa West Rd, Ohau, Manawatu 5570, New Zealand</td>
          </tr>
          <tr>
          </tr>
          <tr>
            <td>NZ shipping address:</td>
            <td>2/6 Parker Ave, Levin 5510, New Zealand</td>
          </tr>
          <tr>
            <td>Signal:</td>
            <td>+64 21 436 707</td>
          </tr>
          <tr>
            <td>WeChat:</td>
            <td>DavidAnnett</td>
          </tr>
        </tbody>
      </table>
      <img style="width: 634px; height: 65px;" alt=""
        src="http://www.annett.co.nz/accl_banner.png">
    </div>
  </body>
</html>

--------------aqVtTbTy9I6Hl5YtzJNCLpZr--


--===============2860250674373426200==
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

--===============2860250674373426200==--