ErrorException (E_NOTICE) Trying to get property of non-object COPY Application frames (4) All frames (57) 56 ErrorException …/app/Http/Controllers/Frontend/PagesController.php332 55 Illuminate\Foundation\Bootstrap\HandleExceptions handleError …/app/Http/Controllers/Frontend/PagesController.php332 54 App\Http\Controllers\Frontend\PagesController news_detail …/app/Http/Controllers/Frontend/PagesController.php104 46 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …/app/Http/Middleware/LangCheck.php29 /home/cokyasarcom/laravel/app/Http/Controllers/Frontend/PagesController.php $br = 'title_'.$lang; $sl = 'slug_'.$lang; $mt = 'meta_title_'.$lang; $mk = 'meta_keys_'.$lang; $md = 'meta_desc_'.$lang; $data['bread'] = $news->$br; $data['slug'] = $news->$sl; $data['meta_title'] = $news->$mt; $data['meta_keys'] = $news->$mk; $data['meta_desc'] = $news->$md; $data['bread3'] = $page->$br; $data['slug3'] = $page->$sl; $data['banner'] = $page->banner; $a['viewer'] = $news->viewer + 1; News::where("id",$news->id)->update($a); $data['page'] = $page; $data['news'] = News::where("id",$news->id)->first(); return view('frontend.pages.news_detail',$data); } Arguments "Trying to get property of non-object" Environment & details: GET Data empty POST Data empty Files empty Cookies PHPSESSID "e3232bce9ea44537268feffaa5688c92" _ga "GA1.3.1822775200.1637687544" _gid "GA1.3.2077419573.1637687544" _gat_gtag_UA_157797942_1 "1" XSRF-TOKEN "eyJpdiI6IkRKUmVcL2dUdlBWSUV5XC9icXpmdGNnUT09IiwidmFsdWUiOiJhQ0VYVmxBaVV6Y3RoSTRHTFhNT2s2ZHlYVmZcL3ErcTBzR2N6V1RTNnlWaVwvdVJEY2NzcGxlaWZSejcxNFk3YlIiLCJtYWMiOiI2 ▶" cokyasar_session "eyJpdiI6IkdJdU9HWVQ1Z3NUZGtwUzhab2VzSHc9PSIsInZhbHVlIjoiNHg4SzJxNHlaTFJyenBnTnIyTWt0bTNZaTF2NEI5Mm5XMFFicm8yOWhvQ0hKb3psanBkNTdQWnRYbzJxSlRkRSIsIm1hYyI6ImJmMzg2 ▶" Session lang_short "ar" lang_id 4 Server/Request Data PATH "/usr/local/bin:/usr/bin:/bin" TZ "Europe/Istanbul" REDIRECT_HANDLER "application/x-httpd-ea-php71" REDIRECT_STATUS "200" UNIQUE_ID "YZ0hLLelfrDaLKNBFgQ9wgAAAAQ" SCRIPT_URL "/news/wire-and-tube-2020s-new-date-announced" SCRIPT_URI "http://www.cokyasar.com.tr/news/wire-and-tube-2020s-new-date-announced" HTTP_HOST "www.cokyasar.com.tr" HTTP_CONNECTION "keep-alive" HTTP_UPGRADE_INSECURE_REQUESTS "1" HTTP_USER_AGENT "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" HTTP_ACCEPT "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" HTTP_ACCEPT_ENCODING "gzip, deflate" HTTP_ACCEPT_LANGUAGE "en-US,en;q=0.9" HTTP_COOKIE "PHPSESSID=e3232bce9ea44537268feffaa5688c92; _ga=GA1.3.1822775200.1637687544; _gid=GA1.3.2077419573.1637687544; _gat_gtag_UA_157797942_1=1; XSRF-TOKEN=eyJpdiI6Ik ▶" SERVER_SIGNATURE "" SERVER_SOFTWARE "Apache" SERVER_NAME "www.cokyasar.com.tr" SERVER_ADDR "213.128.67.134" SERVER_PORT "80" REMOTE_ADDR "134.58.253.56" DOCUMENT_ROOT "/home/cokyasarcom/public_html" REQUEST_SCHEME "http" CONTEXT_PREFIX "/cgi-sys" CONTEXT_DOCUMENT_ROOT "/usr/local/cpanel/cgi-sys/" SERVER_ADMIN "webmaster@cokyasar.com.tr" SCRIPT_FILENAME "/home/cokyasarcom/public_html/index.php" REMOTE_PORT "51568" REDIRECT_URL "/index.php" GATEWAY_INTERFACE "CGI/1.1" SERVER_PROTOCOL "HTTP/1.1" REQUEST_METHOD "GET" QUERY_STRING "" REQUEST_URI "/news/wire-and-tube-2020s-new-date-announced" SCRIPT_NAME "/index.php" ORIG_SCRIPT_FILENAME "/usr/local/cpanel/cgi-sys/ea-php71" ORIG_PATH_INFO "/index.php" ORIG_PATH_TRANSLATED "/home/cokyasarcom/public_html/index.php" ORIG_SCRIPT_NAME "/cgi-sys/ea-php71" PHP_SELF "/index.php" REQUEST_TIME_FLOAT 1637687597.0041 REQUEST_TIME 1637687597 argv [] argc 0 APP_NAME "Cokyasar" APP_ENV "local" APP_KEY "base64:C94D3plXGoKHYrV9ICapM+swd/hOBP7gPz/2P0bl6Wo=" APP_DEBUG "true" APP_URL "https://www.cokyasar.com.tr/" LOG_CHANNEL "stack" DB_CONNECTION "mysql" DB_HOST "localhost" DB_PORT "3306" DB_DATABASE "taximpro_c0ky4s4r" DB_USERNAME "taximpro_bayi" DB_PASSWORD "cgxS6d5Lx*" BROADCAST_DRIVER "log" CACHE_DRIVER "file" QUEUE_CONNECTION "sync" SESSION_DRIVER "file" SESSION_LIFETIME "120" REDIS_HOST "127.0.0.1" REDIS_PASSWORD "null" REDIS_PORT "6379" MAIL_DRIVER "smtp" MAIL_HOST "mail.bay-i.com" MAIL_PORT "587" MAIL_USERNAME "test@bay-i.com" MAIL_PASSWORD "test.123!" MAIL_ENCRYPTION "tls" Environment Variables APP_NAME "Cokyasar" APP_ENV "local" APP_KEY "base64:C94D3plXGoKHYrV9ICapM+swd/hOBP7gPz/2P0bl6Wo=" APP_DEBUG "true" APP_URL "https://www.cokyasar.com.tr/" LOG_CHANNEL "stack" DB_CONNECTION "mysql" DB_HOST "localhost" DB_PORT "3306" DB_DATABASE "taximpro_c0ky4s4r" DB_USERNAME "taximpro_bayi" DB_PASSWORD "cgxS6d5Lx*" BROADCAST_DRIVER "log" CACHE_DRIVER "file" QUEUE_CONNECTION "sync" SESSION_DRIVER "file" SESSION_LIFETIME "120" REDIS_HOST "127.0.0.1" REDIS_PASSWORD "null" REDIS_PORT "6379" MAIL_DRIVER "smtp" MAIL_HOST "mail.bay-i.com" MAIL_PORT "587" MAIL_USERNAME "test@bay-i.com" MAIL_PASSWORD "test.123!" MAIL_ENCRYPTION "tls" Registered Handlers 0. Whoops\Handler\PrettyPageHandler