ErrorException (E_ERROR)
Trying to get property 'post_type' of non-object (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php) (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php)
Previous exceptions
  • Trying to get property 'post_type' of non-object (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php) (0)
  • Trying to get property 'post_type' of non-object (8)
ErrorException thrown with message "Trying to get property 'post_type' of non-object (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php) (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php)" Stacktrace: #26 ErrorException in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php:328 #25 Illuminate\View\Engines\CompilerEngine:handleViewException in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php:45 #24 ErrorException in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php:328 #23 Illuminate\View\Engines\CompilerEngine:handleViewException in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php:45 #22 Whoops\Exception\ErrorException in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php:328 #21 Whoops\Run:handleError in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php:328 #20 get_post_permalink in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/Controllers/App.php:180 #19 App\Controllers\App:eventCollection in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/28b8bf7e3aac49fff366f8da6ae1c242d995e487.php:5 #18 include in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php:43 #17 Illuminate\View\Engines\PhpEngine:evaluatePath in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/CompilerEngine.php:59 #16 Illuminate\View\Engines\CompilerEngine:get in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:142 #15 Illuminate\View\View:getContents in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:125 #14 Illuminate\View\View:renderContents in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:90 #13 Illuminate\View\View:render in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/598e3ae373b31c4b6b714888510fcc50caab607e.php:22 #12 include in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php:43 #11 Illuminate\View\Engines\PhpEngine:evaluatePath in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/CompilerEngine.php:59 #10 Illuminate\View\Engines\CompilerEngine:get in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:142 #9 Illuminate\View\View:getContents in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:125 #8 Illuminate\View\View:renderContents in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php:90 #7 Illuminate\View\View:render in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/roots/sage-lib/Template/Blade.php:58 #6 Roots\Sage\Template\Blade:render in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/helpers.php:55 #5 App\template in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/filters.php:63 #4 App\{closure} in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/class-wp-hook.php:292 #3 WP_Hook:apply_filters in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/plugin.php:212 #2 apply_filters in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/template-loader.php:104 #1 require_once in /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/metropolitanhousing.org/httpdocs/index.php:17
Stack frames (27)
26
ErrorException
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php328
25
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php45
24
ErrorException
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php328
23
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php45
22
Whoops\Exception\ErrorException
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php328
21
Whoops\Run handleError
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php328
20
get_post_permalink
/app/Controllers/App.php180
19
App\Controllers\App eventCollection
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/28b8bf7e3aac49fff366f8da6ae1c242d995e487.php5
18
include
/vendor/illuminate/view/Engines/PhpEngine.php43
17
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php59
16
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php142
15
Illuminate\View\View getContents
/vendor/illuminate/view/View.php125
14
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php90
13
Illuminate\View\View render
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/598e3ae373b31c4b6b714888510fcc50caab607e.php22
12
include
/vendor/illuminate/view/Engines/PhpEngine.php43
11
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php59
10
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php142
9
Illuminate\View\View getContents
/vendor/illuminate/view/View.php125
8
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php90
7
Illuminate\View\View render
/vendor/roots/sage-lib/Template/Blade.php58
6
Roots\Sage\Template\Blade render
/app/helpers.php55
5
App\template
/app/filters.php63
4
App\{closure}
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/class-wp-hook.php292
3
WP_Hook apply_filters
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/plugin.php212
2
apply_filters
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/template-loader.php104
1
require_once
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/metropolitanhousing.org/httpdocs/index.php17
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php
 *
 * @since 3.0.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param int|WP_Post $id        Optional. Post ID or post object. Default is the global `$post`.
 * @param bool        $leavename Optional. Whether to keep post name. Default false.
 * @param bool        $sample    Optional. Is it a sample permalink. Default false.
 * @return string|WP_Error The post permalink.
 */
