Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jsobell

    (@jsobell)

    It appears

    class IP2LocationCountryBlocker {
    	var $countries = array(

    should be

    class IP2LocationCountryBlocker {
    	static $countries = array(

    and
    517: foreach(IP2LocationCountryBlocker::countries as $countryCode => $countryName) {

    should be
    517: foreach(IP2LocationCountryBlocker::$countries as $countryCode => $countryName) {

    Come on guys, please test the code before you make it live!

    Thread Starter jsobell

    (@jsobell)

    Also, auto-download of database fails:

    if ((isset ($result->errors)) || (! (is_in_array ('200', $result ['response'])))) die('ERROR');

    should be

    if ((isset ($result->errors)) || (! (IP2LocationCountryBlocker::is_in_array ('200', $result ['response'])))) die('ERROR');

    And, it appears the DB1LITEBIN codes don’t work, only DB1LITE (which is CSV).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined constant error when upgrading to 1.9.2’ is closed to new replies.