1. Symfony\Component\Debug\Exception\FatalErrorException
…/­app/­controllers/­BrowseController.php378
0. Illuminate\Exception\Handler handleShutdown
<#unknown>0

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR) Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Call to a member function addQuery() on array" Stacktrace: #1 Symfony\Component\Debug\Exception\FatalErrorException in /home/ubuntu/websites/tasty/websites/tasty.lk/app/controllers/BrowseController.php:378 #0 Illuminate\Exception\Handler:handleShutdown in <#unknown>:0

Call to a member function addQuery() on array

		usort($this->data['available_price_range'], array('Search', 'cmp_val')); //in this case function_name = cmp

		foreach ($facilities as $name => $facility) {
			$filter_link = $this->get_filter_url($name);
			$count = isset($facilities[$name]['count']) ? $facilities[$name]['count'] : 0;

			if ($filter_link['active']) {
				$this->data['restaurants']->addQuery($name, 1);
			}
			$this->data['available_facilities'][] = array('active' => $filter_link['active'], 'name' => $name, 'css' => $filter_link['css'], 'icon' => $facility['icon'], 'url' => $filter_link['url'], 'title' => $facility['title'], 'desc' => $facility['desc'], 'count' => $count);
<#unknown>
Key Value
USER www-data
HOME /var/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /home/ubuntu/websites/tasty/websites/tasty.lk/public/index.php
QUERY_STRING q=/restaurants&halal=1&sort=n&order=d&lat=6.88361&lng=79.862221&page=3
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /restaurants?halal=1&sort=n&order=d&lat=6.88361&lng=79.862221&page=3
DOCUMENT_URI /index.php
DOCUMENT_ROOT /home/ubuntu/websites/tasty/websites/tasty.lk/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.12.2
REMOTE_ADDR 172.70.135.163
REMOTE_PORT 16066
SERVER_ADDR 183.174.12.7
SERVER_PORT 80
SERVER_NAME tasty.saberion.org
REDIRECT_STATUS 200
HTTP_HOST www.tasty.lk
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip, br
HTTP_X_FORWARDED_FOR 3.85.63.190
HTTP_CF_RAY 866b81666fa57ff9-IAD
HTTP_X_FORWARDED_PROTO https
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://www.tasty.lk/restaurants?halal=1&sort=n&order=d&lat=6.88361&lng=79.862221&page=3
HTTP_CF_CONNECTING_IP 3.85.63.190
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710830787.989
REQUEST_TIME 1710830787
Key Value
q /restaurants
halal 1
sort n
order d
lat 6.88361
lng 79.862221
page 3
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler