This question about Installation of Foswiki: Answered

Browser shows "The page cannot be found" after login

Hi *,

I have following problem.

  1. Click Login
  2. Foswiki login form shows
  3. after entering username and password browser shows "The page cannot be found"

The URL after login is: http://..../foswiki/bin/login.pl/Main/WebTopicList
The user is actually logged-in (authenticated by foswiki), he is just not redirected to original page where he initiated the login. Other scripts works fine (like edit). This works: http://..../foswiki/bin/view.pl/Main/WebTopicList

Installation summary:

Any idea what can be wrong? The same thing worked fine in TWiki 4.2 from which I've just upraded. Let me know, if more information is needed.

thank you, cheers! -- RadekSedlacik - 19 Jan 2009

Sounds like a setup error, though may be related to IIS (which AFAIK is untested)

Can you find out the last few HTTP accesses made to the server? What page was it trying to GET when it had the "page not found" error?

-- CrawfordCurrie - 19 Jan 2009

I don't know if I know enough about iis to provide this info. Here is extract from server log:
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/bin/view.pl/TestDev/FintestReleaseMercury2 logout=1 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 302 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/bin/view.pl/TestDev/FintestReleaseMercury2 - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/PatternSkin/theme_finisar.css - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/JavascriptFiles/foswikiPref.js - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/TwistyPlugin/twisty.js - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/TwistyPlugin/twisty.css - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/DocumentGraphics/newtopic.gif - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:40:24 W3SVC1 10.96.3.18 GET /foswiki/pub/System/DocumentGraphics/xls.gif - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:42:17 W3SVC1 10.96.3.18 GET /foswiki/bin/login.pl/TestDev/FintestReleaseMercury2 origurl=/foswiki/bin/view/TestDev/FintestReleaseMercury2 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:42:17 W3SVC1 10.96.3.18 GET /foswiki/pub/System/ProjectLogos/foswiki-logo.png - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 200 0 0
2009-01-20 05:42:23 W3SVC1 10.96.3.18 POST /foswiki/bin/view/TestDev/FintestReleaseMercury2 - 80 - 10.96.5.83 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.0.5)+Gecko/2008120122+Firefox/3.0.5 404 0 0

I first logged out from FintestReleaseMercury2 page, then I logged in, got 404 - the page cannot be found error.

I see where is the problem. The last POST method has just view, without .pl extension. Where I can make it with extension?

thanks! -- RadekSedlacik - 20 Jan 2009

Hmm, I'm surprised by that. configure has a {ScriptSuffix} option that should be set to .pl, and if it is set that should automatically apply to all htto requests. You may have found a bug (I suspect that the new Engine code may be doing the wrong thing when bin scripts have an extension). Can you confirm that you have set {ScriptSuffix} to .pl.?

-- CrawfordCurrie - 20 Jan 2009

Confirmed. This is line from Localsite.cfg
$Foswiki::cfg{ScriptSuffix} = '.pl';

Is there any quick hack which would help?

-- RadekSedlacik - 20 Jan 2009

I just tested and could confirm the bug. See Tasks.Item818.

You can apply the patch at distro:048ce4104740 to your local installation in order to fix the issue and upgrade to 1.0.1 when it's released.

-- GilmarSantosJr - 20 Jan 2009

thanks for the patch! I applied it, and it works ok for login.pl. However, logout redirects me to login page, which wasn't happening before (logout used to show the same page from which I was logging out). I don't know if it's feature, or some undesired side effect.

-- RadekSedlacik - 22 Jan 2009

That's certainly not desired. Recommend you open a new task describing the behaviour and you configuration.

-- CrawfordCurrie - 05 Feb 2009

QuestionForm edit

Subject Installation of Foswiki
Extension
Version
Status Answered
Topic revision: r9 - 07 Feb 2009, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy