Illuminate\View\ViewException {#5195 #severity: E_ERROR }
function category_title($title)
{
$tax = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
return $tax->name;
}
function init()
{
$this->is_admin = true;
// 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 {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// 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.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// 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 section gets flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @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
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
function category_title($title)
{
$tax = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
return $tax->name;
}
function init()
{
$this->is_admin = true;
* @throws \ErrorException
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
try {
parent::handleError($level, $message, $file, $line, $context);
} catch (Throwable $e) {
if (! apply_filters('acorn/throw_error_exception', true, $e)) {
return false;
}
function category_title($title)
{
$tax = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
return $tax->name;
}
function init()
{
$this->is_admin = true;
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 ] );
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
*
* @param string $title Archive title to be displayed.
* @param string $original_title Archive title without prefix.
* @param string $prefix Archive title prefix.
*/
return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );
}
/**
* Displays category, tag, term, or author description.
*
return __('Latest Posts', 'sage');
}
if (is_archive()) {
return get_the_archive_title();
}
if (is_search()) {
return sprintf(
/* translators: %s is replaced with the search query */
* @return array
*/
public function override()
{
return [
'title' => $this->title(),
];
}
/**
* Returns the post title.
protected function merge()
{
return array_merge(
$this->with(),
$this->view->getData(),
$this->override()
);
}
/**
* Data to be passed to view before rendering
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.
*
// 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.
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.
}
$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)) {
* @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.
*
// We will keep track of the number 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 section gets flushed out next time a view is created and
* @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
<?php $__env->startSection('content'); ?>
<div class="section news">
<?php echo $__env->make('partials.page-header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php if(!have_posts()): ?>
<?php echo __('Sorry, no results were found.', 'sage'); ?>
<?php endif; ?>
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
// 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 {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
// 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.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// 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 section gets flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @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
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
[2/2]
ViewException
|
---|
Illuminate\View\ViewException: Attempt to read property "name" on bool (View: /var/www/html/mhzlondon.com/web/app/themes/mhz2023/resources/views/index.blade.php) at /var/www/html/mhzlondon.com/web/app/plugins/cwf-projects/lib/CodeWithFeeling/Core/Projects.php:39 at Illuminate\View\Engines\CompilerEngine->handleViewException() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Engines/PhpEngine.php:60) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Engines/CompilerEngine.php:70) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:195) at Illuminate\View\View->getContents() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:178) at Illuminate\View\View->renderContents() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:147) at Illuminate\View\View->render() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/index.php:14) at include('/var/www/html/mhzlondon.com/web/app/themes/mhz2023/index.php') (/var/www/html/mhzlondon.com/web/wp/wp-includes/template-loader.php:106) at require_once('/var/www/html/mhzlondon.com/web/wp/wp-includes/template-loader.php') (/var/www/html/mhzlondon.com/web/wp/wp-blog-header.php:19) at require('/var/www/html/mhzlondon.com/web/wp/wp-blog-header.php') (/var/www/html/mhzlondon.com/web/index.php:6) |
[1/2]
ErrorException
|
---|
ErrorException: Attempt to read property "name" on bool at /var/www/html/mhzlondon.com/web/app/plugins/cwf-projects/lib/CodeWithFeeling/Core/Projects.php:39 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49) at Roots\Acorn\Bootstrap\HandleExceptions->handleError() (/var/www/html/mhzlondon.com/web/app/plugins/cwf-projects/lib/CodeWithFeeling/Core/Projects.php:39) at CodeWithFeeling\Core\Projects->category_title() (/var/www/html/mhzlondon.com/web/wp/wp-includes/class-wp-hook.php:312) at WP_Hook->apply_filters() (/var/www/html/mhzlondon.com/web/wp/wp-includes/plugin.php:205) at apply_filters() (/var/www/html/mhzlondon.com/web/wp/wp-includes/general-template.php:1791) at get_the_archive_title() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/app/View/Composers/Post.php:52) at App\View\Composers\Post->title() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/app/View/Composers/Post.php:28) at App\View\Composers\Post->override() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:72) at Roots\Acorn\View\Composer->merge() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59) at Roots\Acorn\View\Composer->compose() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Concerns/ManagesEvents.php:124) at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/events/Dispatcher.php:421) at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/events/Dispatcher.php:249) at Illuminate\Events\Dispatcher->dispatch() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Concerns/ManagesEvents.php:177) at Illuminate\View\Factory->callComposer() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:176) at Illuminate\View\View->renderContents() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:147) at Illuminate\View\View->render() (/var/www/html/mhzlondon.com/web/app/cache/acorn/framework/views/96720ab04c0df028ff854702eb189acc198e5899.php:3) at require('/var/www/html/mhzlondon.com/web/app/cache/acorn/framework/views/96720ab04c0df028ff854702eb189acc198e5899.php') (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/filesystem/Filesystem.php:109) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/filesystem/Filesystem.php:110) at Illuminate\Filesystem\Filesystem->getRequire() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/Engines/CompilerEngine.php:70) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:195) at Illuminate\View\View->getContents() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:178) at Illuminate\View\View->renderContents() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/vendor/illuminate/view/View.php:147) at Illuminate\View\View->render() (/var/www/html/mhzlondon.com/web/app/themes/mhz2023/index.php:14) at include('/var/www/html/mhzlondon.com/web/app/themes/mhz2023/index.php') (/var/www/html/mhzlondon.com/web/wp/wp-includes/template-loader.php:106) at require_once('/var/www/html/mhzlondon.com/web/wp/wp-includes/template-loader.php') (/var/www/html/mhzlondon.com/web/wp/wp-blog-header.php:19) at require('/var/www/html/mhzlondon.com/web/wp/wp-blog-header.php') (/var/www/html/mhzlondon.com/web/index.php:6) |