21
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 14:43

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


I have searched and here are xoops_version.php file no one on root.

D:\inetpub\erpstuff.com\Frameworks\art\xoops_version.php
D:\inetpub\erpstuff.com\modules\pm\xoops_version.php
D:\inetpub\erpstuff.com\modules\profile\xoops_version.php
D:\inetpub\erpstuff.com\modules\protector\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\avatars\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\banners\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\blocksadmin\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\comments\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\findusers\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\groups\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\images\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\mailusers\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\modulesadmin\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\preferences\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\smilies\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\tplsets\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\userrank\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\users\xoops_version.php
D:\inetpub\erpstuff.com\modules\system\admin\version\xoops_version.php
D:\inetpub\erpstuff.com\xoops_lib\modules\protector\xoops_version.php

22
Peekay
Re: Error: Selected module does not exist?
  • 2009/11/20 14:49

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


'PHP_SELF' should work on IIS, but I have read about a few problems with it. I would normally try changing it to

$_SERVER['SCRIPT_NAME']

but it doesn't return a full path so I don't know how that might affect that function.

I know that
$_SERVER['REQUEST_URI']


won't work on IIS if PHP is running in CGI mode.

23
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 15:00

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


Can you pl let me know what it should return?

Just reading,

$_SERVER['SCRIPT_NAME'] is supported on all platforms

$_SERVER['PHP_SELF']
This is the filename of the currently executing script, relative to the document root. However, unlike $_SERVER['SCRIPT_NAME'], it provides additional path information like $_SERVER['REQUEST_URI'] when the actual php file is present in the path. So when the $_SERVER['REQUEST_URI'] is /index.php/big/directory/ then $_SERVER['PHP_SELF'] will be /index.php/big/directory/.
However if all the URI's under http://www.example.com/ is mapped to http://www.example.com/index.php, then, for example, http://www.example.com/abc/def will return /index.php like $_SERVER['SCRIPT_NAME']. Note that $_SERVER['REQUEST_URI'] data is ignored for this request.

$_SERVER['PHP_SELF'] is supported on all platforms.


24
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 15:09

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


One possible reason just want to check by placing all files in a folder instead of root. may it effect. thanks

25
ghia
Re: Error: Selected module does not exist?
  • 2009/11/20 15:15

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I can see following error in debug?
Yes Try this testversion.php in your root
if (file_exists('./xoops_version.php')) 
{
  echo 
"exists";
}
else
{
  echo 
"exists not";
}
?>

26
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 15:48

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


It says exists not

now when I tested on my local pc the following,

$_SERVER['SCRIPT_NAME']

is returning '/'

while on online hosting it is giving error with,

/user.php or /admin.php or /index.php

why so as it it will only return directory then I think there will be no issue. Just my thought. thanks

27
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 16:16

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


I think is I think due to placing XOOPS on root and IIS is getting confused. Now if I will place XOOPS in a folder then how users will be able to access it? Do I need to place any file on root? thanks

28
ghia
Re: Error: Selected module does not exist?
  • 2009/11/20 16:23

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Don't compare different things. The added display on the server comes from $_SERVER['PHP_SELF']. But I can't get why the first statement
if (file_exists('./xoops_version.php'))
of common.php resolves to true. Could you change once the line in common.php to
echo '

_MODULENOEXIST '|' $_SERVER['PHP_SELF'] . '|' realpath('./xoops_version.php') . '|' '

'
;

29
Sikandar
Re: Error: Selected module does not exist?
  • 2009/11/20 16:42

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


Hi ghia,
I have figured out the problem that XOOPS is working fine on root on Apache but not on IIS. So I moved it into a folder and now there is no error. Thanks for your cooperation.

Let me know if still any more info need to be provided in order to make this topic more useful for other if they will face same issue. thanks

Login

Who's Online

292 user(s) are online (200 user(s) are browsing Support Forums)


Members: 0


Guests: 292


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