ErrorException (E_NOTICE) Trying to get property 'lang' of non-object Application frames (3) All frames (57) 56 ErrorException …/app/Http/Controllers/PageController.php31 55 Illuminate\Foundation\Bootstrap\HandleExceptions handleError …/app/Http/Controllers/PageController.php31 1 Illuminate\Foundation\Http\Kernel handle …/public/index.php55 /homepages/17/d782222098/htdocs/infosernt/app/Http/Controllers/PageController.php public function index(Request $request, $slug, $subs = null) { $lang=$request->session()->get('lang'); if (!$lang) { $request->session()->put('lang', 'es'); } $selectlang=$request->session()->get('lang'); $page = Page::findBySlug($slug); if($page->lang!=$selectlang){ $l = ($page->lang == "es") ? 'en' : 'es'; $page = Page::where('template', $page->template)->where('lang',$l)->first(); return redirect($page->slug); } if (!$page) { abort(404, 'Please go back to our <a href="'.url('').'">homepage</a>.'); } $template= $page->template; $values=$this->callsetting($template,$slug,$request); $setting=$values['setting']; $menus=$values['menu']; Arguments "Trying to get property 'lang' of non-object" Environment & details: GET Data empty POST Data empty Files empty Cookies PHPSESSID "330c0748929506683e2c89cb5120fb6f" _ga "GA1.2.2062004962.1638276517" _gid "GA1.2.1854340359.1638276517" _gat_gtag_UA_144844796_1 "1" XSRF-TOKEN "eyJpdiI6Ik5VcnZJN0szazJibWtqU0pFU1hvM0E9PSIsInZhbHVlIjoieHlWbWM2ZFpZU3RWSEdHcnhuSHV3Z2V5VzREUFwvTjZtS1F5ZjgyelFCV0FpcThPaU9ubEp6M3oram5BMmRWVlMiLCJtYWMiOiI2MTVl ▶" laravel_session "eyJpdiI6ImEyN0RQQmVHUUxOMGZrcFdSa2o4eFE9PSIsInZhbHVlIjoieTJCdkpJSWtyNGdURkM3c202Y1N1VDkwMUhwa1g1ZGFNV3YwWE9iaGs3MmRZYWNFVmhZblhKZzd2TlJ5ckJlZyIsIm1hYyI6IjQ1ZDE0 ▶" Session pragmarx/phpsession array:1 [▶] Server/Request Data REDIRECT_REDIRECT_UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" REDIRECT_REDIRECT_DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID "14" REDIRECT_REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET "/run/ui-fstatd.suexec.socket" REDIRECT_REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET "/homepages/sclientMF/http.sock.bin" REDIRECT_REDIRECT_HTTPS "on" REDIRECT_REDIRECT_DBENTRY__RSCLVL_CPU "40" REDIRECT_REDIRECT_DBENTRY__RSCLVL_MEM "768" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCSOFT "10" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCHARD "22" REDIRECT_REDIRECT_DBENTRY__RSCLVL_JIMDO "800" REDIRECT_REDIRECT_DBENTRY__RSCLVL_CPU_JIMDO "60" REDIRECT_REDIRECT_DBENTRY__RSCLVL_MEM_JIMDO "768" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCSOFT_JIMDO "24" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCHARD_JIMDO "24" REDIRECT_REDIRECT_DBENTRY_HOST "infosernt.com" REDIRECT_REDIRECT_DBENTRY_VALUE "/kunden/homepages/17/d782222098/htdocs/infosernt:d0000#CPU 6 #MEM 10240 #CGI 524616 #NPROC 12 #TAID 97210236 #LANG 6 #PARKING 1 #RSCLVL 200 #STAT 1 #CHROOT 12" REDIRECT_REDIRECT_DBENTRY_DOCROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_REDIRECT_DBENTRY_HASH "d0000" REDIRECT_REDIRECT_DBENTRY__CPU "6" REDIRECT_REDIRECT_DBENTRY__MEM "10240" REDIRECT_REDIRECT_DBENTRY__CGI "524616" REDIRECT_REDIRECT_DBENTRY__NPROC "12" REDIRECT_REDIRECT_DBENTRY__TAID "97210236" REDIRECT_REDIRECT_DBENTRY__LANG "6" REDIRECT_REDIRECT_DBENTRY__PARKING "1" REDIRECT_REDIRECT_DBENTRY__RSCLVL "200" REDIRECT_REDIRECT_DBENTRY__STAT "1" REDIRECT_REDIRECT_DBENTRY__CHROOT "12" REDIRECT_REDIRECT_DBENTRY "/kunden/homepages/17/d782222098/htdocs/infosernt:d0000#CPU 6 #MEM 10240 #CGI 524616 #NPROC 12 #TAID 97210236 #LANG 6 #PARKING 1 #RSCLVL 200 #STAT 1 #CHROOT 12" REDIRECT_REDIRECT_STATUS "200" REDIRECT_UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" REDIRECT_DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_HTTPS "on" REDIRECT_HANDLER "x-mapp-php5.5" REDIRECT_STATUS "200" UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" HTTPS "on" HTTP_HOST "infosernt.com" 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_SEC_FETCH_SITE "none" HTTP_SEC_FETCH_MODE "navigate" HTTP_SEC_FETCH_USER "?1" HTTP_SEC_FETCH_DEST "document" HTTP_SEC_CH_UA "" Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"" HTTP_SEC_CH_UA_MOBILE "?0" HTTP_SEC_CH_UA_PLATFORM ""Windows"" HTTP_ACCEPT_ENCODING "gzip, deflate, br" HTTP_ACCEPT_LANGUAGE "en-US,en;q=0.9" HTTP_COOKIE "PHPSESSID=330c0748929506683e2c89cb5120fb6f; _ga=GA1.2.2062004962.1638276517; _gid=GA1.2.1854340359.1638276517; _gat_gtag_UA_144844796_1=1; XSRF-TOKEN=eyJpdiI6Ik ▶" PATH "/bin:/usr/bin" SERVER_SIGNATURE "" SERVER_SOFTWARE "Apache" SERVER_NAME "infosernt.com" SERVER_ADDR "82.165.87.26" SERVER_PORT "443" REMOTE_ADDR "2a02:2c40:100:b20b::1:2ad" DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REQUEST_SCHEME "https" CONTEXT_PREFIX "/system-bin/" CONTEXT_DOCUMENT_ROOT "/kunden/usr/lib/cgi-bin/" SERVER_ADMIN "webmaster@infosernt.com" SCRIPT_FILENAME "/kunden/homepages/17/d782222098/htdocs/infosernt/index.php" REMOTE_PORT "37544" REDIRECT_URL "/index.php" GATEWAY_INTERFACE "CGI/1.1" SERVER_PROTOCOL "HTTP/1.1" REQUEST_METHOD "GET" QUERY_STRING "" REQUEST_URI "/facebook.com" SCRIPT_NAME "/index.php" STATUS "200" ORIG_PATH_INFO "/index.php" ORIG_PATH_TRANSLATED "/kunden/homepages/17/d782222098/htdocs/infosernt/index.php" PHP_SELF "/index.php" REQUEST_TIME_FLOAT 1638276539.0522 REQUEST_TIME 1638276539 argv [] argc 0 APP_NAME "Laravel" APP_ENV "local" APP_KEY "base64:JSGVGdJPAnCFaH3eJKmtsSjkS5M+l6uCYv5/RSfyrlM=" APP_DEBUG "true" APP_URL "http://localhost" LOG_CHANNEL "stack" DB_CONNECTION "mysql" DB_HOST "db5000121725.hosting-data.io" DB_PORT "3306" DB_DATABASE "dbs116315" DB_USERNAME "dbu224152" DB_PASSWORD "1Nf0s3r@" 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.websitedemocenter.com" MAIL_PORT "465" MAIL_USERNAME "assytech@websitedemocenter.com" MAIL_PASSWORD "}VFzeHrvrf7g" MAIL_ENCRYPTION "SSL" AWS_ACCESS_KEY_ID "" AWS_SECRET_ACCESS_KEY "" AWS_DEFAULT_REGION "us-east-1" AWS_BUCKET "" PUSHER_APP_ID "" PUSHER_APP_KEY "" PUSHER_APP_SECRET "" PUSHER_APP_CLUSTER "mt1" MIX_PUSHER_APP_KEY "" MIX_PUSHER_APP_CLUSTER "mt1" RECAPTCHA_SITE_KEY "6Ldt6L4UAAAAAOd8iXCwwuvIymsZFp6i2r5_nqWa" RECAPTCHA_SECRET_KEY "6Ldt6L4UAAAAAJz2m0wBFx29Bz30YbYoFApYKDwl" BACKPACK_BASE_VERSION "1.0.0" BACKPACK_CRUD_VERSION "3.5.1" Environment Variables REDIRECT_REDIRECT_UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" REDIRECT_REDIRECT_DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID "14" REDIRECT_REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET "/run/ui-fstatd.suexec.socket" REDIRECT_REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET "/homepages/sclientMF/http.sock.bin" REDIRECT_REDIRECT_HTTPS "on" REDIRECT_REDIRECT_DBENTRY__RSCLVL_CPU "40" REDIRECT_REDIRECT_DBENTRY__RSCLVL_MEM "768" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCSOFT "10" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCHARD "22" REDIRECT_REDIRECT_DBENTRY__RSCLVL_JIMDO "800" REDIRECT_REDIRECT_DBENTRY__RSCLVL_CPU_JIMDO "60" REDIRECT_REDIRECT_DBENTRY__RSCLVL_MEM_JIMDO "768" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCSOFT_JIMDO "24" REDIRECT_REDIRECT_DBENTRY__RSCLVL_PROCHARD_JIMDO "24" REDIRECT_REDIRECT_DBENTRY_HOST "infosernt.com" REDIRECT_REDIRECT_DBENTRY_VALUE "/kunden/homepages/17/d782222098/htdocs/infosernt:d0000#CPU 6 #MEM 10240 #CGI 524616 #NPROC 12 #TAID 97210236 #LANG 6 #PARKING 1 #RSCLVL 200 #STAT 1 #CHROOT 12" REDIRECT_REDIRECT_DBENTRY_DOCROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_REDIRECT_DBENTRY_HASH "d0000" REDIRECT_REDIRECT_DBENTRY__CPU "6" REDIRECT_REDIRECT_DBENTRY__MEM "10240" REDIRECT_REDIRECT_DBENTRY__CGI "524616" REDIRECT_REDIRECT_DBENTRY__NPROC "12" REDIRECT_REDIRECT_DBENTRY__TAID "97210236" REDIRECT_REDIRECT_DBENTRY__LANG "6" REDIRECT_REDIRECT_DBENTRY__PARKING "1" REDIRECT_REDIRECT_DBENTRY__RSCLVL "200" REDIRECT_REDIRECT_DBENTRY__STAT "1" REDIRECT_REDIRECT_DBENTRY__CHROOT "12" REDIRECT_REDIRECT_DBENTRY "/kunden/homepages/17/d782222098/htdocs/infosernt:d0000#CPU 6 #MEM 10240 #CGI 524616 #NPROC 12 #TAID 97210236 #LANG 6 #PARKING 1 #RSCLVL 200 #STAT 1 #CHROOT 12" REDIRECT_REDIRECT_STATUS "200" REDIRECT_UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" REDIRECT_DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REDIRECT_HTTPS "on" REDIRECT_HANDLER "x-mapp-php5.5" REDIRECT_STATUS "200" UNIQUE_ID "YaYduwSmt0BVnjf4gDyRiQAAABE" HTTPS "on" HTTP_HOST "infosernt.com" 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_SEC_FETCH_SITE "none" HTTP_SEC_FETCH_MODE "navigate" HTTP_SEC_FETCH_USER "?1" HTTP_SEC_FETCH_DEST "document" HTTP_SEC_CH_UA "" Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"" HTTP_SEC_CH_UA_MOBILE "?0" HTTP_SEC_CH_UA_PLATFORM ""Windows"" HTTP_ACCEPT_ENCODING "gzip, deflate, br" HTTP_ACCEPT_LANGUAGE "en-US,en;q=0.9" HTTP_COOKIE "PHPSESSID=330c0748929506683e2c89cb5120fb6f; _ga=GA1.2.2062004962.1638276517; _gid=GA1.2.1854340359.1638276517; _gat_gtag_UA_144844796_1=1; XSRF-TOKEN=eyJpdiI6Ik ▶" PATH "/bin:/usr/bin" SERVER_SIGNATURE "" SERVER_SOFTWARE "Apache" SERVER_NAME "infosernt.com" SERVER_ADDR "82.165.87.26" SERVER_PORT "443" REMOTE_ADDR "2a02:2c40:100:b20b::1:2ad" DOCUMENT_ROOT "/kunden/homepages/17/d782222098/htdocs/infosernt" REQUEST_SCHEME "https" CONTEXT_PREFIX "/system-bin/" CONTEXT_DOCUMENT_ROOT "/kunden/usr/lib/cgi-bin/" SERVER_ADMIN "webmaster@infosernt.com" SCRIPT_FILENAME "/kunden/homepages/17/d782222098/htdocs/infosernt/index.php" REMOTE_PORT "37544" REDIRECT_URL "/index.php" GATEWAY_INTERFACE "CGI/1.1" SERVER_PROTOCOL "HTTP/1.1" REQUEST_METHOD "GET" QUERY_STRING "" REQUEST_URI "/facebook.com" SCRIPT_NAME "/index.php" STATUS "200" ORIG_PATH_INFO "/index.php" ORIG_PATH_TRANSLATED "/kunden/homepages/17/d782222098/htdocs/infosernt/index.php" APP_NAME "Laravel" APP_ENV "local" APP_KEY "base64:JSGVGdJPAnCFaH3eJKmtsSjkS5M+l6uCYv5/RSfyrlM=" APP_DEBUG "true" APP_URL "http://localhost" LOG_CHANNEL "stack" DB_CONNECTION "mysql" DB_HOST "db5000121725.hosting-data.io" DB_PORT "3306" DB_DATABASE "dbs116315" DB_USERNAME "dbu224152" DB_PASSWORD "1Nf0s3r@" 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.websitedemocenter.com" MAIL_PORT "465" MAIL_USERNAME "assytech@websitedemocenter.com" MAIL_PASSWORD "}VFzeHrvrf7g" MAIL_ENCRYPTION "SSL" AWS_ACCESS_KEY_ID "" AWS_SECRET_ACCESS_KEY "" AWS_DEFAULT_REGION "us-east-1" AWS_BUCKET "" PUSHER_APP_ID "" PUSHER_APP_KEY "" PUSHER_APP_SECRET "" PUSHER_APP_CLUSTER "mt1" MIX_PUSHER_APP_KEY "" MIX_PUSHER_APP_CLUSTER "mt1" RECAPTCHA_SITE_KEY "6Ldt6L4UAAAAAOd8iXCwwuvIymsZFp6i2r5_nqWa" RECAPTCHA_SECRET_KEY "6Ldt6L4UAAAAAJz2m0wBFx29Bz30YbYoFApYKDwl" Registered Handlers 0. Whoops\Handler\PrettyPageHandler