Illuminate\View\ViewException {#6881 #severity: E_ERROR }
foreach ($image_gal as $image) {
$src = wp_get_attachment_image_src($image['image_url'], 'full');
$image['image_url'] = [
'file' => $src[0], // http://dailyorange.s3.aamzonaws.com/[...]
'width' => $src[1],
'height' => $src[2],
];
// The default URL contains an absolute path to S3, so break it out
// 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';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
foreach ($image_gal as $image) {
$src = wp_get_attachment_image_src($image['image_url'], 'full');
$image['image_url'] = [
'file' => $src[0], // http://dailyorange.s3.aamzonaws.com/[...]
'width' => $src[1],
'height' => $src[2],
];
// The default URL contains an absolute path to S3, so break it out
* @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;
}
foreach ($image_gal as $image) {
$src = wp_get_attachment_image_src($image['image_url'], 'full');
$image['image_url'] = [
'file' => $src[0], // http://dailyorange.s3.aamzonaws.com/[...]
'width' => $src[1],
'height' => $src[2],
];
// The default URL contains an absolute path to S3, so break it out
return array_shift($zone_posts);
} elseif ($this->post) {
// If a post object is passed, return the story from it
// both get_post_info and get_story_info are custom and in functions-dailyorange.php
$postInfo = get_post_info($this->post->ID);
$story = get_story_info($postInfo);
return $story;
}
return null;
}
$this->articleType = $articleType;
$this->post = $post;
$this->imageData = $imageData;
$this->imageWidth = $imageWidth;
$this->imageHeight = $imageHeight;
$this->article = $this->returnArticle();
$this->showExcerpt = $showExcerpt;
$this->showWriter = $showWriter;
}
protected function returnArticle()
throw $e;
}
array_pop($this->buildStack);
return $reflector->newInstanceArgs($instances);
}
/**
* Resolve all of the dependencies from the ReflectionParameters.
*
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
$object = $this->isBuildable($concrete, $abstract)
? $this->build($concrete)
: $this->make($concrete);
// If we defined any extenders for this type, we'll need to spin through them
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
if (empty(array_diff($parameters, $dataKeys))) {
return new static(...array_intersect_key($data, array_flip($parameters)));
}
return Container::getInstance()->make(static::class, $data);
}
/**
* Extract the constructor parameters for the component.
*
<?php if (isset($component)) { $__componentOriginalc197a308f8f389d8eec7ce56253b9544 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc197a308f8f389d8eec7ce56253b9544 = $attributes; } ?>
<?php $component = App\View\Components\ArticleCard::resolve(['post' => $post,'showExcerpt' => true,'articleType' => 'archive'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('article-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\ArticleCard::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
$__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';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
[2/2]
ViewException
|
---|
Illuminate\View\ViewException: Trying to access array offset on false (View: /var/www/dailyorange.com/wp-content/themes/euclid-sage/resources/views/archive.blade.php) at /var/www/dailyorange.com/wp-content/themes/euclid-sage/functions-dailyorange.php:196 at Illuminate\View\Engines\CompilerEngine->handleViewException() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/Engines/PhpEngine.php:60) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/Engines/CompilerEngine.php:72) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:207) at Illuminate\View\View->getContents() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:190) at Illuminate\View\View->renderContents() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:159) at Illuminate\View\View->render() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/index.php:29) at include('/var/www/dailyorange.com/wp-content/themes/euclid-sage/index.php') (/var/www/dailyorange.com/wp-includes/template-loader.php:106) at require_once('/var/www/dailyorange.com/wp-includes/template-loader.php') (/var/www/dailyorange.com/wp-blog-header.php:19) at require('/var/www/dailyorange.com/wp-blog-header.php') (/var/www/dailyorange.com/index.php:17) |
[1/2]
ErrorException
|
---|
ErrorException: Trying to access array offset on false at /var/www/dailyorange.com/wp-content/themes/euclid-sage/functions-dailyorange.php:196 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49) at Roots\Acorn\Bootstrap\HandleExceptions->handleError() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/functions-dailyorange.php:196) at get_story_info() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/app/View/Components/ArticleCard.php:74) at App\View\Components\ArticleCard->returnArticle() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/app/View/Components/ArticleCard.php:59) at App\View\Components\ArticleCard->__construct() at ReflectionClass->newInstanceArgs() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/container/Container.php:952) at Illuminate\Container\Container->build() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/container/Container.php:795) at Illuminate\Container\Container->resolve() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:957) at Illuminate\Foundation\Application->resolve() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/container/Container.php:731) at Illuminate\Container\Container->make() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:942) at Illuminate\Foundation\Application->make() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/Component.php:105) at Illuminate\View\Component::resolve() (/var/www/dailyorange.com/wp-content/cache/acorn/framework/views/a1147fddafec553caa83039ca5fe4073.php:17) at require('/var/www/dailyorange.com/wp-content/cache/acorn/framework/views/a1147fddafec553caa83039ca5fe4073.php') (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/filesystem/Filesystem.php:123) at Illuminate\Filesystem\Filesystem::{closure:Illuminate\Filesystem\Filesystem::getRequire():120}() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/filesystem/Filesystem.php:124) at Illuminate\Filesystem\Filesystem->getRequire() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/Engines/CompilerEngine.php:72) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:207) at Illuminate\View\View->getContents() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:190) at Illuminate\View\View->renderContents() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/vendor/illuminate/view/View.php:159) at Illuminate\View\View->render() (/var/www/dailyorange.com/wp-content/themes/euclid-sage/index.php:29) at include('/var/www/dailyorange.com/wp-content/themes/euclid-sage/index.php') (/var/www/dailyorange.com/wp-includes/template-loader.php:106) at require_once('/var/www/dailyorange.com/wp-includes/template-loader.php') (/var/www/dailyorange.com/wp-blog-header.php:19) at require('/var/www/dailyorange.com/wp-blog-header.php') (/var/www/dailyorange.com/index.php:17) |