Error
Call to a member function srcset() on null Error thrown with message "Call to a member function srcset() on null" Stacktrace: #6 Error in /home/okrethcw/public_html/site/templates/event.php:70 #5 require in /home/okrethcw/public_html/kirby/src/Toolkit/Tpl.php:39 #4 Kirby\Toolkit\Tpl:load in /home/okrethcw/public_html/kirby/src/Cms/Template.php:164 #3 Kirby\Cms\Template:render in /home/okrethcw/public_html/kirby/src/Cms/Page.php:1155 #2 Kirby\Cms\Page:render in /home/okrethcw/public_html/kirby/src/Cms/App.php:575 #1 Kirby\Cms\App:io in /home/okrethcw/public_html/kirby/src/Cms/App.php:847 #0 Kirby\Cms\App:render in /home/okrethcw/public_html/index.php:5
Stack frames (7)
6
Error
/
home
/
okrethcw
/
public_html
/
site
/
templates
/
event.php
70
5
require
/
src
/
Toolkit
/
Tpl.php
39
4
Kirby
\
Toolkit
\
Tpl
load
/
src
/
Cms
/
Template.php
164
3
Kirby
\
Cms
\
Template
render
/
src
/
Cms
/
Page.php
1155
2
Kirby
\
Cms
\
Page
render
/
src
/
Cms
/
App.php
575
1
Kirby
\
Cms
\
App
io
/
src
/
Cms
/
App.php
847
0
Kirby
\
Cms
\
App
render
/
home
/
okrethcw
/
public_html
/
index.php
5
/
home
/
okrethcw
/
public_html
/
site
/
templates
/
event.php
          <img src="<?= $partner->logo()->toFile()->url() ?>" alt="<?= $partner->partner() ?>">
      </a>
  <?php else : ?>
  <a href="<?= $partner->link()->url() ?>">
      <?= $partner->partner() ?>
  </a>
  <?php endif ?>
  <?php endforeach ?>
  </div>
 
  <?php if($page->siblings() != ''): ?>
    <div class="grid--auto next-posts archive">
      <?php foreach($page->siblings($self = false)->shuffle()->limit(2) as $nextPage): ?>
      <div class="grid--span--6">
        <a href="<?= $nextPage->url() ?>">
          <p>Read this next: <br>
          <?= $nextPage->title() ?>
          </p>
          <div class="block block-image" style ="background-color: <?php if ($nextPage->colourpicker()->value() != ''): ?><?= $nextPage->colourpicker()->value() ?><?php else : ?> #EFCCAD<?php endif ?>">
          <img class="lazy" src="" src-set="" data-srcset="<?= $nextPage->heroimage()->toFile()->srcset([300, 800, 1024, 1400]) ?>" />
          </div>
        </a>
      </div>
      <?php endforeach ?>
    </div>
<?php endif ?>
  </div>
  </section>
  <?php endif ?>
  <?php snippet('mc-button') ?>
</div>
 
 
</main>
<script>
window.addEventListener("scroll", function() {
  var elementTarget = document.getElementById("gap");
  var intro = document.getElementById("intro");
  var mcButton = document.getElementById("mc-button");
  var main = document.querySelector('main');
/
home
/
okrethcw
/
public_html
/
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
/
okrethcw
/
public_html
/
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
/
okrethcw
/
public_html
/
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 Template
     */
/
home
/
okrethcw
/
public_html
/
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
/
okrethcw
/
public_html
/
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 Response
     */
    public function render(string $path = null, string $method = null)
    {
        return $this->io($this->call($path, $method));
    }
 
    /**
     * Returns the Request singleton
     *
     * @return Request
     */
    public function request(): Request
    {
        return $this->request = $this->request ?? new Request;
    }
 
    /**
     * Path resolver for the router
     *
     * @internal
     * @param string $path
     * @param string|null $language
     * @return mixed
     */
/
home
/
okrethcw
/
public_html
/
index.php
<?php
 
require __DIR__ . '/kirby/bootstrap.php';
 
echo (new Kirby)->render();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH /usr/local/bin:/bin:/usr/bin
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br
HTTP_HOST okreal.co
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_FOR 23.20.51.162,172.70.175.10
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
HTTP_CF_RAY 86be3195dbfa82b1-IAD
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CF_CONNECTING_IP 23.20.51.162
HTTP_X_FORWARDED_PROTO https
HTTP_X_HTTPS on
DOCUMENT_ROOT /home/okrethcw/public_html
REMOTE_ADDR 23.20.51.162
REMOTE_PORT 57480
SERVER_ADDR 199.188.200.218
SERVER_NAME okreal.co
SERVER_ADMIN [email protected]
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /events/beautycounter-recap
REDIRECT_URL /events/beautycounter-recap
REDIRECT_REQUEST_METHOD GET
PROXY_REMOTE_ADDR 199.188.200.218
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
SCRIPT_FILENAME /home/okrethcw/public_html/index.php
QUERY_STRING
SCRIPT_URI https://okreal.co/events/beautycounter-recap
SCRIPT_URL /events/beautycounter-recap
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711697836.636
REQUEST_TIME 1711697836
Key Value
PATH /usr/local/bin:/bin:/usr/bin
0. Whoops\Handler\PrettyPageHandler