My Quote

×


Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Trying to get property 'ID' of non-object Whoops\Exception\ErrorException thrown with message "Trying to get property 'ID' of non-object" Stacktrace: #5 Whoops\Exception\ErrorException in /var/www/vhosts/rowse.co.uk/htdocs/application/view/manufacturers/myQuote.php:14 #4 Whoops\Run:handleError in /var/www/vhosts/rowse.co.uk/htdocs/application/view/manufacturers/myQuote.php:14 #3 require in /var/www/vhosts/rowse.co.uk/htdocs/application/core/View.php:15 #2 View:render in /var/www/vhosts/rowse.co.uk/htdocs/application/controller/ManufacturersController.php:259 #1 ManufacturersController:myQuote in /var/www/vhosts/rowse.co.uk/htdocs/application/core/Application.php:39 #0 Application:__construct in /var/www/vhosts/rowse.co.uk/htdocs/public/index.php:10
Stack frames (6)
5
Whoops\Exception\ErrorException
/application/view/manufacturers/myQuote.php14
4
Whoops\Run handleError
/application/view/manufacturers/myQuote.php14
3
require
/application/core/View.php15
2
View render
/application/controller/ManufacturersController.php259
1
ManufacturersController myQuote
/application/core/Application.php39
0
Application __construct
/public/index.php10
/var/www/vhosts/rowse.co.uk/htdocs/application/view/manufacturers/myQuote.php
<div role="main" class="main">
    <section class="mb-0 page-header border-bottom border-width-2 breadcrumbs-light">
        <div class="container">
            <div class="row">
                <div class="col align-self-center p-static">
                    <ul class="breadcrumb d-block" itemscope itemtype="https://schema.org/BreadcrumbList">
                        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                            <a itemtype="https://schema.org/Thing" itemprop="item" href="<?php echo Config::get('URL'); ?>">
                                <span itemprop="name">Home</span>
                            </a>
                            <meta itemprop="position" content="1" />
                        </li>
                        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active">
                            <a itemtype="https://schema.org/Thing" itemprop="item" href="<?php echo Config::get('URL'); ?>manufacturers/myQuote/<?php echo $this->quote->ID; ?>">
                                <span itemprop="name">My Quote</span>
                            </a>
                            <meta itemprop="position" content="2" />
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    <div class="rowse-header" style="background-image: url(<?php echo Config::get('CDN_URL'); ?>images/quote-header.jpg);">
        <div class="rowse-header-container">
            <div class="container">
                <h1>My Quote</h1>
            </div>
        </div>
    </div>
    <section class="section section-no-border">
        <div class="container">
            <div class="row pt-3">
                <div class="col">
                    <?php $this->renderFeedbackMessages(); ?>
                    <div class="row">
                        <div class="col-md-8 col-12">
                            <h2 class="font-weight-semibold mb-0">Quote Items (<span id="quote-count"></span>)</h2>
                            <br>
                            <div id="quote-items">
/var/www/vhosts/rowse.co.uk/htdocs/application/view/manufacturers/myQuote.php
<div role="main" class="main">
    <section class="mb-0 page-header border-bottom border-width-2 breadcrumbs-light">
        <div class="container">
            <div class="row">
                <div class="col align-self-center p-static">
                    <ul class="breadcrumb d-block" itemscope itemtype="https://schema.org/BreadcrumbList">
                        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                            <a itemtype="https://schema.org/Thing" itemprop="item" href="<?php echo Config::get('URL'); ?>">
                                <span itemprop="name">Home</span>
                            </a>
                            <meta itemprop="position" content="1" />
                        </li>
                        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active">
                            <a itemtype="https://schema.org/Thing" itemprop="item" href="<?php echo Config::get('URL'); ?>manufacturers/myQuote/<?php echo $this->quote->ID; ?>">
                                <span itemprop="name">My Quote</span>
                            </a>
                            <meta itemprop="position" content="2" />
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    <div class="rowse-header" style="background-image: url(<?php echo Config::get('CDN_URL'); ?>images/quote-header.jpg);">
        <div class="rowse-header-container">
            <div class="container">
                <h1>My Quote</h1>
            </div>
        </div>
    </div>
    <section class="section section-no-border">
        <div class="container">
            <div class="row pt-3">
                <div class="col">
                    <?php $this->renderFeedbackMessages(); ?>
                    <div class="row">
                        <div class="col-md-8 col-12">
                            <h2 class="font-weight-semibold mb-0">Quote Items (<span id="quote-count"></span>)</h2>
                            <br>
                            <div id="quote-items">
/var/www/vhosts/rowse.co.uk/htdocs/application/core/View.php
<?php
 
class View
{
 
    public function render($filename, $data = null)
    {
        if ($data) {
            foreach ($data as $key => $value) {
                $this->{$key} = $value;
            }
        }
 
        require Config::get('PATH_VIEW') . '_templates/header.php';
        require Config::get('PATH_VIEW') . $filename . '.php';
        require Config::get('PATH_VIEW') . '_templates/footer.php';
    }
    
