Whoops! There was an error.
0.
…/­pages/­page.php28

Whoops \ Exception \ ErrorException (E_NOTICE)

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
Whoops\Exception\ErrorException thrown with message "Trying to get property of non-object" Stacktrace: #0 in /home/reenain/domains/mukeshdak.com/pages/page.php:28

Trying to get property of non-object

/home/reenain/domains/mukeshdak.com/pages/page.php
 
if (empty($_GET['slug'])) die("Invalid redirect without pid");
	//redirect_to(App::url() );
 
//$page = DB::table('pages')->where('id', $_GET['pid'])->orWhere('id', $_GET['pid'])->first();
$page = DB::table('pages')->where('slug', $_GET['slug'])->first();
 
if( ($page->permission == "PRI") && !$can_edit_pages )
{
	die("<p>Login with Admin previleges is requred to access this page.</p>");
Key Value
slug linkedin
empty
empty
empty
Key Value
_token 21fb2c1fe4d5fd149ea6bc0d11e3b922
Key Value
PATH /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV production
HTTP_CONNECTION close
SCRIPT_NAME /pages/page.php
REQUEST_URI /linkedin
QUERY_STRING slug=linkedin
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /linkedin
REDIRECT_QUERY_STRING slug=linkedin
REMOTE_PORT 36458
SCRIPT_FILENAME /home/reenain/domains/mukeshdak.com/pages/page.php
SERVER_ADMIN webmaster@mukeshdak.com
DOCUMENT_ROOT /home/reenain/domains/mukeshdak.com
REMOTE_ADDR 54.156.54.104
SERVER_PORT 80
SERVER_ADDR 75.119.200.79
SERVER_NAME mukeshdak.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST mukeshdak.com
DH_USER reenain
ds_id_19103570
dsid 19103570
SCRIPT_URI http://mukeshdak.com/linkedin
SCRIPT_URL /linkedin
UNIQUE_ID WZ5dT0t3yA0AAFkGa2EAAAAE
REDIRECT_STATUS 200
REDIRECT_DH_USER reenain
REDIRECT_ds_id_19103570
REDIRECT_dsid 19103570
REDIRECT_SCRIPT_URI http://mukeshdak.com/linkedin
REDIRECT_SCRIPT_URL /linkedin
REDIRECT_UNIQUE_ID WZ5dT0t3yA0AAFkGa2EAAAAE
FCGI_ROLE RESPONDER
PHP_SELF /pages/page.php
REQUEST_TIME_FLOAT 1503550799.4666
REQUEST_TIME 1503550799
Key Value
PATH /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV production
HTTP_CONNECTION close
SCRIPT_NAME /pages/page.php
REQUEST_URI /linkedin
QUERY_STRING slug=linkedin
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /linkedin
REDIRECT_QUERY_STRING slug=linkedin
REMOTE_PORT 36458
SCRIPT_FILENAME /home/reenain/domains/mukeshdak.com/pages/page.php
SERVER_ADMIN webmaster@mukeshdak.com
DOCUMENT_ROOT /home/reenain/domains/mukeshdak.com
REMOTE_ADDR 54.156.54.104
SERVER_PORT 80
SERVER_ADDR 75.119.200.79
SERVER_NAME mukeshdak.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST mukeshdak.com
DH_USER reenain
ds_id_19103570
dsid 19103570
SCRIPT_URI http://mukeshdak.com/linkedin
SCRIPT_URL /linkedin
UNIQUE_ID WZ5dT0t3yA0AAFkGa2EAAAAE
REDIRECT_STATUS 200
REDIRECT_DH_USER reenain
REDIRECT_ds_id_19103570
REDIRECT_dsid 19103570
REDIRECT_SCRIPT_URI http://mukeshdak.com/linkedin
REDIRECT_SCRIPT_URL /linkedin
REDIRECT_UNIQUE_ID WZ5dT0t3yA0AAFkGa2EAAAAE
FCGI_ROLE RESPONDER
PHP_SELF /pages/page.php
REQUEST_TIME_FLOAT 1503550799.4666
REQUEST_TIME 1503550799
0. Whoops\Handler\PrettyPageHandler