1
jaimi
Installed OK, but blank pages for any admin function
  • 2004/10/31 5:02

  • jaimi

  • Just popping in

  • Posts: 2

  • Since: 2002/8/12


Installed 2.0.7.3 on IIS 6 - worked great. Set permissions on cache, templates_c, and mainfile.php. Able to login.

But, when I go into the admininistration module, and choose any item from the popup menu, I get a blank screen.

I Enabled debug mode manually, and found the following error:

Notice [PHP]: Undefined offset: 2 in file C:\Websites\Aztica.com\include\common.php line 267

The code is as follows:

$url_arr = explode('/',strstr($xoopsRequestUri,'/modules/'));
$module_handler =& xoops_gethandler('module');
$xoopsModule =& $module_handler->getByDirname($url_arr[2]);

The last line is the problem.

Any clues?

Thanks!

2
jaimi
Re: Installed OK, but blank pages for any admin function
  • 2004/10/31 15:40

  • jaimi

  • Just popping in

  • Posts: 2

  • Since: 2002/8/12


Modifying the source in common.php to check the validity of $xoopsRequestUri solves the problem:

$xoopsRequestUri = ($xoopsRequestUri)?$xoopsRequestUri:xoops_getenv('REQUEST_URI');
$xoopsRequestUri = ($xoopsRequestUri)?$xoopsRequestUri:(($rq = xoops_getenv('SCRIPT_NAME')) ? $rq:getenv('REQUEST_URI'));

Login

Who's Online

227 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 227


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