11
JackJ
Re: Selected module does not exist!
  • 2004/6/4 16:25

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


this site has an XOOPS Forum for Win and IIS setups and they run XOOPS on IIS

http://www.iis-resources.com

perhaps worth posting there?

If it was me I would try an older Version of Xoops..

12
gman2004
Re: Selected module does not exist!
  • 2004/6/4 22:48

  • gman2004

  • Just popping in

  • Posts: 15

  • Since: 2004/6/4 7


Still digging... thanks for the link to iis-resources - posted a message there about the problem but the board is pretty dead so not sure how much help they'll be.

I really don't want to try an older version - somebody's had to have experienced this prob. before and solved it????? If so - PLEASE HELP

13
PaulSinnema
Re: Selected module does not exist!

I've been debugging the problem and found something to go wrong in common.php at the line:

$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));

After execution of this line $url_arr[0] contails 'http:'. It tries to find the module 'http:' which of course doesn't exist. I've changed $url_arr[0] to 'system' and now get the 'Site preferences'.

In the database the only row in the xoops_modules table is an entry for the 'system' module. Changing $url_arr[0] to any of the other modules, gives me the 'Selected Module Does Not Exist' text again.

Because there's no comment in the sources, I'm not sure what the 'explode' should deliver. My quess is that it should return the parameter ater the '?' in the URL, but I can't be shure.

I've left the debugging 'echo' statements in the sources. YOu can look for yourself. Go to http://www.paulsinnema.com and login with 'admin' and 'testing'.

Paul.

14
PaulSinnema
Re: Selected module does not exist!

Debugged a little more. The problem lies in the common.php in the following line:

$xoopsRequestUri = @xoops_getenv('REQUEST_URI');
if (!$xoopsRequestUri) {
$xoopsRequestUri = (!$rq = xoops_getenv('SCRIPT_NAME')) ? getenv('REQUEST_URI') : $rq;
}

if I change it to:

//$xoopsRequestUri = @xoops_getenv('REQUEST_URI');
//if (!$xoopsRequestUri) {
$xoopsRequestUri = (!$rq = xoops_getenv('SCRIPT_NAME')) ? getenv('REQUEST_URI') : $rq;
//}

the $url_arr[0] contains 'system' after execution.

Paul

15
PaulSinnema
Re: Selected module does not exist!

Reinstalled XOOPS 2 and changed the code as described above. It now works fine. Something is wrong in the code 'xoops_getenv('REQUEST_URI');'

Paul

16
JackJ
Re: Selected module does not exist!
  • 2004/6/6 14:54

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


glad its working..

Did you see this post here?

https://xoops.org/modules/newbb/viewtopic.php?topic_id=19516&forum=7&viewmode=flat&order=ASC&start=20

same problem as yours but turned out to be a path problem

17
PaulSinnema
Re: Selected module does not exist!

Jack,

Do the developers read this? Are they going to do something about it or is it going to stay the way it is now?

Paul.

Login

Who's Online

426 user(s) are online (129 user(s) are browsing Support Forums)


Members: 1


Guests: 425


liomj,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits