Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Trying to get property 'image' of non-object (View: /chroot/home/a950a9a1/morrislubricantscdn.co.uk/html/products/resources/views/public/product.blade.php) Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Trying to get property 'image' of non-object (View: /chroot/home/a950a9a1/morrislubricantscdn.co.uk/html/products/resources/views/public/product.blade.php)" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalErrorException in /chroot/home/a950a9a1/morrislubricantscdn.co.uk/html/products/app/Http/Controllers/PublicController.php:225
0
Symfony\Component\Debug\Exception\FatalErrorException
/app/Http/Controllers/PublicController.php225
/chroot/home/a950a9a1/morrislubricantscdn.co.uk/html/products/app/Http/Controllers/PublicController.php
        $html = str_replace(
            '<li class="active">internalpage</li>','<li>Search Results</li>',$html
        );
        $html = str_replace(
            '<title>internalpage :: Morris Lubricants</title>','<title>Search Results -  Morris Lubricants</title>',$html
        );
 
 
 
        return $html;
    }
    public function viewProduct($tag,$subcat,$productname){
 
        $config = $this->getConfig();
 
        $config['category'] = Category::whereSlug('/products/' . $tag . '/' . $subcat . '.html')->first();
        $config['pcategory'] = Category::find($config['category']->parent_id);
        $config['product'] = Product::whereSlug($productname . '.html')->first();
        $html = $config['basehtml'];
        $html = str_replace('-CONTENT-',view('public.product')->with($config),$html);
        $html = str_replace(
            '<div class="page-title-name">
                        <h1>internalpage</h1>
                    </div>','<div class="page-title-name"><h1>' . $config['product']->name . ' ' . $config['category']->name . ' ' . $config['pcategory']->name .  '</h1></div>',$html
        );
        $html = str_replace(
            '<li class="active">internalpage</li>','<li>Sectors</li><li>' . $config['pcategory']->name . ' Oils and Lubricants</li><li>' . $config['category']->name . '</li><li class="active">' . $config['product']->name . '</li>',$html
        );
        $html = str_replace(
            '<title>internalpage :: Morris Lubricants</title>','<title>' . $config['product']->name . ' ' . $config['category']->name . ' ' . $config['pcategory']->name . ' -  Morris Lubricants</title>',$html
        );
 
 
 
        return $html;
    }
 
    public function xmlapi(){
 
        $config = $this->getConfig();
Arguments
  1. "Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Trying to get property 'image' of non-object (View: /chroot/home/a950a9a1/morrislubricantscdn.co.uk/html/products/resources/views/public/product.blade.php)"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"a950a9a1"
HOME
"/home/a950a9a1"
ORIG_SCRIPT_NAME
"/php.fcgi"
ORIG_PATH_TRANSLATED
"/home/a950a9a1/morrislubricants.co.uk/html/products/index.php"
ORIG_PATH_INFO
"/products/index.php"
ORIG_SCRIPT_FILENAME
"/var/run/a950a9a1-remi-safe-php72.fcgi"
SCRIPT_NAME
"/products/index.php"
REQUEST_URI
"/products/hort/hygiene-cleaning/presto-super-cleaner.html"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/products/index.php"
REMOTE_PORT
"33283"
SCRIPT_FILENAME
"/home/a950a9a1/morrislubricants.co.uk/html/products/index.php"
SERVER_ADMIN
"webmaster@morrislubricants.co.uk"
CONTEXT_DOCUMENT_ROOT
"/var/run/a950a9a1-remi-safe-php72.fcgi"
CONTEXT_PREFIX
"/php.fcgi"
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/a950a9a1/morrislubricants.co.uk/html"
REMOTE_ADDR
"3.90.242.249"
SERVER_PORT
"80"
SERVER_ADDR
"10.64.96.7"
SERVER_NAME
"www.morrislubricants.co.uk"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_X_REQUEST_ID
"c2bad4bcd572b9e991b681e4d48086d5"
HTTP_X_ORIGINAL_REQUEST
"/products/hort/hygiene-cleaning/presto-super-cleaner.html"
HTTP_X_FORWARDED_SERVER
"www.morrislubricants.co.uk"
HTTP_X_FORWARDED_HOST
"www.morrislubricants.co.uk"
HTTP_X_CONNECTING_IP
"3.90.242.249"
HTTP_X_REAL_IP
"3.90.242.249"
HTTP_HOST
"www.morrislubricants.co.uk"
HTTP_X_FORWARDED_PROTO
"https"
SCRIPT_URI
"http://www.morrislubricants.co.uk/products/hort/hygiene-cleaning/presto-super-cleaner.html"
SCRIPT_URL
"/products/hort/hygiene-cleaning/presto-super-cleaner.html"
HTTPS
"on"
CITY_DB_NETWORK
"3.90.192.0/18"
GEOIP_LATITUDE
"39.04690"
GEOIP_LONGITUDE
"-77.49030"
GEOIP_CITY_NAME
"Ashburn"
GEOIP_ASN
"14618"
GEOIP_ASORG
"AMAZON-AES"
MMDB_INFO
"result found"
MMDB_ADDR
"3.90.242.249"
QS_ConnectionId
"17116410396643275839851"
QS_AllConn
"8"
QS_SrvConn
"8"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
GEOIP_CONTINENT_CODE
"NA"
GEOIP_ADDR
"3.90.242.249"
UNIQUE_ID
"ZgWRz5unc7UlcRvzvAB9xwAAADo"
REDIRECT_STATUS
"200"
REDIRECT_HANDLER
"php.fcgi"
REDIRECT_SCRIPT_URI
"http://www.morrislubricants.co.uk/products/hort/hygiene-cleaning/presto-super-cleaner.html"
REDIRECT_SCRIPT_URL
"/products/hort/hygiene-cleaning/presto-super-cleaner.html"
REDIRECT_HTTPS
"on"
REDIRECT_CITY_DB_NETWORK
"3.90.192.0/18"
REDIRECT_GEOIP_LATITUDE
"39.04690"
REDIRECT_GEOIP_LONGITUDE
"-77.49030"
REDIRECT_GEOIP_CITY_NAME
"Ashburn"
REDIRECT_GEOIP_ASN
"14618"
REDIRECT_GEOIP_ASORG
"AMAZON-AES"
REDIRECT_MMDB_INFO
"result found"
REDIRECT_MMDB_ADDR
"3.90.242.249"
REDIRECT_QS_ConnectionId
"17116410396643275839851"
REDIRECT_QS_AllConn
"8"
REDIRECT_QS_SrvConn
"8"
REDIRECT_GEOIP_COUNTRY_NAME
"United States"
REDIRECT_GEOIP_COUNTRY_CODE
"US"
REDIRECT_GEOIP_CONTINENT_CODE
"NA"
REDIRECT_GEOIP_ADDR
"3.90.242.249"
REDIRECT_UNIQUE_ID
"ZgWRz5unc7UlcRvzvAB9xwAAADo"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_SCRIPT_URI
"http://www.morrislubricants.co.uk/products/hort/hygiene-cleaning/presto-super-cleaner.html"
REDIRECT_REDIRECT_SCRIPT_URL
"/products/hort/hygiene-cleaning/presto-super-cleaner.html"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_CITY_DB_NETWORK
"3.90.192.0/18"
REDIRECT_REDIRECT_GEOIP_LATITUDE
"39.04690"
REDIRECT_REDIRECT_GEOIP_LONGITUDE
"-77.49030"
REDIRECT_REDIRECT_GEOIP_CITY_NAME
"Ashburn"
REDIRECT_REDIRECT_GEOIP_ASN
"14618"
REDIRECT_REDIRECT_GEOIP_ASORG
"AMAZON-AES"
REDIRECT_REDIRECT_MMDB_INFO
"result found"
REDIRECT_REDIRECT_MMDB_ADDR
"3.90.242.249"
REDIRECT_REDIRECT_QS_ConnectionId
"17116410396643275839851"
REDIRECT_REDIRECT_QS_AllConn
"8"
REDIRECT_REDIRECT_QS_SrvConn
"8"
REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME
"United States"
REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE
"US"
REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE
"NA"
REDIRECT_REDIRECT_GEOIP_ADDR
"3.90.242.249"
REDIRECT_REDIRECT_UNIQUE_ID
"ZgWRz5unc7UlcRvzvAB9xwAAADo"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/products/index.php"
REQUEST_TIME_FLOAT
1711641039.6724
REQUEST_TIME
1711641039
empty
0. Whoops\Handler\PrettyPageHandler