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

GET /gb/news-and-reports/oset-cup-reports-and-results/?start=12

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/oset-cup-reports-and-results/?start=12

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

GET /gb/news-and-reports/oset-cup-reports-and-results/?start=12

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/oset-cup-reports-and-results/?start=12

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

GET /gb/news-and-reports/oset-cup-reports-and-results/?start=12

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 Cup Reports - OSET Bikes

OSET Cup Reports

Here you will find all of the OSET Cup reports and results.

SLIPPY IN FRADDON

COVER STAR KYLE BATEMAN

DYTC AT HOBS HOLE

OSET CUP CORNWALL ROUND 6

Cornwall OSET Cup 2022 Round 6 Final Round

DYTC TAKE WINTER HEAD ON

Round 1 Winter Series ReportD.Y.T.C / MK Off Road Round 1 Winter Series 22/23OSET Cup West Midlands/West Mids Youth Trials Champs06.11.22 – Seymour’s Arena, OxfordshireHuge thankyou to our observers who stood out and braved the wet weather for us!And also, a big thankyou to North...

ALL THE RIDERS WERE ON PAR AT COLWITH FARM

OUR COVER STAR THIS TIME IS NEWCOMER BRODY VINNICOMBE!!!!

WE ARE THE CHAMPIONS !!!!!!

Well, what a year it has been. Seven fantastic rounds at 6 iconic venues across the North of England. Higher entries than any year so far with a total of 72 different riders over the year.

OSET RIDERS UNITED AT DOWNS RACEWAY

OSET'S, ROCK'S AND SPEEDWAY

OSET CUP NORTH ROUND 6 WITH SCUNTHORPE CLUB AT THE ROCKSTORE.

NO BROKEN HEARTS AT BREAKHEART

BURTHY ROW ATTRACTS NEW RIDERS

OUR COVER STAR OLIVIA McCOAN

BURN E SIDE LIVES UP TO ITS NAME

ROUND 5 OSET CUP NORTH at GHYLL FARM BURNESIDE

FULL STEAM AHEAD FOR OSET CORNWALL

Report for OSET : Cornwall Arena Trial