Menu

#13 Getting Redirected

closed
nobody
None
9
2010-11-01
2007-12-27
Badr
No

hi;

I just grabbed PMI, and I am getting a weird error...

When I go into http://www.bytesandbeans.com/inventory (this is where its installed), for some reason it redirects me to www.login.php...

The error is:

http://www.login.php/?strError=login&strRedir=http%3A%2F%2F

Now poking around, I went into login.php and found out there is a variable .makeHOMEURL near the bottom... I followed that variable to globalFunctions.inc.php:

Function makeHomeURL($stringToRemove = "") {
global $SERVER_NAME, $PHP_SELF;
$strURL = $SERVER_NAME.$PHP_SELF;
If ($stringToRemove != "") {
$intPos = strpos($strURL, $stringToRemove);
$strURL = substr($strURL, 0, ($intPos-1));

From where its getting $SERVER_NAME?

could you let me know how to resolve this issue?

Thanks in advanced!
badr

Discussion

  • Badr

    Badr - 2007-12-27
    • priority: 5 --> 9
     
  • Nobody/Anonymous

    Logged In: NO

    I believe you will have to set register_globals to On in /etc/php.ini.

     
  • Nobody/Anonymous

    Logged In: NO

    did you ever find out how to

     
  • Nobody/Anonymous

    Logged In: NO

    can you do with htacess file?

     
  • Nobody/Anonymous

    thanks, that fixed worked for me!

     
  • Nobody/Anonymous

    i'm having the same problems too. but my register_globals is already On but i'm being redirected still. how do i fix this?

     
  • Michael Stoppay

    Michael Stoppay - 2010-11-01

    Sorry there is no way to quicky fix the problem you are having, The current version of PHPmyInventory use several aspects of PHP that have been depreciated. PHP 5 will be supported in the next version.

     
  • Michael Stoppay

    Michael Stoppay - 2010-11-01
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.