Unknown: Automatic conversion of false to array is deprecated in /home/ubuntu/public_html/shop/catalog/controller/startup/startup.php on line 95

Error in opencart after upgrade php 8.2

Add this line :

if(!is_array($this->session->data)){ $this->session->data = []; }


if (!isset($this->session->data['language']) || $this->session->data['language'] != $code) {	
			$this->session->data['language'] = $code;

Contact for Website Development, Ecommerce Website, Website Management, SEO, Digital Marketing Services, Server (AWS, Google, Godaddy, DigitalOcean etc) Management, Online Class, Web Development. Email : adityaypi@yahoo.com, Mobile : +91-9555699081

Leave a Reply