Whoops! There was an error.
ErrorException (E_NOTICE)
Trying to access array offset on value of type null ErrorException thrown with message "Trying to access array offset on value of type null" Stacktrace: #14 ErrorException in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php:47 #13 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php:47 #12 App\View\Composers\LegalV2:navigation in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php:30 #11 App\View\Composers\LegalV2:with in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:70 #10 Roots\Acorn\View\Composer:merge in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59 #9 Roots\Acorn\View\Composer:compose in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/Concerns/ManagesEvents.php:124 #8 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/events/Dispatcher.php:392 #7 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/events/Dispatcher.php:237 #6 Illuminate\Events\Dispatcher:dispatch in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/Concerns/ManagesEvents.php:177 #5 Illuminate\View\Factory:callComposer in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/View.php:120 #4 Illuminate\View\View:renderContents in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/View.php:91 #3 Illuminate\View\View:render in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php:165 #2 include in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php:19 #0 require in /home/hyamer/domains/citybee.flairdigital.co/public_html/index.php:17
14
ErrorException
/app/View/Composers/LegalV2.php47
13
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/app/View/Composers/LegalV2.php47
12
App\View\Composers\LegalV2 navigation
/app/View/Composers/LegalV2.php30
11
App\View\Composers\LegalV2 with
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php70
10
Roots\Acorn\View\Composer merge
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php59
9
Roots\Acorn\View\Composer compose
/vendor/illuminate/view/Concerns/ManagesEvents.php124
8
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/illuminate/events/Dispatcher.php392
7
Illuminate\Events\Dispatcher Illuminate\Events\{closure}
/vendor/illuminate/events/Dispatcher.php237
6
Illuminate\Events\Dispatcher dispatch
/vendor/illuminate/view/Concerns/ManagesEvents.php177
5
Illuminate\View\Factory callComposer
/vendor/illuminate/view/View.php120
4
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php91
3
Illuminate\View\View render
/index.php165
2
include
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php106
1
require_once
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php19
0
require
/home/hyamer/domains/citybee.flairdigital.co/public_html/index.php17
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php
            'title' => get_the_title(),
            'info' => get_field('info'),
            'navigation' => $this->navigation(),
            'current_page' => get_permalink(get_queried_object_id())
        ];
    }
 
    /**
     * Returns navigation array
     *
     * @return array
     */
 
    public function navigation(): array
    {
        global $post;
 
        $data = [];
 
        $navigation_links = get_field('legal_pages_new', 'options')['navigation_group'];
        $current_page = $post->ID;
 
        if (!empty($navigation_links)) {
            foreach ($navigation_links as $group) {
                $data[$group['titlte']]['is_active'] = false;
                foreach ($group['links'] as $group_link) {
                    $data[$group['titlte']]['links'][] = [
                        'href' => get_permalink($group_link['link']),
                        'label' => get_the_title($group_link['link']),
                        'is_active' => ($current_page === $group_link['link']) ? true : false
                    ];
 
                    if($current_page === $group_link['link']) {
                        $data[$group['titlte']]['is_active'] = true;
                    }
                }
            }
        }
 
        return $data;
Arguments
  1. "Trying to access array offset on value of type null"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php
            'title' => get_the_title(),
            'info' => get_field('info'),
            'navigation' => $this->navigation(),
            'current_page' => get_permalink(get_queried_object_id())
        ];
    }
 
    /**
     * Returns navigation array
     *
     * @return array
     */
 
    public function navigation(): array
    {
        global $post;
 
        $data = [];
 
        $navigation_links = get_field('legal_pages_new', 'options')['navigation_group'];
        $current_page = $post->ID;
 
        if (!empty($navigation_links)) {
            foreach ($navigation_links as $group) {
                $data[$group['titlte']]['is_active'] = false;
                foreach ($group['links'] as $group_link) {
                    $data[$group['titlte']]['links'][] = [
                        'href' => get_permalink($group_link['link']),
                        'label' => get_the_title($group_link['link']),
                        'is_active' => ($current_page === $group_link['link']) ? true : false
                    ];
 
                    if($current_page === $group_link['link']) {
                        $data[$group['titlte']]['is_active'] = true;
                    }
                }
            }
        }
 
        return $data;
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/app/View/Composers/LegalV2.php
     *
     * @var array
     */
 
    protected static $views = [
        'template-legal-v2',
    ];
 
    /**
     * Data to be passed to view before rendering.
     *
     * @return array
     */
 
    public function with(): array
    {
        return [
            'title' => get_the_title(),
            'info' => get_field('info'),
            'navigation' => $this->navigation(),
            'current_page' => get_permalink(get_queried_object_id())
        ];
    }
 
    /**
     * Returns navigation array
     *
     * @return array
     */
 
    public function navigation(): array
    {
        global $post;
 
        $data = [];
 
        $navigation_links = get_field('legal_pages_new', 'options')['navigation_group'];
        $current_page = $post->ID;
 
        if (!empty($navigation_links)) {
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php
     * @param  View $view
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * Data to be merged and passed to the view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        return array_merge(
            $this->with(),
            $this->view->getData(),
            $this->override()
        );
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
     */
    protected function with()
    {
        return [];
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
     */
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php
            return static::$views;
        }
 
        $view = array_slice(explode('\\', static::class), 3);
        $view = array_map([Str::class, 'snake'], $view, array_fill(0, count($view), '-'));
        return implode('/', $view);
    }
 
    /**
     * Compose the view before rendering.
     *
     * @param  View $view
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * Data to be merged and passed to the view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        return array_merge(
            $this->with(),
            $this->view->getData(),
            $this->override()
        );
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/Concerns/ManagesEvents.php
 
        return $callback;
    }
 
    /**
     * Build a class based container callback Closure.
     *
     * @param  string  $class
     * @param  string  $prefix
     * @return \Closure
     */
    protected function buildClassEventCallback($class, $prefix)
    {
        [$class, $method] = $this->parseClassEvent($class, $prefix);
 
        // Once we have the class and method name, we can build the Closure to resolve
        // the instance out of the IoC container and call the method on it with the
        // given arguments that are passed to the Closure as the composer's data.
        return function () use ($class, $method) {
            return $this->container->make($class)->{$method}(...func_get_args());
        };
    }
 
    /**
     * Parse a class based composer name.
     *
     * @param  string  $class
     * @param  string  $prefix
     * @return array
     */
    protected function parseClassEvent($class, $prefix)
    {
        return Str::parseCallback($class, $this->classEventMethodForPrefix($prefix));
    }
 
    /**
     * Determine the class event method based on the given prefix.
     *
     * @param  string  $prefix
     * @return string
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/events/Dispatcher.php
     * @param  \Closure|string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function makeListener($listener, $wildcard = false)
    {
        if (is_string($listener)) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        if (is_array($listener) && isset($listener[0]) && is_string($listener[0])) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return $listener($event, $payload);
            }
 
            return $listener(...array_values($payload));
        };
    }
 
    /**
     * Create a class based listener using the IoC container.
     *
     * @param  string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function createClassListener($listener, $wildcard = false)
    {
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return call_user_func($this->createClassCallable($listener), $event, $payload);
            }
 
            $callable = $this->createClassCallable($listener);
 
            return $callable(...array_values($payload));
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/events/Dispatcher.php
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        [$event, $payload] = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
 
            // If a response is returned from the listener and event halting is enabled
            // we will just return this response, and not call the rest of the event
            // listeners. Otherwise we will add the response on the response list.
            if ($halt && ! is_null($response)) {
                return $response;
            }
 
            // If a boolean false is returned from a listener, we will stop propagating
            // the event to any further listeners down in the chain, else we keep on
            // looping through the listeners and firing every one in our sequence.
            if ($response === false) {
                break;
            }
 
            $responses[] = $response;
        }
 
        return $halt ? null : $responses;
    }
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/Concerns/ManagesEvents.php
    protected function addEventListener($name, $callback)
    {
        if (Str::contains($name, '*')) {
            $callback = function ($name, array $data) use ($callback) {
                return $callback($data[0]);
            };
        }
 
        $this->events->listen($name, $callback);
    }
 
    /**
     * Call the composer for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callComposer(ViewContract $view)
    {
        $this->events->dispatch('composing: '.$view->name(), [$view]);
    }
 
    /**
     * Call the creator for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callCreator(ViewContract $view)
    {
        $this->events->dispatch('creating: '.$view->name(), [$view]);
    }
}
 
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/View.php
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/vendor/illuminate/view/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return array|string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? $callback($this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php
 
    <?php endif; ?>
 
  <?php endif; ?>
 
<?php endif; ?>
<?php if (defined('PAGE_VERSION_EXTENSION')): ?>
  <script>
    let pageLanguage = <?= json_encode(PAGE_VERSION_EXTENSION); ?>
  </script>
<?php else: ?>
  <script>
    let pageLanguage = 'lt';
  </script>
<?php endif; ?>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
 
<div id="app">
  <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
 
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
 
<script>
  var APP_ID = "czc2xwye"; // Replace this with your workspace ID
 
  window.intercomSettings = {
    app_id: APP_ID,
    country_current: <?= defined('PAGE_VERSION_EXTENSION') ? json_encode(strtolower(PAGE_VERSION_EXTENSION)) : 'lt';?>
  };
</script>
<script>(function () {
    var w = window;
    var ic = w.Intercom;
    if (typeof ic === "function") {
      ic('reattach_activator');
      ic('update', w.intercomSettings);
    } else {
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
Key Value
wp-wpml_current_language
"en"
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/en/terms-of-use/"
PHPRC
"/usr/local/lib/php74.ini"
PHP_INI_SCAN_DIR
"/usr/local/lib/conf/php74/"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
PWD
"/usr/local/fastcgi/cgi-bin"
SHLVL
"0"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/index.php"
REMOTE_PORT
"57584"
SCRIPT_FILENAME
"/home/hyamer/domains/citybee.flairdigital.co/public_html/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/usr/local/fastcgi/cgi-bin/php-cgi"
CONTEXT_PREFIX
"/cgi-bin/php-cgi"
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/hyamer/domains/citybee.flairdigital.co/public_html"
REMOTE_ADDR
"44.197.111.121"
SERVER_PORT
"80"
SERVER_ADDR
"194.135.87.134"
SERVER_NAME
"citybee.flairdigital.co"
SERVER_SIGNATURE
""
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"citybee.flairdigital.co"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
UNIQUE_ID
"ZRjoxzZSSwldk_WQ1_VHuwAAAww"
REDIRECT_STATUS
"200"
REDIRECT_HANDLER
"application/x-httpd-php"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"ZRjoxzZSSwldk_WQ1_VHuwAAAww"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_REDIRECT_UNIQUE_ID
"ZRjoxzZSSwldk_WQ1_VHuwAAAww"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1696131271.7674
REQUEST_TIME
1696131271
empty
0. Whoops\Handler\PrettyPageHandler