Symfony Exception

ErrorException ViewException ViewException

HTTP 500 Internal Server Error

Trying to access array offset on value of type bool (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php) (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php)

Exceptions 3

Illuminate\View\ ViewException

Show exception properties
Illuminate\View\ViewException {#6558
  #severity: E_ERROR
}
  1.         apply_filters(
  2.             'woocommerce_gallery_image_html_attachment_image_params',
  3.             array(
  4.                 'title'                   => _wp_specialcharsget_post_field'post_title'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  5.                 'data-caption'            => _wp_specialcharsget_post_field'post_excerpt'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  6.                 'data-src'                => esc_url$full_src[0] ),
  7.                 'data-large_image'        => esc_url$full_src[0] ),
  8.                 'data-large_image_width'  => esc_attr$full_src[1] ),
  9.                 'data-large_image_height' => esc_attr$full_src[2] ),
  10.                 'class'                   => esc_attr$main_image 'wp-post-image' '' ),
  11.             ),
  1.         // flush out any stray output that might get out before an error occurs or
  2.         // an exception is thrown. This prevents any partial views from leaking.
  3.         try {
  4.             $this->files->getRequire($path$data);
  5.         } catch (Throwable $e) {
  6.             $this->handleViewException($e$obLevel);
  7.         }
  8.         return ltrim(ob_get_clean());
  9.     }
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php') in /home/up5ubgs0/public_html/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php') in /home/up5ubgs0/public_html/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/home/up5ubgs0/public_html/wp-blog-header.php') in /home/up5ubgs0/public_html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Illuminate\View\ ViewException

Trying to access array offset on value of type bool (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php)

  1.         apply_filters(
  2.             'woocommerce_gallery_image_html_attachment_image_params',
  3.             array(
  4.                 'title'                   => _wp_specialcharsget_post_field'post_title'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  5.                 'data-caption'            => _wp_specialcharsget_post_field'post_excerpt'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  6.                 'data-src'                => esc_url$full_src[0] ),
  7.                 'data-large_image'        => esc_url$full_src[0] ),
  8.                 'data-large_image_width'  => esc_attr$full_src[1] ),
  9.                 'data-large_image_height' => esc_attr$full_src[2] ),
  10.                 'class'                   => esc_attr$main_image 'wp-post-image' '' ),
  11.             ),
  1.         // flush out any stray output that might get out before an error occurs or
  2.         // an exception is thrown. This prevents any partial views from leaking.
  3.         try {
  4.             $this->files->getRequire($path$data);
  5.         } catch (Throwable $e) {
  6.             $this->handleViewException($e$obLevel);
  7.         }
  8.         return ltrim(ob_get_clean());
  9.     }
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1. <?= \Roots\view('woocommerce.content-single-product'$data ?? get_defined_vars())->render(); ?>
  2. <?php /**PATH /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php ENDPATH**/ ?>
require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php') in /home/up5ubgs0/public_html/wp-includes/template.php (line 812)
  1.     do_action'wp_before_load_template'$_template_file$load_once$args );
  2.     if ( $load_once ) {
  3.         require_once $_template_file;
  4.     } else {
  5.         require $_template_file;
  6.     }
  7.     /**
  8.      * Fires after a template file is loaded.
  9.      *
  1.     // Allow 3rd party plugins to filter template file from their plugin.
  2.     $template apply_filters'wc_get_template_part'$template$slug$name );
  3.     if ( $template ) {
  4.         load_template$templatefalse );
  5.     }
  6. }
  7. /**
  8.  * Get other templates (e.g. product attributes) passing attributes and including the file.
  1.   ?>
  2.   <?php while(have_posts()): ?>
  3.     <?php
  4.       the_post();
  5.       wc_get_template_part('content''single-product');
  6.     ?>
  7.   <?php endwhile; ?>
  8.   <?php
  9.     do_action('woocommerce_after_main_content');
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php') in /home/up5ubgs0/public_html/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php') in /home/up5ubgs0/public_html/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/home/up5ubgs0/public_html/wp-blog-header.php') in /home/up5ubgs0/public_html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

ErrorException

Trying to access array offset on value of type bool

  1.         apply_filters(
  2.             'woocommerce_gallery_image_html_attachment_image_params',
  3.             array(
  4.                 'title'                   => _wp_specialcharsget_post_field'post_title'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  5.                 'data-caption'            => _wp_specialcharsget_post_field'post_excerpt'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  6.                 'data-src'                => esc_url$full_src[0] ),
  7.                 'data-large_image'        => esc_url$full_src[0] ),
  8.                 'data-large_image_width'  => esc_attr$full_src[1] ),
  9.                 'data-large_image_height' => esc_attr$full_src[2] ),
  10.                 'class'                   => esc_attr$main_image 'wp-post-image' '' ),
  11.             ),
  1.      * @throws \ErrorException
  2.      */
  3.     public function handleError($level$message$file ''$line 0$context = [])
  4.     {
  5.         try {
  6.             parent::handleError($level$message$file$line$context);
  7.         } catch (Throwable $e) {
  8.             if (! apply_filters('acorn/throw_error_exception'true$e)) {
  9.                 return false;
  10.             }
  1.         apply_filters(
  2.             'woocommerce_gallery_image_html_attachment_image_params',
  3.             array(
  4.                 'title'                   => _wp_specialcharsget_post_field'post_title'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  5.                 'data-caption'            => _wp_specialcharsget_post_field'post_excerpt'$attachment_id ), ENT_QUOTES'UTF-8'true ),
  6.                 'data-src'                => esc_url$full_src[0] ),
  7.                 'data-large_image'        => esc_url$full_src[0] ),
  8.                 'data-large_image_width'  => esc_attr$full_src[1] ),
  9.                 'data-large_image_height' => esc_attr$full_src[2] ),
  10.                 'class'                   => esc_attr$main_image 'wp-post-image' '' ),
  11.             ),
  1. $attachment_ids $product->get_gallery_image_ids();
  2. if ( $attachment_ids && $product->get_image_id() ) {
  3.     foreach ( $attachment_ids as $attachment_id ) {
  4.         echo apply_filters'woocommerce_single_product_image_thumbnail_html'wc_get_gallery_image_html$attachment_id ), $attachment_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped
  5.     }
  6. }