function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
    global $wp_rewrite;
 
    $post = get_post( $id );
 
    if ( is_wp_error( $post ) ) {
        return $post;
    }
 
    $post_link = $wp_rewrite->get_extra_permastruct( $post->post_type );
 
    $slug = $post->post_name;
 
    $force_plain_link = wp_force_plain_post_permalink( $post );
 
    $post_type = get_post_type_object( $post->post_type );
 
    if ( $post_type->hierarchical ) {
        $slug = get_page_uri( $post );
    }
 
    if ( ! empty( $post_link ) && ( ! $force_plain_link || $sample ) ) {
        if ( ! $leavename ) {
            $post_link = str_replace( "%$post->post_type%", $slug, $post_link );
        }
        $post_link = home_url( user_trailingslashit( $post_link ) );
    } else {
        if ( $post_type->query_var && ( isset( $post->post_status ) && ! $force_plain_link ) ) {
            $post_link = add_query_arg( $post_type->query_var, $slug, '' );
        } else {
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php
 *
 * @since 3.0.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param int|WP_Post $id        Optional. Post ID or post object. Default is the global `$post`.
 * @param bool        $leavename Optional. Whether to keep post name. Default false.
 * @param bool        $sample    Optional. Is it a sample permalink. Default false.
 * @return string|WP_Error The post permalink.
 */
function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
    global $wp_rewrite;
 
    $post = get_post( $id );
 
    if ( is_wp_error( $post ) ) {
        return $post;
    }
 
    $post_link = $wp_rewrite->get_extra_permastruct( $post->post_type );
 
    $slug = $post->post_name;
 
    $force_plain_link = wp_force_plain_post_permalink( $post );
 
    $post_type = get_post_type_object( $post->post_type );
 
    if ( $post_type->hierarchical ) {
        $slug = get_page_uri( $post );
    }
 
    if ( ! empty( $post_link ) && ( ! $force_plain_link || $sample ) ) {
        if ( ! $leavename ) {
            $post_link = str_replace( "%$post->post_type%", $slug, $post_link );
        }
        $post_link = home_url( user_trailingslashit( $post_link ) );
    } else {
        if ( $post_type->query_var && ( isset( $post->post_status ) && ! $force_plain_link ) ) {
            $post_link = add_query_arg( $post_type->query_var, $slug, '' );
        } else {
Exception message: Trying to get property 'post_type' of non-object (View: /var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/resources/views/partials/event-list.blade.php)
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php
 *
 * @since 3.0.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param int|WP_Post $id        Optional. Post ID or post object. Default is the global `$post`.
 * @param bool        $leavename Optional. Whether to keep post name. Default false.
 * @param bool        $sample    Optional. Is it a sample permalink. Default false.
 * @return string|WP_Error The post permalink.
 */
function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
    global $wp_rewrite;
 
    $post = get_post( $id );
 
    if ( is_wp_error( $post ) ) {
        return $post;
    }
 
    $post_link = $wp_rewrite->get_extra_permastruct( $post->post_type );
 
    $slug = $post->post_name;
 
    $force_plain_link = wp_force_plain_post_permalink( $post );
 
    $post_type = get_post_type_object( $post->post_type );
 
    if ( $post_type->hierarchical ) {
        $slug = get_page_uri( $post );
    }
 
    if ( ! empty( $post_link ) && ( ! $force_plain_link || $sample ) ) {
        if ( ! $leavename ) {
            $post_link = str_replace( "%$post->post_type%", $slug, $post_link );
        }
        $post_link = home_url( user_trailingslashit( $post_link ) );
    } else {
        if ( $post_type->query_var && ( isset( $post->post_status ) && ! $force_plain_link ) ) {
            $post_link = add_query_arg( $post_type->query_var, $slug, '' );
        } else {
Exception message: Trying to get property 'post_type' of non-object
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/link-template.php
 *
 * @since 3.0.0
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param int|WP_Post $id        Optional. Post ID or post object. Default is the global `$post`.
 * @param bool        $leavename Optional. Whether to keep post name. Default false.
 * @param bool        $sample    Optional. Is it a sample permalink. Default false.
 * @return string|WP_Error The post permalink.
 */
function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
    global $wp_rewrite;
 
    $post = get_post( $id );
 
    if ( is_wp_error( $post ) ) {
        return $post;
    }
 
    $post_link = $wp_rewrite->get_extra_permastruct( $post->post_type );
 
    $slug = $post->post_name;
 
    $force_plain_link = wp_force_plain_post_permalink( $post );
 
    $post_type = get_post_type_object( $post->post_type );
 
    if ( $post_type->hierarchical ) {
        $slug = get_page_uri( $post );
    }
 
    if ( ! empty( $post_link ) && ( ! $force_plain_link || $sample ) ) {
        if ( ! $leavename ) {
            $post_link = str_replace( "%$post->post_type%", $slug, $post_link );
        }
        $post_link = home_url( user_trailingslashit( $post_link ) );
    } else {
        if ( $post_type->query_var && ( isset( $post->post_status ) && ! $force_plain_link ) ) {
            $post_link = add_query_arg( $post_type->query_var, $slug, '' );
        } else {
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/Controllers/App.php
                'title' => get_the_title($item->id),
                'link' => get_post_permalink($item->id),
                'excerpt' => get_the_excerpt($item->id),
            ];
        }
        return $output;
    }
 
    /**
     * Event Post collection
     */
    static public function eventCollection($posts)
    {
        $output = [];
        // $posts = \carbon_get_theme_option('event_list');
 
        foreach ($posts as $item) {
            $output[] = (object)[
                'title' => get_the_title($item['id']),
                'link' => get_post_permalink($item['id']),
            ];
        }
        return $output;
    }
}
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/28b8bf7e3aac49fff366f8da6ae1c242d995e487.php
<div class="event-list">
    <div class="container">
        <h1 class="fz(40) fw(700) c(charcoal)"><?php echo \carbon_get_theme_option('title'); ?></h1>
        <div class="list">
            <?php $__currentLoopData = App::eventCollection(\carbon_get_theme_option('event_list')); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="event">
                <i class="fas fa-calendar-week c(new-teal) fz(20)"></i>
                <a href="<?php echo e($item->link); ?>" class="event-link c(charcoal)"><?php echo $item->title; ?></a>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($path);
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php
        $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());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php
 
            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());
    }
 
    /**
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/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 string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($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 (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/uploads/cache/598e3ae373b31c4b6b714888510fcc50caab607e.php
 
  <?php if(!have_posts()): ?>
    <div class="alert alert-warning">
      <?php echo e(__('Sorry, no results were found.', 'sage')); ?>
 
    </div>
    <?php echo get_search_form(false); ?>
 
  <?php endif; ?>
 
  <div class="index-wrapper bg(fa-white)">
    <div class="column-wrapper">
      <div class="art-wrapper">
        <div class="art-container">
        <?php while(have_posts()): ?> <?php the_post() ?>
          <?php echo $__env->make('partials.content-'.get_post_type(), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <?php endwhile; ?>
        </div>
      </div>
      <?php echo $__env->make('partials.event-list', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </div>
    <?php echo get_the_posts_navigation(); ?>
 
  </div>
<?php $__env->stopSection(); ?>
 
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/Engines/CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($path);
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php
        $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());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/illuminate/view/View.php
 
            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());
    }
 
    /**
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/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 string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($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 (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/vendor/roots/sage-lib/Template/Blade.php
    public function compiler()
    {
        static $engineResolver;
        if (!$engineResolver) {
            $engineResolver = $this->getContainer()->make('view.engine.resolver');
        }
        return $engineResolver->resolve('blade')->getCompiler();
    }
 
    /**
     * @param string $view
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function render($view, $data = [], $mergeData = [])
    {
        /** @var \Illuminate\Contracts\Filesystem\Filesystem $filesystem */
        $filesystem = $this->getContainer()['files'];
        return $this->{$filesystem->exists($view) ? 'file' : 'make'}($view, $data, $mergeData)->render();
    }
 
    /**
     * @param string $file
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function compiledPath($file, $data = [], $mergeData = [])
    {
        $rendered = $this->file($file, $data, $mergeData);
        /** @var EngineInterface $engine */
        $engine = $rendered->getEngine();
 
        if (!($engine instanceof CompilerEngine)) {
            // Using PhpEngine, so just return the file
            return $file;
        }
 
        $compiler = $engine->getCompiler();
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/helpers.php
 */