    public function renderBlank($filename, $data = null)
    {
        if ($data) {
            foreach ($data as $key => $value) {
                $this->{$key} = $value;
            }
        }
 
        require Config::get('PATH_VIEW') . '_templates/header.blank.php';
        require Config::get('PATH_VIEW') . $filename . '.php';
        require Config::get('PATH_VIEW') . '_templates/footer.blank.php';
    }
    
    public function renderAdmin($filename, $data = null)
    {
        if ($data) {
            foreach ($data as $key => $value) {
                $this->{$key} = $value;
            }
        }
 
        require Config::get('PATH_VIEW') . '_templates/header.admin.php';
/var/www/vhosts/rowse.co.uk/htdocs/application/controller/ManufacturersController.php
            }
        } else {
            require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
            $this->controller = new ErrorController;
            $this->controller->error404();
        }
    }
    
    public function myQuote()
    {
        $QID = QuoteModel::getCurrentQuote();
        $quote = QuoteModel::getQuote($QID);
        $data = array(
            'meta_title' => 'My Quote - Submit Your Quote Today - Rowse',
            'meta_description' => 'Submit your quote today.',
            'meta_robots' => 'noindex, nofollow',
            'canonical_url' => 'https://www.rowse.co.uk/manufacturers/myQuote/' . $QID,
            'quote' => $quote,
        );
        $this->View->render('manufacturers/myQuote', $data);
    }
    
    public function confirmation($QID = NULL)
    {
        if(isset($QID)) {
            $quote = QuoteModel::getQuoteByQID(strtolower($QID));
            if($quote) {
                if($quote->locked == 1) {
                    $data = array(
                        'meta_title' => 'Thank Your For Your Quote Enquiry: ' . $QID,
                        'meta_description' => '',
                        'meta_robots' => 'noindex, nofollow',
                        'canonical_url' => 'https://www.rowse.co.uk/manufacturers/quote/' . strtolower($QID),
                        'quote' => $quote,
                        'quote_items' => QuoteModel::getQuoteItems($quote->ID),
                    );
                    $this->View->render('manufacturers/confirmation', $data);
                } else {
                    require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
                    $this->controller = new ErrorController;
/var/www/vhosts/rowse.co.uk/htdocs/application/core/Application.php
        
        $this->createControllerAndActionNames();
        
        if ($this->redirectTarget != null) {
            if($this->redirectType == 301) {
                Redirect::permanent($this->redirectTarget);
            } elseif ($this->redirectType == 302) {
                Redirect::temporary($this->redirectTarget);
            }
        }
 
        if ($this->rewriteTargetPath != Request::get('url')) {
            if (file_exists(Config::get('PATH_CONTROLLER') . $this->controller_name . '.php')) {
 
                require Config::get('PATH_CONTROLLER') . $this->controller_name . '.php';
                $this->controller = new $this->controller_name();
 
                if (method_exists($this->controller, $this->action_name)) {
                    if (!empty($this->parameters)) {
                        call_user_func_array(array($this->controller, $this->action_name), $this->parameters);
                    } else {
                        $this->controller->{$this->action_name}();
                    }
                } else {
                    require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
                    $this->controller = new ErrorController;
                    $this->controller->error404();
                }
            } else {
                require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
                $this->controller = new ErrorController;
                $this->controller->error404();
            }
        } else {
            require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
            $this->controller = new ErrorController;
            $this->controller->error404();
        }
    }
    
/var/www/vhosts/rowse.co.uk/htdocs/public/index.php
<?php
require '../vendor/autoload.php';
 
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
 
ini_set('session.cookie_domain', '.rowse.co.uk');
 
new Application();
 

Environment & details:

Key Value
url /manufacturers/myQuote/enxMHdNt0QOBeH59
empty
empty
empty
empty
Key Value
USER rowse
HOME /home/rowse
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_RAY 8847cfb09be2618b-ORD
HTTP_X_FORWARDED_FOR 3.14.135.125
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CF_CONNECTING_IP 3.14.135.125
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_HOST www.rowse.co.uk
REDIRECT_STATUS 200
SERVER_NAME www.rowse.co.uk
SERVER_PORT 443
SERVER_ADDR 165.232.39.242
REMOTE_PORT
REMOTE_ADDR 3.14.135.125
SERVER_SOFTWARE nginx/1.14.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /var/www/vhosts/rowse.co.uk/htdocs/public
DOCUMENT_URI /index.php
REQUEST_URI /manufacturers/myQuote/enxMHdNt0QOBeH59
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING url=/manufacturers/myQuote/enxMHdNt0QOBeH59&
SCRIPT_FILENAME /var/www/vhosts/rowse.co.uk/htdocs/public/index.php
PATH_INFO
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715825216.1775
REQUEST_TIME 1715825216
empty
0. Whoops\Handler\PrettyPageHandler