include('/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-thumbnails.php') in /home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php (line 345)
  1.         extract$args ); // @codingStandardsIgnoreLine
  2.     }
  3.     do_action'woocommerce_before_template_part'$action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
  4.     include $action_args['located'];
  5.     do_action'woocommerce_after_template_part'$action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
  6. }
  7. /**
  1.     /**
  2.      * Output the product thumbnails.
  3.      */
  4.     function woocommerce_show_product_thumbnails() {
  5.         wc_get_template'single-product/product-thumbnails.php' );
  6.     }
  7. }
  8. /**
  9.  * Get HTML for a gallery image.
woocommerce_show_product_thumbnails() in /home/up5ubgs0/public_html/wp-includes/class-wp-hook.php (line 324)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters() in /home/up5ubgs0/public_html/wp-includes/class-wp-hook.php (line 348)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action() in /home/up5ubgs0/public_html/wp-includes/plugin.php (line 517)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
  1.             $html .= '</div>';
  2.         }
  3.         echo apply_filters'woocommerce_single_product_image_thumbnail_html'$html$post_thumbnail_id ); // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped
  4.         do_action'woocommerce_product_thumbnails' );
  5.         ?>
  6.     </div>
  7. </div>
include('/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-image.php') in /home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php (line 345)
  1.         extract$args ); // @codingStandardsIgnoreLine
  2.     }
  3.     do_action'woocommerce_before_template_part'$action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
  4.     include $action_args['located'];
  5.     do_action'woocommerce_after_template_part'$action_args['template_name'], $action_args['template_path'], $action_args['located'], $action_args['args'] );
  6. }
  7. /**
  1.     /**
  2.      * Output the product image before the single product summary.
  3.      */
  4.     function woocommerce_show_product_images() {
  5.         wc_get_template'single-product/product-image.php' );
  6.     }
  7. }
  8. if ( ! function_exists'woocommerce_show_product_thumbnails' ) ) {
  9.     /**
woocommerce_show_product_images() in /home/up5ubgs0/public_html/wp-includes/class-wp-hook.php (line 324)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters() in /home/up5ubgs0/public_html/wp-includes/class-wp-hook.php (line 348)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action() in /home/up5ubgs0/public_html/wp-includes/plugin.php (line 517)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
  1.                              * Hook: woocommerce_before_single_product_summary.
  2.                              *
  3.                              * @hooked woocommerce_show_product_sale_flash - 10
  4.                              * @hooked woocommerce_show_product_images - 20
  5.                              */
  6.                             do_action'woocommerce_before_single_product_summary' );
  7.                             ?>
  8.                 
  9.                             <div class="summary entry-summary">
  10.                                 <?php
  11.                                 remove_action'woocommerce_single_product_summary''woocommerce_template_single_meta'40 );
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1. <?= \Roots\view('woocommerce.content-single-product'$data ?? get_defined_vars())->render(); ?>
  2. <?php /**PATH /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php ENDPATH**/ ?>
