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

GET /gb/bikes/

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 /gb/bikes/

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

GET /gb/bikes/

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 /gb/bikes/

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

GET /gb/bikes/

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

Electric Bikes for kids - OSET Bikes

The TXP Range

Introducing the TXP Range of OSET Bikes, re-developed from ground up to provide the very best riding experience for Trials, Xploring and Play riding.

View More

TXP-24

The TXP-24 is the ultimate electric Trials bike, built from the ground up to take on any style of riding, in any conditions.

View More

TXP-20

The best just got better - the OSET 20.0R destroyed its Trials competition when it launched and the new TXP-20 looks set to do the same again. More power, more torque, longer runtime - this bike has it all.

View More

16.0R

The OSET 16.0R - The world's best selling kids electric motorcycle

View More

12.5R

The OSET 12.5R - The world's best selling kids electric motorcycle for ages 3 - 5

View More

OSET are world leaders in electric dirt, trials and motocross motorbikes for kids

Kids Dirt Bike | Electric Trial Motorcycle | Beginner Bike | Electric Dirt Bike | Electric Motorcycle

All OSET bikes are sold through our network of official OSET dealers in the UK

Find your local dealer