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

GET /ca/

Line 196 in /home/osetbike/public_html/mysite/code/Site/ElementalPage.php

Source

187 	{
188 
189 		$visitor = $_SERVER['REMOTE_ADDR'];
190 
191 		$ipLite = new ip2location_lite;
192 
193 		if (!isset($_COOKIE["geolocation"])) {
194 			$ipLite->setKey('7e6adac1e161b5b5277aa7e960f5b84ab4a979674aa8ca969ce724c2cfdb1916');
195 			$visitorGeolocation = $ipLite->getCountry($visitor);
196 			if ($visitorGeolocation['statusCode'] == 'OK') {
197 				$data = base64_encode(serialize($visitorGeolocation));
198 				setcookie("geolocation", $data, time() + 3600 * 24 * 30); //set cookie for 1 month
199 			}
200 		} else {
201 			$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
202 		}

Trace

GET /ca/

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

GET /ca/

Line 209 in /home/osetbike/public_html/mysite/code/Site/ElementalPage.php

Source

200 		} else {
201 			$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
202 		}
203 
204 		//Get errors and locations
205 		$errors = $ipLite->getError();
206 
207 		$locale = substr($this->Locale, -2);
208 
209 		if ((string)$visitorGeolocation['countryCode'] == 'UK') {
210 			(string)$visitorGeolocation['countryCode'] = 'GB';
211 		}
212 
213 		if ((string)$visitorGeolocation['countryCode'] != $locale) {
214 			return true;
215 		} else {

Trace

GET /ca/

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

GET /ca/

Line 213 in /home/osetbike/public_html/mysite/code/Site/ElementalPage.php

Source

204 		//Get errors and locations
205 		$errors = $ipLite->getError();
206 
207 		$locale = substr($this->Locale, -2);
208 
209 		if ((string)$visitorGeolocation['countryCode'] == 'UK') {
210 			(string)$visitorGeolocation['countryCode'] = 'GB';
211 		}
212 
213 		if ((string)$visitorGeolocation['countryCode'] != $locale) {
214 			return true;
215 		} else {
216 			return false;
217 		}
218 
219 	}

Trace

home - OSET ELECTRIC BIKES | Electric off road motorcycles for children age 3 -15 | Kids Electric Motorcycles

Passionate about bikes?

If you're as mad about riding as we are - then sharing that excitement with your kids is an incredible opportunity. But introducing them to the world of motorcycling can come with its challenges. 

That's why Bike World have put together some tips to help guide your little ones away from the PlayStation and onto the throttle, ensuring they discover the joy of riding responsibly.


View Here

 OSET Electric Dirt Bikes

Off Road Electric Motorbikes for Kids - Discover the thrill of OSET Electric Dirt Bikes – where adventure meets innovation!

Catering to young riders from age 3 and up, OSET is renowned worldwide for crafting top-of-the-line electric trials, off-road, and motocross motorcycles. Our electric bikes redefine the riding experience, offering safety, sustainability, and sheer excitement.

Gone are the days of noisy engines and petrol fumes. OSET bikes are eco-friendly and virtually silent, allowing riders to explore places traditional bikes cannot reach. Whether it's mastering riding skills or conquering competitions, our electric motorcycles are the ultimate choice.

Backed by numerous youth championships worldwide, OSET bikes are engineered to the highest standards, ensuring both performance and safety. From backyard adventures to professional trials, our bikes inspire young adventurers to embrace eco-friendly exploration while honing their riding skills.

Join us in shaping the next generation of riders and fueling their passion for adventure with our exhilarating children's electric bikes.

Join The Family - Stay Up To Date