[Notice] Trying to access array offset on value of type null

GET /au/where-to-buy/dealers/

Line 240 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

231 	{
232 
233 		$visitor = $_SERVER['REMOTE_ADDR'];
234 
235 			$ipLite = new ip2location_lite;
236 
237 			if (!isset($_COOKIE["geolocation"])) {
238 				$ipLite->setKey('7e6adac1e161b5b5277aa7e960f5b84ab4a979674aa8ca969ce724c2cfdb1916');
239 				$visitorGeolocation = $ipLite->getCountry($visitor);
240 				if ($visitorGeolocation['statusCode'] == 'OK') {
241 					$data = base64_encode(serialize($visitorGeolocation));
242 					setcookie("geolocation", $data, time() + 3600 * 24 * 30); //set cookie for 1 month
243 				}
244 			} else {
245 				$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
246 			}

Trace

GET /au/where-to-buy/dealers/

[Notice] Trying to access array offset on value of type null

GET /au/where-to-buy/dealers/

Line 253 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

244 			} else {
245 				$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
246 			}
247 
248 			//Get errors and locations
249 			$errors = $ipLite->getError();
250 
251 			$locale = substr($this->Locale, -2);
252 
253 			if ((string)$visitorGeolocation['countryCode'] == 'UK') {
254 				(string)$visitorGeolocation['countryCode'] = 'GB';
255 			}
256 
257 			if ((string)$visitorGeolocation['countryCode'] != $locale) {
258 				return true;
259 			} else {

Trace

GET /au/where-to-buy/dealers/

[Notice] Trying to access array offset on value of type null

GET /au/where-to-buy/dealers/

Line 257 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

248 			//Get errors and locations
249 			$errors = $ipLite->getError();
250 
251 			$locale = substr($this->Locale, -2);
252 
253 			if ((string)$visitorGeolocation['countryCode'] == 'UK') {
254 				(string)$visitorGeolocation['countryCode'] = 'GB';
255 			}
256 
257 			if ((string)$visitorGeolocation['countryCode'] != $locale) {
258 				return true;
259 			} else {
260 				return false;
261 			}
262 
263 	}

Trace

Dealers - OSET Bikes AU

Dealers

BECOME AN OSET DEALER

OSET Bikes Australia is always interested in building strong partnerships with new dealers across Australia. If you're interested in becoming an OSET dealer in Australia, pleaseĀ email us.

View on map

Australian Capital Territory

Company Town Zip/Postcode Telephone Email
Joe's Motorcycles Fyshwick 2609 02 6280 6703

NEW SOUTH WALES

Company Town Zip/Postcode Telephone Email
AUS-Emoto / OSET Bikes DownUnder Coniston 2500 0419 634 948
Port Macquarie Motorcycles Port Macquarie 2444 02 6583 6060

QUEENSLAND

Company Town Zip/Postcode Telephone Email
Oliver's Motorcycles Moorooka 4105 07 3193 4444

Victoria

Company Town Zip/Postcode Telephone Email
EcoMoto Melbourne Avondale Heights 3025 0466 748 736

WESTERN AUSTRALIA

Company Town Zip/Postcode Telephone Email
Moto Dynamics Kelmscott 6111 08 6493 6300