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

GET /gb/news-and-reports/news/?start=36

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/?start=36

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

GET /gb/news-and-reports/news/?start=36

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/?start=36

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

GET /gb/news-and-reports/news/?start=36

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

OSET Latest News - OSET Bikes

OSET Latest News

Grab all the latest OSET related news from here!

OSET MX-10 – MiniBike Supercross Champions!

The Dirt Bike Show has played host to the MiniBikeChamps mini supercross races for several years, which has proved to be one of the big attractions at the event. As anyone who has ventured out to the indoor race area has seen, the MiniBikeChamps organisation put on a top-level event...

OSET Cup Cheshire - Round 5 Report

Round 5 of the 2019, 2 Machs Motorcycles, Cheshire, Oset Cup returned to one of it’s best venues on October 21st. Nant Ucha farm, based in Trevor nr Llangollen hosted the championship for the second time this season.

OSET CUP NORTH ROUND 4

Next Round Saturday 18th August but please watch out for a change of venue as the land we had booked is now no longer available. Attached below are the standings as of last Sunday and the round results in PDF format.

MIRACLES DO HAPPEN!

A sunny bank holiday northern OSET Cup! Who knew bank holidays could have sunshine?

DOUBLE HEADER FOR LUKAS

Doncaster’s 8 year old, Lukas Butcher completed a first for youth riding and OSET Bike this weekend.

OSET BIKES LAUNCHES UK’S FIRST MOTOCROSS ACADEMIES FOR 4-6 YEAR OLDS

Eight years ago, OSET Bikes successful lowered the age children could compete on trials bikes. Now, the child-friendly company has done it again for motocross riders.

Podium Needs an Extension

Westwood, nr Sheffield hosted the first OSET Cup North round last weekend with nearly 30 riders enjoying a great day.

It’s Anyone’s Game

As the British Youth ACU National’s kicked off in the Isle of Man last week, the two-day event proved this season, the championship is there for the taking in many of the classes!

The silent revolution just went off road

Not so long ago, the starting point for off road and trial’s riding was dominated by the petrol-powered 50s…that was the bike that all kids started on and there weren’t any real alternatives. Then in 2007 OSET Bikes came along with its electric-powered machines and within five years, OSET Bikes...

Jonnie Fannon Finds Proper Pal in Guy Martin

They say never meet your heroes. Unless that hero is tea drinking motorbike racer Guy Martin! For 9 year old , Silsden Primary School pupil Jonnie Fannon, couldn’t believe it when Guy offered to support him during his 2018 trials season.

SUN’S OUT – OSETS OUT!

With just two rounds left of the Cornwall OSET Winter Championship, nearly 40 riders welcomed the sunshine at the fourth round held at Burthy Row Farm near Fraddon.

Wet Wet Wet in Cornwall

This coming Saturday 17th February sees fourth round of the Cornwall OSET Cup at Burthy Row, Fraddon (post code TR8 5BP for the satnav).