function config($key = null, $default = null)
{
    if (is_null($key)) {
        return sage('config');
    }
    if (is_array($key)) {
        return sage('config')->set($key);
    }
    return sage('config')->get($key, $default);
}
 
/**
 * @param string $file
 * @param array $data
 * @return string
 */
function template($file, $data = [])
{
    return sage('blade')->render($file, $data);
}
 
/**
 * Retrieve path to a compiled blade view
 * @param $file
 * @param array $data
 * @return string
 */
function template_path($file, $data = [])
{
    return sage('blade')->compiledPath($file, $data);
}
 
/**
 * @param $asset
 * @return string
 */
function asset_path($asset)
{
    return sage('assets')->getUri($asset);
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-content/themes/mhc/app/filters.php
});
 
/**
 * Render page using Blade
 */
add_filter('template_include', function ($template) {
    collect(['get_header', 'wp_head'])->each(function ($tag) {
        ob_start();
        do_action($tag);
        $output = ob_get_clean();
        remove_all_actions($tag);
        add_action($tag, function () use ($output) {
            echo $output;
        });
    });
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
        return apply_filters("sage/template/{$class}/data", $data, $template);
    }, []);
    if ($template) {
        echo template($template, $data);
        return get_stylesheet_directory().'/index.php';
    }
    return $template;
}, PHP_INT_MAX);
 
