Menu

Another ERROR 8: Undefined index:

Help
Don Mided
2010-01-08
2013-05-30
  • Don Mided

    Don Mided - 2010-01-08

    I am using PhpGedView v 4.0.1 stable and had no problems over a long period of time. About 6-8 months ago I had to change the domain name for my server and, at the same time, upgraded the server's OS (a Linux variant), MySQL version (now 5.0.26), and PHP version (now 5.2.5).

    I have slowly resolved the various problems / issues caused by those changes, but I'm stuck on this one. Whenever I try to make changes to a user's info, e.g. email address, I get a page full of error messages like this "ERROR 8: Undefined index:  username 0 Error occurred on line 392 of file useradmin.php", and a "Passwords don't match" warning near the upper left.

    I've searched this forum and found topic 1879090 which recommends checking config.php and making sure that $AUTHENTICATION_MODULE = "authentication.php";. I did that and it was already right.

    Then I found topic 1753716 which points out that "PhpGedView version 4.0.x needs at least 16 Mb". I clicked PHP Information on the Admin screen and scrolled down until I found a line titled "memory_limit" which reported a Local value of 64M, and a Master value of 50M. So, I think that's right too.

    The only thing I've found that looks like it might be wrong is this line in config.php: $INDEX_DIRECTORY = "./";. I think it's recommended to be: $INDEX_DIRECTORY = "./index/";, but I'm reluctant to change it since I think it has been this way since the original installation (done by someone else). Also, the most recent files in the "./index/" are dated 7/13/2006 and I'm sure everything was working correctly long after that.

    Thanks for your help.

     
  • Greg Roach

    Greg Roach - 2010-01-08

    1) I guess that your browser if filling in (one or both) of the password fields.  If you're not changing the password, leave them blank.

    2) using $INDEX_DIRECTORY = "./"; is a poor choice, as you'd need to set the root directory to be read/write to the webserver, which could be a security vulnerability,

    3) 4.0.1 is *very* old.  There have been a number of serious security vulnerabilities fixed then.  I advise you to upgrade.

     
  • Don Mided

    Don Mided - 2010-01-08

    1) Thanks! My browser was filling in one of the fields. Cleared that entry and VOILA.

    2) If I change $INDEX_DIRECTORY = "./"; to $INDEX_DIRECTORY = "./index/";, which files would I need to move from  "./" to  "./index/"? Can I assume that making this change would _not _require making changes in the MySQL tables?

    3) I tried upgrading PhpGedView around the time I upgraded the OS, but got so many errors that I couldn't figure out that I simply reverted to 4.0.1. Maybe now that I've gotten past the transition related problems it won't be so bad… Is there some guide to an "easy", painless transition you  can point me to?

    Thanks again for all of the help.

     
  • Anonymous

    Anonymous - 2010-01-10
     

Log in to post a comment.