Unhandled Error!

Array_key_exists() expects parameter 2 to be array, boolean given

Document /modules/cookieagreement/classes/cookieagreement_module.php
Document type PHP document
Line 172
Exception class Phpr_PhpException

Code Highlight

		public static function get_visitor_country()
		{
			$userIp = Phpr::$request->getUserIp();
			if ($userIp == '::1')
				$userIp = '192.168.0.1';
			$info = @unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip='.$userIp));
			if(array_key_exists('geoplugin_countryName', $info) && strlen($info['geoplugin_countryName']))
				return $info['geoplugin_countryName'];
			else return false;
		}
	}
 
?>
# Call Stack Code Document Line
22 array_key_exists('geoplugin_countryName', '') /modules/cookieagreement/classes/cookieagreement_module.php 172
21 CookieAgreement_Module::get_visitor_country(()) /modules/cookieagreement/classes/cookieagreement_module.php 78
20 CookieAgreement_Module::is_cookies_accepted(()) /modules/cookieagreement/classes/cookieagreement_module.php 29
19 CookieAgreement_Module->before_page_display(object(Cms_Page))
18 call_user_func_array(array(2) [0 => object(CookieAgreement_Module), 1 => 'before_page_display'], array(1) [0 => object(Cms_Page)]) /phproad/system/class_functions.php 18
17 callFunction(array(2) [0 => object(CookieAgreement_Module), 1 => 'before_page_display'], array(1) [0 => object(Cms_Page)]) /phproad/modules/phpr/classes/phpr_events.php 77
16 Phpr_Events->fire_event(array(1) [name => 'cms:onBeforeDisplay'], object(Cms_Page))
15 call_user_func_array(array(2) [0 => object(Phpr_Events), 1 => 'fire_event'], array(2) [0 => array(1), 1 => object(Cms_Page)]) /phproad/system/class_functions.php 18
14 callFunction(array(2) [0 => object(Phpr_Events), 1 => 'fire_event'], array(2) [0 => array(1), 1 => object(Cms_Page)]) /phproad/modules/phpr/classes/phpr_events.php 143
13 Phpr_Events->fireEvent('cms:onBeforeDisplay', object(Cms_Page))
12 call_user_func_array(array(2) [0 => object(Phpr_Events), 1 => 'fireEvent'], array(2) [0 => 'cms:onBeforeDisplay', 1 => object(Cms_Page)]) /phproad/modules/phpr/classes/phpr_extensible.php 159
11 Phpr_Extensible->__call('fireEvent', array(2) [0 => 'cms:onBeforeDisplay', 1 => object(Cms_Page)]) /modules/cms/classes/cms_controller.php 182
10 Backend_Events->fireEvent('cms:onBeforeDisplay', object(Cms_Page)) /modules/cms/classes/cms_controller.php 182
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'freemove-freeride']) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/winkel/categorie/freemove-freeride') /phproad/system/phproad.php 31
2 include('/home/zuidwest6/domains/zuidwest6.nl/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/zuidwest6/domains/zuidwest6.nl/public_html/boot.php') /index.php 3