Could not determine your IP address on Invision Power Board

If you encounter ”Could not determine your IP address” error message after installing Invision Power Board on your localhost or shared hosting and you don’t know what to do, continue reading.

Open up a file called ipsRegistry.php at *IPB rootdirectory*/admin/sources/base/ipsRegistry.php. Search the error message and you will see the following code

//—————————————–
// Make sure we take a valid IP address
//—————————————–

if ( ( ! self::instance()->ip_address OR self::instance()->ip_address == ’…’ ) AND ! isset( $_SERVER[’SHELL’] ) AND $_SERVER[’SESSIONNAME’] != ’Console’ )
{
print ”Could not determine your IP address”;
exit();
}

Now comment that code out and you will be able to access your new forums.

You might also get this same error when you try to update your IPB forum installation. You can use the same trick and comment out the same code at ipsRegistry_setup.php. The path for this is *IPB rootdirectory*/admin/setup/sources/base/ipsRegistry_setup.php

If this helps, please leave a comment so I know 🙂

Laptop randomly bluescreening

My laptop has been suffering from random BSODs lately and I, as any normal computer user, would want to get them fixed. Windows created dump files from these bluescreens, so I had to use Google to find a program that can open .DMP files. I found this guide and it had a link to .iso image download of Debugging Tools For Windows on Microsoft’s download site. That disk image had a program called WinDbg and I used that to open the DMP files. Both memory dumps had ”VISTA_DRIVER_FAULT” written in them. That pointed me towards drivers that might be either out-dated or corrupt. After this I remembered that i had VLC open when these bluescreens happened. This lead me to believe either my sound or graphics card drivers are bad. I updated ATI drivers and re-installed sound drivers. I’m hoping this solves my problems.

My laptop specs are following:
Windows 7 Professional 64bit SP1
Laptop model: HP Pavilion DV7-3013eo