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

GET /gb/news-and-reports/news/2015-oset-bikes-for-sale-at-great-prices

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/news-and-reports/news/2015-oset-bikes-for-sale-at-great-prices

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

GET /gb/news-and-reports/news/2015-oset-bikes-for-sale-at-great-prices

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/news-and-reports/news/2015-oset-bikes-for-sale-at-great-prices

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

GET /gb/news-and-reports/news/2015-oset-bikes-for-sale-at-great-prices

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

2015 OSET Bikes for sale at great prices! - OSET Bikes

2015 OSET Bikes for sale at great prices!

 

We are trying to sell the few remaining 2015 bikes to make room for the new 2016 shipment. As a family that have enjoyed one of our free have a go’s, we’d like to offer you the chance to take advantage of this fantastic opportunity to snap up an OSET Bike at a great price! We have just three models left….

For 5 – 7 year olds
· 2015 16 ECO £1099 was £1299 – Bike spec here

image001 1·

2015 16R £1299 was £1499 – Bike spec here

image002 1


For 6 – 8 year olds
· 2015 20 Lite £1499 was £1699 – Bike spec here

image003


Saving a WHOPPING £200 per bike…All you have to do is email Simon Armstrong, our sales manager - simon@osetbikes.co.uk now to get your hands on one of the last few remaining. He’ll be able to direct you to your nearest local dealer who still have one in stock.

And once you get one, there are events happening all over the country where you can go and ride - perfect for absolute beginners to trials riding and a great way to spend the Bank Holiday!

Oset Bikes 20158281 shadow Oset Bikes 20158261 shadowOset Bikes 20158186 shadow

Oh…and if you have a minute check out the video gallery to see the bikes in action!

Share: