$shipping_options_by_seller_id = "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
$queryResults = $wpdb->get_results($shipping_options_by_seller_id);
$i = 0;
$shipping_bool = get_post_meta($product->get_id(), '_disable_shipping');
?>
<?php if($shipping_bool[0] == 'no'):?>
<div class="data_product">
<ul>
<li>
<p class="title-data">
<?php
// 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.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @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 sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @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';
$shipping_options_by_seller_id = "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
$queryResults = $wpdb->get_results($shipping_options_by_seller_id);
$i = 0;
$shipping_bool = get_post_meta($product->get_id(), '_disable_shipping');
?>
<?php if($shipping_bool[0] == 'no'):?>
<div class="data_product">
<ul>
<li>
<p class="title-data">
<?php
* @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;
}
$shipping_options_by_seller_id = "SELECT seller_id, settings, method_id, instance_id FROM ".$wpdb->prefix."dokan_shipping_zone_methods WHERE seller_id = $seller";
$queryResults = $wpdb->get_results($shipping_options_by_seller_id);
$i = 0;
$shipping_bool = get_post_meta($product->get_id(), '_disable_shipping');
?>
<?php if($shipping_bool[0] == 'no'):?>
<div class="data_product">
<ul>
<li>
<p class="title-data">
<?php
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
* @hooked WC_Structured_Data::generate_product_data() - 60
*/
do_action( 'woocommerce_single_product_summary' );
?>
</div>
<?php
/**
do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
if ( $load_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
// Allow 3rd party plugins to filter template file from their plugin.
$template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
if ( $template ) {
load_template( $template, false );
}
}
/**
* Get other templates (e.g. product attributes) passing attributes and including the file.
</div>
<?php while(have_posts()): ?>
<?php
the_post();
wc_get_template_part('content', 'single-product');
?>
<?php endwhile; ?>
</div>
</div>
<?php
$__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.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @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 sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @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: 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) |