require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php') in /home/up5ubgs0/public_html/wp-includes/template.php (line 812)
  1.     do_action'wp_before_load_template'$_template_file$load_once$args );
  2.     if ( $load_once ) {
  3.         require_once $_template_file;
  4.     } else {
  5.         require $_template_file;
  6.     }
  7.     /**
  8.      * Fires after a template file is loaded.
  9.      *
  1.     // Allow 3rd party plugins to filter template file from their plugin.
  2.     $template apply_filters'wc_get_template_part'$template$slug$name );
  3.     if ( $template ) {
  4.         load_template$templatefalse );
  5.     }
  6. }
  7. /**
  8.  * Get other templates (e.g. product attributes) passing attributes and including the file.
  1.   ?>
  2.   <?php while(have_posts()): ?>
  3.     <?php
  4.       the_post();
  5.       wc_get_template_part('content''single-product');
  6.     ?>
  7.   <?php endwhile; ?>
  8.   <?php
  9.     do_action('woocommerce_after_main_content');
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php') in /home/up5ubgs0/public_html/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php') in /home/up5ubgs0/public_html/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/home/up5ubgs0/public_html/wp-blog-header.php') in /home/up5ubgs0/public_html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Traces 3

[3/3] ViewException
Illuminate\View\ViewException:
Trying to access array offset on value of type bool (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php) (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php)

  at /home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1620
  at Illuminate\View\Engines\CompilerEngine->handleViewException()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php:17)
  at include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php')
     (/home/up5ubgs0/public_html/wp-includes/template-loader.php:106)
  at require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php')
     (/home/up5ubgs0/public_html/wp-blog-header.php:19)
  at require('/home/up5ubgs0/public_html/wp-blog-header.php')
     (/home/up5ubgs0/public_html/index.php:17)                
[2/3] ViewException
Illuminate\View\ViewException:
Trying to access array offset on value of type bool (View: /home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/resources/views/woocommerce/content-single-product.blade.php)

  at /home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1620
  at Illuminate\View\Engines\CompilerEngine->handleViewException()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php:1)
  at require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php')
     (/home/up5ubgs0/public_html/wp-includes/template.php:812)
  at load_template()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:284)
  at wc_get_template_part()
     (/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/90d9cf5b0ab6cb8a7ed25736e73e7873ed63ee14.php:10)
  at require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/90d9cf5b0ab6cb8a7ed25736e73e7873ed63ee14.php')
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php:17)
  at include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php')
     (/home/up5ubgs0/public_html/wp-includes/template-loader.php:106)
  at require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php')
     (/home/up5ubgs0/public_html/wp-blog-header.php:19)
  at require('/home/up5ubgs0/public_html/wp-blog-header.php')
     (/home/up5ubgs0/public_html/index.php:17)                
[1/3] ErrorException
ErrorException:
Trying to access array offset on value of type bool

  at /home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1620
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1620)
  at wc_get_gallery_image_html()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-thumbnails.php:31)
  at include('/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-thumbnails.php')
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:345)
  at wc_get_template()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1588)
  at woocommerce_show_product_thumbnails()
     (/home/up5ubgs0/public_html/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters()
     (/home/up5ubgs0/public_html/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action()
     (/home/up5ubgs0/public_html/wp-includes/plugin.php:517)
  at do_action()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-image.php:52)
  at include('/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/templates/single-product/product-image.php')
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:345)
  at wc_get_template()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1579)
  at woocommerce_show_product_images()
     (/home/up5ubgs0/public_html/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters()
     (/home/up5ubgs0/public_html/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action()
     (/home/up5ubgs0/public_html/wp-includes/plugin.php:517)
  at do_action()
     (/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/211b824bb2cabc0c217620de0a1c6fdd1408a062.php:61)
  at require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/211b824bb2cabc0c217620de0a1c6fdd1408a062.php')
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php:1)
  at require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/59c688d31cfbf4ad0a956778dd61eb49-loader.php')
     (/home/up5ubgs0/public_html/wp-includes/template.php:812)
  at load_template()
     (/home/up5ubgs0/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:284)
  at wc_get_template_part()
     (/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/90d9cf5b0ab6cb8a7ed25736e73e7873ed63ee14.php:10)
  at require('/home/up5ubgs0/public_html/wp-content/cache/acorn/framework/views/90d9cf5b0ab6cb8a7ed25736e73e7873ed63ee14.php')
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php:17)
  at include('/home/up5ubgs0/public_html/wp-content/themes/restaurantesubmarino/index.php')
     (/home/up5ubgs0/public_html/wp-includes/template-loader.php:106)
  at require_once('/home/up5ubgs0/public_html/wp-includes/template-loader.php')
     (/home/up5ubgs0/public_html/wp-blog-header.php:19)
  at require('/home/up5ubgs0/public_html/wp-blog-header.php')
     (/home/up5ubgs0/public_html/index.php:17)