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

GET /gb/news-and-reports/news/electric-adventures

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/electric-adventures

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

GET /gb/news-and-reports/news/electric-adventures

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/electric-adventures

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

GET /gb/news-and-reports/news/electric-adventures

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

Electric Adventures - OSET Bikes

Electric Adventures

OSET Electric Bikes and Desert Rose Adventures launch a brand new off-road electric motorcycle academy just for children

OSET Electric Bikes and Desert Rose Adventures are delighted to announce the launch of the Desert Rose Juniors OSET Training Academy aimed at providing children with the best possible off-road motorcycle training and coaching for a successful and safe life on two wheels

Initially running out of two beautiful locations in East Sussex, with plans to take it nationwide, training courses will be available from introduction, beginners, intermediate and advanced for children from the age of 5 and upwards. All training will use the world leading children’s electric motorcycles from OSET Bikes - specifically designed to help children learn core bike skills - with full kit and safety equipment provided to all riders. If riders already have a bike, then they will be welcome to bring this along to use.

Patsy Quick, who heads up Desert Rose and is best known as the first British woman to finish the world famous Dakar Rally as well as previously winning the British & European Enduro Championships:

“We are very excited about this new venture as all of us at Desert Rose are passionate about getting children into dirt bike and off-road riding and to give them the core skills they will need to have a fun and successful life on two wheels. To do this we firmly believe in a structured environment with the objective of starting them safe and keeping them safe, whilst they have a great time in the great outdoors!”

Patsy continued;

“All our instructors are fully ACU certified and come with many years of experience in off road riding around the world and delivering this experience as practical, informative and fun training courses designed for little riders.”

Each course last around 2½ hours and will cover everything that a child needs to develop their off-road riding skills from using a twist style throttle for the first time and correct standing and sitting body positions for beginner riders to heavy braking and riding steep and technically difficult climbs at the advanced level.

James Robertson, Head of Marketing for OSET Electric Bikes added,

“We are absolutely thrilled with this partnership and being able to offer kids the chance to not only experience electric motorcycles, some for the very first time, but more importantly getting the right skills and training so they keep their passion for riding throughout their lives.”

The Academy is taking bookings now, just in time for the school holidays and all details, availability and prices are available on the Desert Rose Juniors OSET Training Academy website: https://oset.adventureridingacademy.com/

Share: