+ Reply to Thread
Results 1 to 8 of 8

Thread: MediaWiki internal error (Unable to determine IP)

  1. #1
    joeyfjj45 is offline x10Hosting Member joeyfjj45 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    MediaWiki internal error (Unable to determine IP)

    I'm getting this error in my site (http://transport.joeyfoo.x10.mx/index.php/Main_Page), it was working before this. Anyone has a solution?

    Internal error
    Unable to determine IP
    Backtrace:
    #0 /home/joeyfjj/public_html/transport/includes/User.php(114: wfGetIP()
    #1 /home/joeyfjj/public_html/transport/includes/User.php(1384): User->getBlockedStatus(false)
    #2 /home/joeyfjj/public_html/transport/includes/User.php(1401): User->isBlocked(false)
    #3 /home/joeyfjj/public_html/transport/includes/Title.php(153: User->isBlockedFrom(Object(Title))
    #4 /home/joeyfjj/public_html/transport/includes/Title.php(161: Title->checkUserBlock('edit', Object(User), Array, false, true)
    #5 /home/joeyfjj/public_html/transport/includes/Title.php(1171): Title->getUserPermissionsErrorsInternal('edit', Object(User), false, true)
    #6 /home/joeyfjj/public_html/transport/includes/Title.php(1141): Title->userCan('edit', false)
    #7 /home/joeyfjj/public_html/transport/includes/Article.php(899): Title->quickUserCan('edit')
    #8 /home/joeyfjj/public_html/transport/includes/Wiki.php(462): Article->view()
    #9 /home/joeyfjj/public_html/transport/includes/Wiki.php(69): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
    #10 /home/joeyfjj/public_html/transport/index.php(114): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
    #11 {main}

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MediaWiki internal error (Unable to determine IP)

    What's the value of $_SERVER['REMOTE_ADDR']? What version of MediaWiki are you using?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    joeyfjj45 is offline x10Hosting Member joeyfjj45 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    Re: MediaWiki internal error (Unable to determine IP)

    Quote Originally Posted by misson View Post
    What's the value of $_SERVER['REMOTE_ADDR']? What version of MediaWiki are you using?
    MediaWiki 1.17.0. $_SERVER ['REMOTE_ADDR'] is returning me no value. I think it might be a problem on x10hosting's side.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MediaWiki internal error (Unable to determine IP)

    $_SERVER['REMOTE_ADDR'] definitely shouldn't be empty. How did you test it? Are any of:
    • $_SERVER['HTTP_X_REAL_IP']
    • $_SERVER['X_REAL_IP']
    • $_SERVER['HTTP_X_FORWARDED_FOR']
    • $_SERVER['X_FORWARDED_FOR']
    • $_ENV['REMOTE_ADDR']
    • $_ENV['HTTP_X_REAL_IP']
    • $_ENV['X_REAL_IP']
    • $_ENV['HTTP_X_FORWARDED_FOR']
    • $_ENV['X_FORWARDED_FOR']
    set? If so, a workaround would be to set $_SERVER['REMOTE_ADDR'] from the other variable when $_SERVER['REMOTE_ADDR'] isn't set.
    Last edited by misson; 09-09-2011 at 04:17 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    bmoore68 is offline x10Hosting Member bmoore68 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    8

    Cool Re: MediaWiki internal error (Unable to determine IP)

    I am having the same problem, after installing MediaWiki last week, it worked Tuesday through yesterday, until our office power went off about 3:30 PM (huge San Diego outage). Today all I get is "Internal Error" then updated LocalSettings to ShowExceptionDetails, then I get exactly what the above got. This isn't my first problem here, previous problem was "disk full" with less than 70MB active space, but promptly restored the next day.

    Could yesterday's huge power outage yesterday had anything to do with it? IP servers going offline and back online??

    Anyway I made a workaround so I could keep working, however this is not acceptable for people with public wiki, who won't be able to block offending IP addresses:

    My workaround. I didn't actually put 1.2.3.4 there but probably would work!

    Edit includes/ProxyTools.php, after line 70 "wfGetIP()"
    After "static $ip ..."
    {
    $ip = "1.2.3.4";
    return $ip;
    }

    I would like to delete these four lines again when the problem is fixed

    ---------- Post added at 09:37 PM ---------- Previous post was at 09:14 PM ----------

    Looks like someone else had this same problem recently, three weeks ago on Aug 17.
    Mediawiki - Unable to determine IP

    Does this mean it will fix itself soon?

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MediaWiki internal error (Unable to determine IP)

    Some X10 servers recently switched which web server software they were using from Apache to litespeed. With Apache, there was a reverse proxy running nginx. The word is the litespeed setup doesn't use the nginx proxy and a script required for the proxy was causing problems. Corey has disabled the script, and Joey's site no longer shows the error. The fix should do the same for any other MediaWiki-based sites on Starka.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    joeyfjj45 is offline x10Hosting Member joeyfjj45 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    Re: MediaWiki internal error (Unable to determine IP)

    It's back up and running now. Thanks for your help!

  8. #8
    bmoore68 is offline x10Hosting Member bmoore68 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    8

    Re: MediaWiki internal error (Unable to determine IP)

    I concur. Working the way it was supposed to. Thank you for the rapid service and thorough explanation, much appreciated.
    I hope the glitches will subside, my company needs a reliable host, willing to pay for it, but manager doesn't want to just "throw money" and the problems we've had in just the first week do not seem like the kind money will fix. Hopefully we won't have Disk Full, error unable to contact host, 500 Server Internal, or more php errors in the next week. Looking at Illuminated or Prime.

+ Reply to Thread

Similar Threads

  1. Mediawiki - Unable to determine IP
    By techman224 in forum Free Hosting
    Replies: 4
    Last Post: 08-17-2011, 11:30 PM
  2. Mediawiki - Unable to determine IP
    By techman224 in forum Free Hosting
    Replies: 0
    Last Post: 08-16-2011, 04:37 PM
  3. help please 404 error+unable to determine server
    By bachstrad in forum Free Hosting
    Replies: 1
    Last Post: 11-25-2008, 09:27 PM
  4. Unable to determine my server
    By jfoley in forum Free Hosting
    Replies: 3
    Last Post: 07-28-2008, 12:43 AM
  5. Replies: 2
    Last Post: 02-17-2008, 10:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers