Symfony Exception

ErrorException ViewException

HTTP 500 Internal Server Error

Undefined array key 0 (View: /nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/single-product.blade.php)

Exceptions 2

Illuminate\View\ ViewException

  1. $shipping_options_by_seller_id "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
  2. $queryResults $wpdb->get_results($shipping_options_by_seller_id);
  3. $i 0;
  4. $shipping_bool get_post_meta($product->get_id(), '_disable_shipping');
  5. ?>
  6. <?php if($shipping_bool[0] == 'no'):?>
  7. <div class="data_product">
  8.     <ul>
  9.         <li>
  10.                 <p class="title-data">
  11.                     <?php
  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.         }
  2.         // Once we have the path to the compiled file, we will evaluate the paths with
  3.         // typical PHP just like any other templates. We also keep a stack of views
  4.         // which have been rendered for right exception messages to be generated.
  5.         $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         array_pop($this->lastCompiled);
  7.         return $results;
  8.     }
  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 sections get 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('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php') in /nas/content/live/genebrokeprod/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('/nas/content/live/genebrokeprod/wp-includes/template-loader.php') in /nas/content/live/genebrokeprod/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('/nas/content/live/genebrokeprod/wp-blog-header.php') in /nas/content/live/genebrokeprod/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

Undefined array key 0

  1. $shipping_options_by_seller_id "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
  2. $queryResults $wpdb->get_results($shipping_options_by_seller_id);
  3. $i 0;
  4. $shipping_bool get_post_meta($product->get_id(), '_disable_shipping');
  5. ?>
  6. <?php if($shipping_bool[0] == 'no'):?>
  7. <div class="data_product">
  8.     <ul>
  9.         <li>
  10.                 <p class="title-data">
  11.                     <?php
  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.             }
HandleExceptions->handleError(2, 'Undefined array key 0', '/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php', 507) in /nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php (line 507)
  1. $shipping_options_by_seller_id "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
  2. $queryResults $wpdb->get_results($shipping_options_by_seller_id);
  3. $i 0;
  4. $shipping_bool get_post_meta($product->get_id(), '_disable_shipping');
  5. ?>
  6. <?php if($shipping_bool[0] == 'no'):?>
  7. <div class="data_product">
  8.     <ul>
  9.         <li>
  10.                 <p class="title-data">
  11.                     <?php
  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(null, array('')) in /nas/content/live/genebrokeprod/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(array('')) in /nas/content/live/genebrokeprod/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.          * @hooked woocommerce_template_single_add_to_cart - 30
  2.          * @hooked woocommerce_template_single_meta - 40
  3.          * @hooked woocommerce_template_single_sharing - 50
  4.          * @hooked WC_Structured_Data::generate_product_data() - 60
  5.          */
  6.         do_action'woocommerce_single_product_summary' ); 
  7.         ?>
  8.     </div>
  9.     <?php
  10.     /**
require('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/content-single-product.php') in /nas/content/live/genebrokeprod/wp-includes/template.php (line 792)
  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.      *
load_template('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers_child/../genebrokers/resources/views/woocommerce/content-single-product.php', false) in /nas/content/live/genebrokeprod/wp-content/plugins/woocommerce/includes/wc-core-functions.php (line 284)
  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.
wc_get_template_part('content', 'single-product') in /tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php (line 142)
  1.       </div>
  2.     
  3.       <?php while(have_posts()): ?>
  4.           <?php
  5.             the_post();
  6.             wc_get_template_part('content''single-product');
  7.           ?>
  8.         <?php endwhile; ?>
  9.   </div>
  10. </div>
  11.   <?php
  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.         }
  2.         // Once we have the path to the compiled file, we will evaluate the paths with
  3.         // typical PHP just like any other templates. We also keep a stack of views
  4.         // which have been rendered for right exception messages to be generated.
  5.         $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         array_pop($this->lastCompiled);
  7.         return $results;
  8.     }
  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 sections get 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('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php') in /nas/content/live/genebrokeprod/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('/nas/content/live/genebrokeprod/wp-includes/template-loader.php') in /nas/content/live/genebrokeprod/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('/nas/content/live/genebrokeprod/wp-blog-header.php') in /nas/content/live/genebrokeprod/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 2

[2/2] ViewException
Illuminate\View\ViewException:
Undefined array key 0 (View: /nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/single-product.blade.php)

  at /nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php:507
  at Illuminate\View\Engines\CompilerEngine->handleViewException(object(ErrorException), 4)
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath('/tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Gene Brokers', 'search_product_cats' => array('Products', 'Semen', 'Embryos', 'AI Certificates', 'Uncategorized')))
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/Engines/CompilerEngine.php:61)
  at Illuminate\View\Engines\CompilerEngine->get('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/single-product.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Gene Brokers', 'search_product_cats' => array('Products', 'Semen', 'Embryos', 'AI Certificates', 'Uncategorized')))
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:139)
  at Illuminate\View\View->getContents()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:122)
  at Illuminate\View\View->renderContents()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:91)
  at Illuminate\View\View->render()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php:14)
  at include('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php')
     (/nas/content/live/genebrokeprod/wp-includes/template-loader.php:106)
  at require_once('/nas/content/live/genebrokeprod/wp-includes/template-loader.php')
     (/nas/content/live/genebrokeprod/wp-blog-header.php:19)
  at require('/nas/content/live/genebrokeprod/wp-blog-header.php')
     (/nas/content/live/genebrokeprod/index.php:17)                
[1/2] ErrorException
ErrorException:
Undefined array key 0

  at /nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php:507
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Undefined array key 0', '/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php', 507, array())
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Undefined array key 0', '/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php', 507)
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/functions.php:507)
  at vendor_two('')
     (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters(null, array(''))
     (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action(array(''))
     (/nas/content/live/genebrokeprod/wp-includes/plugin.php:517)
  at do_action('woocommerce_single_product_summary')
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/content-single-product.php:62)
  at require('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/content-single-product.php')
     (/nas/content/live/genebrokeprod/wp-includes/template.php:792)
  at load_template('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers_child/../genebrokers/resources/views/woocommerce/content-single-product.php', false)
     (/nas/content/live/genebrokeprod/wp-content/plugins/woocommerce/includes/wc-core-functions.php:284)
  at wc_get_template_part('content', 'single-product')
     (/tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php:142)
  at require('/tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php')
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/filesystem/Filesystem.php:107)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/filesystem/Filesystem.php:108)
  at Illuminate\Filesystem\Filesystem->getRequire('/tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Gene Brokers', 'search_product_cats' => array('Products', 'Semen', 'Embryos', 'AI Certificates', 'Uncategorized')))
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath('/tmp/sage-cache/125281909e7197ba9e528d34d7c21a4ff049e434.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Gene Brokers', 'search_product_cats' => array('Products', 'Semen', 'Embryos', 'AI Certificates', 'Uncategorized')))
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/Engines/CompilerEngine.php:61)
  at Illuminate\View\Engines\CompilerEngine->get('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/resources/views/woocommerce/single-product.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Gene Brokers', 'search_product_cats' => array('Products', 'Semen', 'Embryos', 'AI Certificates', 'Uncategorized')))
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:139)
  at Illuminate\View\View->getContents()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:122)
  at Illuminate\View\View->renderContents()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/illuminate/view/View.php:91)
  at Illuminate\View\View->render()
     (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php:14)
  at include('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php')
     (/nas/content/live/genebrokeprod/wp-includes/template-loader.php:106)
  at require_once('/nas/content/live/genebrokeprod/wp-includes/template-loader.php')
     (/nas/content/live/genebrokeprod/wp-blog-header.php:19)
  at require('/nas/content/live/genebrokeprod/wp-blog-header.php')
     (/nas/content/live/genebrokeprod/index.php:17)