1
dazcox5181
Module does not exist (again) Help needed ASAP
  • 2004/7/8 17:23

  • dazcox5181

  • Just popping in

  • Posts: 8

  • Since: 2004/7/8 1


Ive just got XOOPS (2.0.7) up and running after a lot of messing about, on 2003 server + iis 6. However i cannot configure my site as when i go to admin menu and try to click and section(eg preferences/modules) i get the Selected module does not exist! error. I've looked throught he forums, and tried the solutions, but the one that seems to have worked for some people -> Quote:
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.

wont work for me as i dont have that line in my common.php file. Any suggestions?

2
brian100
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 17:58

  • brian100

  • Just popping in

  • Posts: 44

  • Since: 2004/7/7 2


I've got XOOPS 2.05 with the same problem.

The "system admin" module is not visible in the Administration menu. Second, when I try to force it with the URL--"site name"/modules/system/admin.php I get the message "Selected module does not exist".

Reading the threads it appears the thing I have in common with similar problems is updating the group permissions of "webmasters".

Yesterday I installed Agenda-x, then turned the module off, then turned it back on again just before this started--don't think this is related but I'm throwing it out there in case someone recognizes a pattern.

Will return if I find anything...

Is there no way for the first/main/master user to force his way back into the system admin menu without going out into the code or database?

Brian

3
dazcox5181
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 18:03

  • dazcox5181

  • Just popping in

  • Posts: 8

  • Since: 2004/7/8 1


difference is i Have the sys admin menu, its all the options in it that return the error...getting desperate spent two days trying to solve this!

4
phppp
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 18:05

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


seems the windows server problem has not been solved in 2.07 yet.

I also have some guys complaining "Module not exits".
unfortunately I do not have windows server for testing.

5
brian100
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 18:20

  • brian100

  • Just popping in

  • Posts: 44

  • Since: 2004/7/7 2


No windows server here.

Operating system Linux
Kernel version: 2.4.18-27.7.xsmp
Apache version 1.3.29

I'm going to look around some more and maybe start another thread--my problem has nothing to do with installation (worked fine for days) or 2.07 so maybe I'm poking my nose into a different problem.
Brian

6
dazcox5181
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 18:31

  • dazcox5181

  • Just popping in

  • Posts: 8

  • Since: 2004/7/8 1


i dont like the sound of windows server problem...the guys at iis-resources run it ok, on server 2k3, so maybe this is an iis config issue?

7
dazcox5181
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 18:46

  • dazcox5181

  • Just popping in

  • Posts: 8

  • Since: 2004/7/8 1


got it sorted. There is a path error in common.php the lines
Quote:
if (file_exists('./xoops_version.php')) {
preg_match("/modules\/(\w*)/",$xoopsRequestUri,$url_arr);
$module_handler =& xoops_gethandler('module');
$xoopsModule =& $module_handler->getByDirname($url_arr[1]);
unset($url_arr);


needed to be changed to

Quote:
if (file_exists('/xoops_version.php')) {
preg_match("/modules/",$xoopsRequestUri,$url_arr);
$module_handler =& xoops_gethandler('module');
$xoopsModule =& $module_handler->getByDirname($url_arr[1]);
unset($url_arr);

and all is accessible...for now!


edit.

Spoke too soon...can add modules, but when you try to set options still get error...but now i know it to be a path problem maybe some knows where else i can make this change, or where i can set it globally?

8
brian100
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/8 19:02

  • brian100

  • Just popping in

  • Posts: 44

  • Since: 2004/7/7 2


I installed another copy of XOOPS (which worked fine) and found this path:

http://mysitename/modules/system/admin.php?fct=groups

With this info in hand, I plugged in the real site and opened the groups form.

(It's probably important to be logged into your site before you do this).

I chose webmasters and checked every possible box. Then clicked "update group".

Problem is solved.

The root problem in my case is a bug. When you open group "webmasters" it does not initially show accurate permissions for " Sytem Admin Rights". None of the modules are checked--even though you do have admin rights to them. Then, when you change some little thing about this group and click "update group" you end up denying yourself admin rights to all the modules that aren't checked (all of them).

If the form was accurate when you first opened it, you would have to work hard to create this problem. Also, there really should be no way the master user can lock himself out of accesing the admin menu unless he fools aroung with the code.

Brian

9
dazcox5181
Re: Module does not exist (again) Help needed ASAP
  • 2004/7/9 7:19

  • dazcox5181

  • Just popping in

  • Posts: 8

  • Since: 2004/7/8 1


solved it this time - installed Apache instead of IIS lemme know what u think W?BIC!

10
MarcDeMesel
Re: Module does not exist (again) Help needed ASAP

Thanks a lot Brian100, had the same problem

Login

Who's Online

241 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits