Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function propertyGalleries() on null Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Call to a member function propertyGalleries() on null" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in /home/www/cpa-realty.com/app/Http/Controllers/FrontEndController.php:42
Application frames (1) All frames (1)
0
Symfony
\
Component
\
Debug
\
Exception
\
FatalThrowableError
/
app
/
Http
/
Controllers
/
FrontEndController.php
42
/
home
/
www
/
cpa-realty.com
/
app
/
Http
/
Controllers
/
FrontEndController.php
class FrontEndController extends Controller
{
    public function index()
    {
        return view('frontend.index');
    }

    public function property($slug)
    {
        return view('frontend.property');
    }

    public function propertyDetail($id)
    {
        DB::table('properties')->where('id', $id)->increment('view_count', 1);
        $name = "";
        $property = Property::find($id);
        $data['property'] = $property;
        $galleries = $property->propertyGalleries()->get();
        $city = $property->city()->get();
        $district = $property->district()->get();
        $commnue = $property->commune()->get();
        return view('frontend.property_detail')->with('property', $property)->with('galleries',$galleries)->with('city',$city)->with('district',$district)->with('commnue',$commnue);
    }

    public function service()
    {
        return view('frontend.service');
    }

    public function news()
    {
        $news = NewsPost::orderBy('id', 'desc')->paginate(5);
        return view('frontend.news')->with('news', $news);
    }

    public function newsDetail($id)
    {
        DB::table('news_posts')->where('id', $id)->increment('views', 1);
Arguments
  1. "Call to a member function propertyGalleries() on null"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/sbin:/usr/sbin:/bin:/usr/bin"
DOCUMENT_ROOT
"/home/www/cpa-realty.com"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"/home/www/cpa-realty.com/index.php"
PHP_VERSION
"72"
PYTHON_VERSION
"35"
CHROOT_HOST
"1"
SB
"0"
PHP_FCGI_MAX_REQUESTS
"500"
PHP_INI_SCAN_DIR
"/home/tmp/php"
HTTP_CONNECTION
"close"
PH3_SCRIPT_FILENAME
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com/index.php"
PH3_SCRIPT_NAME
"/index.php"
PH3_DOCUMENT_ROOT
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
REQUEST_URI
"/property-detail/twitter"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/property-detail/twitter"
REMOTE_PORT
"57214"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
REMOTE_ADDR
"54.205.179.155"
SERVER_PORT
"80"
SERVER_ADDR
"162.210.96.7"
SERVER_NAME
"cpa-realty.com"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
LD_LIBRARY_PATH
"/services/apache/lib/openssl-1.1.1/lib:/services/apache/lib/curl/lib/:/services/apache/lib/"
HTTP_HOST
"cpa-realty.com"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
vhost_ph3_PATH
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
SECURITY
"on"
UID
"170381"
UNIQUE_ID
"ZfkSGyS0ytio1rSEIO-NugAAAeI"
REDIRECT_STATUS
"200"
REDIRECT_vhost_ph3_PATH
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
REDIRECT_DOCUMENT_ROOT
"/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
REDIRECT_SECURITY
"on"
REDIRECT_SB
"0"
REDIRECT_CHROOT_HOST
"1"
REDIRECT_PYTHON_VERSION
"35"
REDIRECT_PHP_VERSION
"72"
REDIRECT_UID
"170381"
REDIRECT_UNIQUE_ID
"ZfkSGyS0ytio1rSEIO-NugAAAeI"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710821915.1753
REQUEST_TIME
1710821915
empty
0. Whoops\Handler\PrettyPageHandler