Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Selected module does not exist!
by PaulSinnema on 2004/6/14 10:00:11

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.
Re: Selected module does not exist!
by JackJ on 2004/6/6 14:54:46

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
Re: Selected module does not exist!
by PaulSinnema on 2004/6/6 14:49:41

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
Re: Selected module does not exist!
by PaulSinnema on 2004/6/6 14:42:43

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
Re: Selected module does not exist!
by PaulSinnema on 2004/6/6 14:34:27

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.

Who's Online

369 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 369


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits