[User Error] Uncaught InvalidArgumentException: Parameter to ArrayData constructor needs to be an object or associative array

GET /live-sessions/8

Line 36 in /var/www/html/framework/view/ArrayData.php

Source

27 	public function __construct($value) {
28 		if (is_object($value)) {
29 			$this->array = get_object_vars($value);
30 		} elseif (ArrayLib::is_associative($value)) {
31 			$this->array = $value;
32 		} elseif (is_array($value) && count($value) === 0) {
33 			$this->array = array();
34 		} else {
35 			$message = 'Parameter to ArrayData constructor needs to be an object or associative array';
36 			throw new InvalidArgumentException($message);
37 		}
38 		parent::__construct();
39 	}
40 
41 	/**
42 	 * Get the source array

Trace