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

GET /index.php/gb/news-and-reports/oset-cup-reports-and-results/?start=60

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 /index.php/gb/news-and-reports/oset-cup-reports-and-results/?start=60

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

GET /index.php/gb/news-and-reports/oset-cup-reports-and-results/?start=60

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 /index.php/gb/news-and-reports/oset-cup-reports-and-results/?start=60

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

GET /index.php/gb/news-and-reports/oset-cup-reports-and-results/?start=60

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.

OSET CUP CORNWALL ROUND 6

The Camborne and Redruth Club held Round 6 of the Cornwall Oset Cup at The United Downs Raceway, near St Day on Saturday 25th September. Initial mist quickly cleared and 32 riders faced 8 sections over three laps in dry conditions.

OSET CUP SOUTH WITH KYTC

KYTC Oset Cup Championship Round 5 – Tricks in the Sticks

OSET CUP MIDLANDS AND MINI CHAMPS

Berkhamsted MC & CC OSET CUP SOUTH MIDLANDS

At the Berkhamsted MC & CC South Midland OSET Cup (11/9/21) we welcomed 7 new youth riders to their first trial and 22 youth overall! Wow what a day we all had!!We were blessed with the weather & everybody was fed & watered (on the club) and awards were presented...

OSET CUP NORTH ROUND 4

OSET ROCK “THE ROCK STORE”

CORNWALL OSET CUP ROUND 5

Zander Trewin our cover star !!!

OSET CUP NORTH ROUND 3

OSET CUP ROUND 3 Ghyll Farm.Sun Shines on OSET CUP ROUND 3