Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: picture Whoops\Exception\ErrorException thrown with message "Undefined variable: picture" Stacktrace: #7 Whoops\Exception\ErrorException in /home/weeklie/apps/weeklie/site/templates/delivery.php:26 #6 Whoops\Run:handleError in /home/weeklie/apps/weeklie/site/templates/delivery.php:26 #5 require in /home/weeklie/apps/weeklie/kirby/src/Toolkit/Tpl.php:38 #4 Kirby\Toolkit\Tpl:load in /home/weeklie/apps/weeklie/kirby/src/Cms/Template.php:168 #3 Kirby\Cms\Template:render in /home/weeklie/apps/weeklie/kirby/src/Cms/Page.php:1130 #2 Kirby\Cms\Page:render in /home/weeklie/apps/weeklie/kirby/src/Cms/App.php:584 #1 Kirby\Cms\App:io in /home/weeklie/apps/weeklie/kirby/src/Cms/App.php:870 #0 Kirby\Cms\App:render in /home/weeklie/apps/weeklie/index.php:5
Stack frames (8)
7
Whoops
\
Exception
\
ErrorException
/
home
/
weeklie
/
apps
/
weeklie
/
site
/
templates
/
delivery.php
26
6
Whoops
\
Run
handleError
/
home
/
weeklie
/
apps
/
weeklie
/
site
/
templates
/
delivery.php
26
5
require
/
src
/
Toolkit
/
Tpl.php
38
4
Kirby
\
Toolkit
\
Tpl
load
/
src
/
Cms
/
Template.php
168
3
Kirby
\
Cms
\
Template
render
/
src
/
Cms
/
Page.php
1130
2
Kirby
\
Cms
\
Page
render
/
src
/
Cms
/
App.php
584
1
Kirby
\
Cms
\
App
io
/
src
/
Cms
/
App.php
870
0
Kirby
\
Cms
\
App
render
/
home
/
weeklie
/
apps
/
weeklie
/
index.php
5
/
home
/
weeklie
/
apps
/
weeklie
/
site
/
templates
/
delivery.php
            <div class="copy copy--small text-center">
 
 
                    <h2 class=""><?= $page->title() ?></h2>
        
 
                    <p><?= $page->location() ?></p>
 
                    
 
            </div>
 
            <?php if( $video = $page->video()->isNotEmpty() ) { ?>
                <div class="delivery__image">
                    <video controls style="max-width: 100%;width: 100%;">
                        <source src="<?= $page->video()->toFile()->url() ?>" type="video/mp4">
                    </video>
                </div>
            <?php } else { ?>
                <?php if( $image = $page->image($picture) ) { ?>
                    <div class="delivery__image">
                        <img src="<?= $image->url() ?>" alt="">
                    </div>
                <?php } ?>
            <?php } ?>
 
    
          
 
         
 
            <div class="copy copy--small">
                <?= $page->description()->kirbytext() ?>
                <br><br>
            </div>
 
    
 
            <div class="copy copy--small">
                <?php if($page->day()->isNotEmpty()) : ?>
/
home
/
weeklie
/
apps
/
weeklie
/
site
/
templates
/
delivery.php
            <div class="copy copy--small text-center">
 
 
                    <h2 class=""><?= $page->title() ?></h2>
        
 
                    <p><?= $page->location() ?></p>
 
                    
 
            </div>
 
            <?php if( $video = $page->video()->isNotEmpty() ) { ?>
                <div class="delivery__image">
                    <video controls style="max-width: 100%;width: 100%;">
                        <source src="<?= $page->video()->toFile()->url() ?>" type="video/mp4">
                    </video>
                </div>
            <?php } else { ?>
                <?php if( $image = $page->image($picture) ) { ?>
                    <div class="delivery__image">
                        <img src="<?= $image->url() ?>" alt="">
                    </div>
                <?php } ?>
            <?php } ?>
 
    
          
 
         
 
            <div class="copy copy--small">
                <?= $page->description()->kirbytext() ?>
                <br><br>
            </div>
 
    
 
            <div class="copy copy--small">
                <?php if($page->day()->isNotEmpty()) : ?>
/
home
/
weeklie
/
apps
/
weeklie
/
kirby
/
src
/
Toolkit
/
Tpl.php
    /**
     * Renders the template
     *
     * @param string $__file
     * @param array $__data
     * @return string
     */
    public static function load(string $__file = null, array $__data = []): string
    {
        if (file_exists($__file) === false) {
            return '';
        }
 
        $exception = null;
 
        ob_start();
        extract($__data);
 
        try {
            require $__file;
        } catch (Throwable $e) {
            $exception = $e;
        }
 
        $content = ob_get_contents();
        ob_end_clean();
 
        if ($exception === null) {
            return $content;
        }
 
        throw $exception;
    }
}
 
