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

GET /gb/news-and-reports/news/oset-debut-pr1-at-girls-nationals

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/oset-debut-pr1-at-girls-nationals

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

GET /gb/news-and-reports/news/oset-debut-pr1-at-girls-nationals

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/oset-debut-pr1-at-girls-nationals

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

GET /gb/news-and-reports/news/oset-debut-pr1-at-girls-nationals

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 DEBUT PR1 at GIRL’S NATIONALS - OSET Bikes

OSET DEBUT PR1 at GIRL’S NATIONALS

Eleanor Smith, made her debut on the OSET PR-1 at the ACU girl’s nationals in Oxfordshire.  Riding out of class, Eleanor, has taken up the reins where older brother left off with the PR-1 to ride the protoype machine.

Dad and founder of OSET Bikes, Ian said: “We are super proud of Eleanor, she’s had a couple of years of just tinkering around on bikes so to step back into competition is great.  Whilst she rode out of class, she had a great day and is looking forward to the next round. Getting her trials-mojo back on an OSET was lovely to see.”

Meanwhile Summer Brooksbank, stepped up to ride the C-Class on her OSET 20.0 – despite being two years too young for the division!  Dad, Andy Brooksbank, said: “We couldn’t be more proud of Summer!  She gave everything 110% and more to finish fourth in class!” Very impressive!

There were several OSET ‘alumni’ riding, including Sophie Bailey, who stepped off her prototype OSET 24.0 onto petrol and took the top spot in the C-Class convincingly.

Ian added: “As a manufacturer and parent I think there is a real opportunity to run a D-Class at national level for girls.  There are certainly enough riders and bikes out there to make it a competitive class and provide a realistic introduction to what it takes to compete at the highest youth level.”

 

Share: