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

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Call to a member function getFirstPhoto() on null" Stacktrace: #1 Symfony\Component\Debug\Exception\FatalErrorException in /srv/healthstart/app/controllers/PageController.php:186 #0 Illuminate\Exception\Handler:handleShutdown in <#unknown>:0

Call to a member function getFirstPhoto() on null

			'photos'	=> function($query){
				$query->orderBy('order_item', 'DESC');
			}
		])
		->get();
                return View::make('partials.popup_project')->with([
                    'project' => $project->first(),
                    'photo'=>$project->first()->getFirstPhoto(),
                    'activeProjects' => $activeProjects
                    ]);
<#unknown>
empty
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URL /healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
REDIRECT_SCRIPT_URI http://www.madrimasd.org/healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
REDIRECT_STATUS 200
HTTPS on
SCRIPT_URL /healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
SCRIPT_URI http://www.madrimasd.org/healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
HTTP_X_FORWARDED_HOST www.madrimasd.org
HTTP_X_FORWARDED_SERVER www.madrimasd.org
HTTP_X_FORWARDED_FOR 35.172.110.179, 193.145.15.45
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_X_REAL_IP 193.145.15.45
HTTP_HOST www.madrimasd.org
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://www.madrimasd.org/healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.52 (Ubuntu)
SERVER_NAME www.madrimasd.org
SERVER_ADDR 10.10.2.108
SERVER_PORT 80
REMOTE_ADDR 10.10.2.103
DOCUMENT_ROOT /srv/healthstart/public
REQUEST_SCHEME http
CONTEXT_PREFIX /healthstart
CONTEXT_DOCUMENT_ROOT /srv/healthstart/public
SERVER_ADMIN webmaster@madrimasd.org
SCRIPT_FILENAME /srv/healthstart/public/index.php
REMOTE_PORT 43932
REDIRECT_URL /healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /healthstart/project/diseno-de-peptidos-orales-para-potenciar-terapias-de-cancer
SCRIPT_NAME /healthstart/index.php
PHP_SELF /healthstart/index.php
REQUEST_TIME_FLOAT 1711724413.402
REQUEST_TIME 1711724413
empty
0. Whoops\Handler\PrettyPageHandler