/
home
/
weeklie
/
apps
/
weeklie
/
kirby
/
src
/
Cms
/
Template.php
        }
    }
 
    /**
     * Returns the template name
     *
     * @return string
     */
    public function name(): string
    {
        return $this->name;
    }
 
    /**
     * @param array $data
     * @return string
     */
    public function render(array $data = []): string
    {
        return Tpl::load($this->file(), $data);
    }
 
    /**
     * Returns the root to the templates directory
     *
     * @return string
     */
    public function root(): string
    {
        return App::instance()->root($this->store());
    }
 
    /**
     * Returns the template type
     *
     * @return string
     */
    public function type(): string
    {
        return $this->type;
/
home
/
weeklie
/
apps
/
weeklie
/
kirby
/
src
/
Cms
/
Page.php
        }
 
        // fetch the page regularly
        if ($html === null) {
            $kirby->data = $this->controller($data, $contentType);
 
            if ($contentType === 'html') {
                $template = $this->template();
            } else {
                $template = $this->representation($contentType);
            }
 
            if ($template->exists() === false) {
                throw new NotFoundException([
                    'key' => 'template.default.notFound'
                ]);
            }
 
            // render the page
            $html = $template->render($kirby->data);
 
            // convert the response configuration to an array
            $response = $kirby->response()->toArray();
 
            // cache the result
            if ($cache !== null) {
                $cache->set($cacheId, [
                    'html'     => $html,
                    'response' => $response
                ]);
            }
        }
 
        return $html;
    }
 
    /**
     * @internal
     * @return Kirby\Cms\Template
     */
/
home
/
weeklie
/
apps
/
weeklie
/
kirby
/
src
/
Cms
/
App.php
        }
 
        // Empty input
        if (empty($input) === true) {
            return $this->io(new NotFoundException());
        }
 
        // Response Configuration
        if (is_a($input, 'Kirby\Cms\Responder') === true) {
            return $input->send();
        }
 
        // Responses
        if (is_a($input, 'Kirby\Http\Response') === true) {
            return $input;
        }
 
        // Pages
        if (is_a($input, 'Kirby\Cms\Page')) {
            $html = $input->render();
 
            if ($input->isErrorPage() === true) {
                if ($response->code() === null) {
                    $response->code(404);
                }
            }
 
            return $response->send($html);
        }
 
        // Files
        if (is_a($input, 'Kirby\Cms\File')) {
            return $response->redirect($input->mediaUrl(), 307)->send();
        }
 
        // Simple HTML response
        if (is_string($input) === true) {
            return $response->send($input);
        }
 
/
home
/
weeklie
/
apps
/
weeklie
/
kirby
/
src
/
Cms
/
App.php
 
        $requestUri  = '/' . $this->request()->url()->path();
        $scriptName  = $_SERVER['SCRIPT_NAME'];
        $scriptFile  = basename($scriptName);
        $scriptDir   = dirname($scriptName);
        $scriptPath  = $scriptFile === 'index.php' ? $scriptDir : $scriptName;
        $requestPath = preg_replace('!^' . preg_quote($scriptPath) . '!', '', $requestUri);
 
        return $this->setPath($requestPath)->path;
    }
 
    /**
     * Returns the Response object for the
     * current request
     *
     * @return Kirby\Http\Response
     */
    public function render(string $path = null, string $method = null)
    {
        return $this->io($this->call($path, $method));
    }
 
    /**
     * Returns the Request singleton
     *
     * @return Kirby\Http\Request
     */
    public function request()
    {
        return $this->request = $this->request ?? new Request;
    }
 
    /**
     * Path resolver for the router
     *
     * @internal
     * @param string $path
     * @param string|null $language
     * @return mixed
     */
/
home
/
weeklie
/
apps
/
weeklie
/
index.php
<?php
 
require 'kirby/bootstrap.php';
 
echo (new Kirby)->render();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PHP_INI_SCAN_DIR /etc/php.d/:/home/weeklie/apps/weeklie/
USER weeklie
HOME /home/weeklie
SCRIPT_NAME /index.php
REQUEST_URI /produce/organic-spices
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /produce/organic-spices
REMOTE_PORT 49694
SCRIPT_FILENAME /home/weeklie/apps/weeklie/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/weeklie/apps/weeklie/
CONTEXT_PREFIX /
REQUEST_SCHEME http
DOCUMENT_ROOT /home/weeklie/apps/weeklie
REMOTE_ADDR 3.84.7.255
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME weekl.ie
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at weekl.ie Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION upgrade
HTTP_X_FORWARDED_SSL on
HTTP_X_FORWARDED_PROTO https
HTTP_HTTPS on
HTTP_FORWARDED_REQUEST_URI /produce/organic-spices
HTTP_X_FORWARDED_SERVER weekl.ie
HTTP_X_FORWARDED_HOST weekl.ie
HTTP_HOST weekl.ie
proxy-nokeepalive 1
HTTP_AUTHORIZATION
HTTPS on
UNIQUE_ID ZgVbnWKkqaKkluTQsDcdTgAAAQM
REDIRECT_STATUS 200
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_UNIQUE_ID ZgVbnWKkqaKkluTQsDcdTgAAAQM
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711627165.9555
REQUEST_TIME 1711627165
empty
0. Whoops\Handler\PrettyPageHandler