/**
 * Render comments.blade.php
 */
add_filter('comments_template', function ($comments_template) {
    $comments_template = str_replace(
        [get_stylesheet_directory(), get_template_directory()],
        '',
        $comments_template
    );
 
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
        return apply_filters("sage/template/{$class}/data", $data, $comments_template);
    }, []);
 
    $theme_template = locate_template(["views/{$comments_template}", $comments_template]);
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/plugin.php
    if ( isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
        _wp_call_all_hook( $args );
    }
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    // Don't pass the tag name to WP_Hook.
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 * functions hooked to `$tag` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
/var/www/vhosts/metropolitanhousing.org/httpdocs/wp-includes/template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            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;
}
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/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';
 
}
 
/var/www/vhosts/metropolitanhousing.org/httpdocs/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';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /news-events/
USER mhc.kalerwhales.com
HOME /var/www/vhosts/metropolitanhousing.org
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /news-events/
REMOTE_PORT 33824
SCRIPT_FILENAME /var/www/vhosts/metropolitanhousing.org/httpdocs/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/metropolitanhousing.org/httpdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/metropolitanhousing.org/httpdocs
REMOTE_ADDR 3.134.85.87
SERVER_PORT 443
SERVER_ADDR 159.65.216.113
SERVER_NAME metropolitanhousing.org
SERVER_SIGNATURE <address>Apache Server at metropolitanhousing.org Port 443</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
HTTP_REFERER http://metropolitanhousing.org/news-events/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 3.134.85.87
HTTP_HOST metropolitanhousing.org
proxy-nokeepalive 1
HTTPS on
HTTP_AUTHORIZATION
SCRIPT_URI https://metropolitanhousing.org/news-events/
SCRIPT_URL /news-events/
UNIQUE_ID ZiGaXNXFxqXp2nuukCo1wgAAAAg
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://metropolitanhousing.org/news-events/
REDIRECT_SCRIPT_URL /news-events/
REDIRECT_UNIQUE_ID ZiGaXNXFxqXp2nuukCo1wgAAAAg
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1713478236.2259
REQUEST_TIME 1713478236
empty
0. Whoops\Handler\PrettyPageHandler