ErrorException (E_ERROR)
Invalid argument supplied for foreach() (View: /home/nx7r9wq/public_html/wp-content/themes/advancedice/resources/views/woocommerce/single-product.blade.php) ErrorException thrown with message "Invalid argument supplied for foreach() (View: /home/nx7r9wq/public_html/wp-content/themes/advancedice/resources/views/woocommerce/single-product.blade.php)" Stacktrace: #23 ErrorException in /home/nx7r9wq/public_html/wp-content/uploads/cache/34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php:24 #22 Whoops\Exception\ErrorException in /home/nx7r9wq/public_html/wp-content/uploads/cache/34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php:24 #21 Whoops\Run:handleError in /home/nx7r9wq/public_html/wp-content/uploads/cache/34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php:24 #20 include in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/Engines/PhpEngine.php:43 #19 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/Engines/CompilerEngine.php:59 #18 Illuminate\View\Engines\CompilerEngine:get in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:142 #17 Illuminate\View\View:getContents in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:125 #16 Illuminate\View\View:renderContents in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:90 #15 Illuminate\View\View:render in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/roots/sage-lib/Template/Blade.php:58 #14 Roots\Sage\Template\Blade:render in /home/nx7r9wq/public_html/wp-content/themes/advancedice/app/helpers.php:63 #13 App\template in /home/nx7r9wq/public_html/wp-content/themes/advancedice/resources/woocommerce/single-product.php:20 #12 include in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/Engines/PhpEngine.php:43 #11 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/Engines/PhpEngine.php:21 #10 Illuminate\View\Engines\PhpEngine:get in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:142 #9 Illuminate\View\View:getContents in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:125 #8 Illuminate\View\View:renderContents in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/illuminate/view/View.php:90 #7 Illuminate\View\View:render in /home/nx7r9wq/public_html/wp-content/themes/advancedice/vendor/roots/sage-lib/Template/Blade.php:58 #6 Roots\Sage\Template\Blade:render in /home/nx7r9wq/public_html/wp-content/themes/advancedice/app/helpers.php:63 #5 App\template in /home/nx7r9wq/public_html/wp-content/themes/advancedice/app/filters.php:64 #4 App\{closure} in /home/nx7r9wq/public_html/wp-includes/class-wp-hook.php:324 #3 WP_Hook:apply_filters in /home/nx7r9wq/public_html/wp-includes/plugin.php:205 #2 apply_filters in /home/nx7r9wq/public_html/wp-includes/template-loader.php:104 #1 require_once in /home/nx7r9wq/public_html/wp-blog-header.php:19 #0 require in /home/nx7r9wq/public_html/index.php:17
Stack frames (24)
23
ErrorException
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
24
22
Whoops
\
Exception
\
ErrorException
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
24
21
Whoops
\
Run
handleError
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
24
20
include
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
43
19
Illuminate
\
View
\
Engines
\
PhpEngine
evaluatePath
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
59
18
Illuminate
\
View
\
Engines
\
CompilerEngine
get
/
vendor
/
illuminate
/
view
/
View.php
142
17
Illuminate
\
View
\
View
getContents
/
vendor
/
illuminate
/
view
/
View.php
125
16
Illuminate
\
View
\
View
renderContents
/
vendor
/
illuminate
/
view
/
View.php
90
15
Illuminate
\
View
\
View
render
/
vendor
/
roots
/
sage-lib
/
Template
/
Blade.php
58
14
Roots
\
Sage
\
Template
\
Blade
render
/
app
/
helpers.php
63
13
App
\
template
/
resources
/
woocommerce
/
single-product.php
20
12
include
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
43
11
Illuminate
\
View
\
Engines
\
PhpEngine
evaluatePath
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
21
10
Illuminate
\
View
\
Engines
\
PhpEngine
get
/
vendor
/
illuminate
/
view
/
View.php
142
9
Illuminate
\
View
\
View
getContents
/
vendor
/
illuminate
/
view
/
View.php
125
8
Illuminate
\
View
\
View
renderContents
/
vendor
/
illuminate
/
view
/
View.php
90
7
Illuminate
\
View
\
View
render
/
vendor
/
roots
/
sage-lib
/
Template
/
Blade.php
58
6
Roots
\
Sage
\
Template
\
Blade
render
/
app
/
helpers.php
63
5
App
\
template
/
app
/
filters.php
64
4
App
\
{closure}
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
class-wp-hook.php
324
3
WP_Hook
apply_filters
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
plugin.php
205
2
apply_filters
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
template-loader.php
104
1
require_once
/
home
/
nx7r9wq
/
public_html
/
wp-blog-header.php
19
0
require
/
home
/
nx7r9wq
/
public_html
/
index.php
17
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
 
  <?php endwhile; // end of the loop. ?>
 
  <?php if( have_rows ( 'modules' ) ) : $i = 0; while(have_rows('modules')): the_row(); $i++; ?>
  <?php echo $__env->make('modules.' . App::moduleName(), \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  <?php echo e("\r\n"); ?>
 
  <?php endwhile; endif; ?>
<?php $__env->stopSection(); ?>
 
<?php $__env->startSection('script'); ?>
    <script>
        $(document).ready(function () {
            // Variables
            let currencySymbol = '<?php echo get_woocommerce_currency_symbol(); ?>';
 
            <?php
                $pricing_table = [];
                $pricing_fields = get_field('in8_qty_pricing');
                foreach ($pricing_fields as $field) {
                    $pricing_table[$field['from'] . '-' . $field['to']] = $field['price'];
                }
            ?>
            let pricingTable = <?= json_encode($pricing_table); ?>;
 
            // Update quantity on 'a.button' in 'data-quantity' attribute (for ajax)
            $('form.cart').on('input', 'input.qty', function() {
                if ($(this).val() <= '0') {
                    $(this).val('1');
                }
                $(this).closest('form.cart').find('a.add_to_cart_button').attr('data-quantity', $(this).val());
            });
 
            // Quantity price change
            $('body').on('change', '[name=quantity]', function(){
                if (!(this.value < 1)) {
                    let totalPrice = 0;
 
                    // Get correct pricing depending on data
                    for (const [range, price] of Object.entries(pricingTable)) {
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
 
  <?php endwhile; // end of the loop. ?>
 
  <?php if( have_rows ( 'modules' ) ) : $i = 0; while(have_rows('modules')): the_row(); $i++; ?>
  <?php echo $__env->make('modules.' . App::moduleName(), \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  <?php echo e("\r\n"); ?>
 
  <?php endwhile; endif; ?>
<?php $__env->stopSection(); ?>
 
<?php $__env->startSection('script'); ?>
    <script>
        $(document).ready(function () {
            // Variables
            let currencySymbol = '<?php echo get_woocommerce_currency_symbol(); ?>';
 
            <?php
                $pricing_table = [];
                $pricing_fields = get_field('in8_qty_pricing');
                foreach ($pricing_fields as $field) {
                    $pricing_table[$field['from'] . '-' . $field['to']] = $field['price'];
                }
            ?>
            let pricingTable = <?= json_encode($pricing_table); ?>;
 
            // Update quantity on 'a.button' in 'data-quantity' attribute (for ajax)
            $('form.cart').on('input', 'input.qty', function() {
                if ($(this).val() <= '0') {
                    $(this).val('1');
                }
                $(this).closest('form.cart').find('a.add_to_cart_button').attr('data-quantity', $(this).val());
            });
 
            // Quantity price change
            $('body').on('change', '[name=quantity]', function(){
                if (!(this.value < 1)) {
                    let totalPrice = 0;
 
                    // Get correct pricing depending on data
                    for (const [range, price] of Object.entries(pricingTable)) {
Exception message: Invalid argument supplied for foreach()
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
uploads
/
cache
/
34c32997a3edd3ee5d4ff4181bfa01d0da76bfd5.php
 
  <?php endwhile; // end of the loop. ?>
 
  <?php if( have_rows ( 'modules' ) ) : $i = 0; while(have_rows('modules')): the_row(); $i++; ?>
  <?php echo $__env->make('modules.' . App::moduleName(), \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  <?php echo e("\r\n"); ?>
 
  <?php endwhile; endif; ?>
<?php $__env->stopSection(); ?>
 
<?php $__env->startSection('script'); ?>
    <script>
        $(document).ready(function () {
            // Variables
            let currencySymbol = '<?php echo get_woocommerce_currency_symbol(); ?>';
 
            <?php
                $pricing_table = [];
                $pricing_fields = get_field('in8_qty_pricing');
                foreach ($pricing_fields as $field) {
                    $pricing_table[$field['from'] . '-' . $field['to']] = $field['price'];
                }
            ?>
            let pricingTable = <?= json_encode($pricing_table); ?>;
 
            // Update quantity on 'a.button' in 'data-quantity' attribute (for ajax)
            $('form.cart').on('input', 'input.qty', function() {
                if ($(this).val() <= '0') {
                    $(this).val('1');
                }
                $(this).closest('form.cart').find('a.add_to_cart_button').attr('data-quantity', $(this).val());
            });
 
            // Quantity price change
            $('body').on('change', '[name=quantity]', function(){
                if (!(this.value < 1)) {
                    let totalPrice = 0;
 
                    // Get correct pricing depending on data
                    for (const [range, price] of Object.entries(pricingTable)) {
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // 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 {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($path);
 
        // 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($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
        $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();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each 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();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($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
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
roots
/
sage-lib
/
Template
/
Blade.php
    public function compiler()
    {
        static $engineResolver;
        if (!$engineResolver) {
            $engineResolver = $this->getContainer()->make('view.engine.resolver');
        }
        return $engineResolver->resolve('blade')->getCompiler();
    }
 
    /**
     * @param string $view
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function render($view, $data = [], $mergeData = [])
    {
        /** @var \Illuminate\Contracts\Filesystem\Filesystem $filesystem */
        $filesystem = $this->getContainer()['files'];
        return $this->{$filesystem->exists($view) ? 'file' : 'make'}($view, $data, $mergeData)->render();
    }
 
    /**
     * @param string $file
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function compiledPath($file, $data = [], $mergeData = [])
    {
        $rendered = $this->file($file, $data, $mergeData);
        /** @var EngineInterface $engine */
        $engine = $rendered->getEngine();
 
        if (!($engine instanceof CompilerEngine)) {
            // Using PhpEngine, so just return the file
            return $file;
        }
 
        $compiler = $engine->getCompiler();
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
app
/
helpers.php
    }
    return sage('config')->get($key, $default);
}

/**
 * @param $tag
 * @param $callback
 */
function directive($tag, $callback) {
    sage('blade')->compiler()->directive($tag, $callback);
}

/**
 * @param string $file
 * @param array $data
 * @return string
 */
function template($file, $data = [])
{
    return sage('blade')->render($file, $data);
}

/**
 * Retrieve path to a compiled blade view
 * @param $file
 * @param array $data
 * @return string
 */
function template_path($file, $data = [])
{
    return sage('blade')->compiledPath($file, $data);
}

/**
 * @param $asset
 * @return string
 */
function asset_path($asset)
{
    return sage('assets')->getUri($asset);
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
resources
/
woocommerce
/
single-product.php
<?php
/**
 * The Template for displaying all single products
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see         https://docs.woocommerce.com/document/template-structure/
 * @author         WooThemes
 * @package     WooCommerce/Templates
 * @version     1.6.4
 */
defined( 'ABSPATH' ) || exit;
 
echo App\Template('woocommerce.single-product');
 
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // 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 {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
 
namespace Illuminate\View\Engines;
 
use Exception;
use Throwable;
use Illuminate\Contracts\View\Engine;
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
class PhpEngine implements Engine
{
    /**
     * Get the evaluated contents of the view.
     *
     * @param  string  $path
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        return $this->evaluatePath($path, $data);
    }
 
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // 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.
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
        $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();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each 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();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
illuminate
/
view
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($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
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
vendor
/
roots
/
sage-lib
/
Template
/
Blade.php
    public function compiler()
    {
        static $engineResolver;
        if (!$engineResolver) {
            $engineResolver = $this->getContainer()->make('view.engine.resolver');
        }
        return $engineResolver->resolve('blade')->getCompiler();
    }
 
    /**
     * @param string $view
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function render($view, $data = [], $mergeData = [])
    {
        /** @var \Illuminate\Contracts\Filesystem\Filesystem $filesystem */
        $filesystem = $this->getContainer()['files'];
        return $this->{$filesystem->exists($view) ? 'file' : 'make'}($view, $data, $mergeData)->render();
    }
 
    /**
     * @param string $file
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function compiledPath($file, $data = [], $mergeData = [])
    {
        $rendered = $this->file($file, $data, $mergeData);
        /** @var EngineInterface $engine */
        $engine = $rendered->getEngine();
 
        if (!($engine instanceof CompilerEngine)) {
            // Using PhpEngine, so just return the file
            return $file;
        }
 
        $compiler = $engine->getCompiler();
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
app
/
helpers.php
    }
    return sage('config')->get($key, $default);
}

/**
 * @param $tag
 * @param $callback
 */
function directive($tag, $callback) {
    sage('blade')->compiler()->directive($tag, $callback);
}

/**
 * @param string $file
 * @param array $data
 * @return string
 */
function template($file, $data = [])
{
    return sage('blade')->render($file, $data);
}

/**
 * Retrieve path to a compiled blade view
 * @param $file
 * @param array $data
 * @return string
 */
function template_path($file, $data = [])
{
    return sage('blade')->compiledPath($file, $data);
}

/**
 * @param $asset
 * @return string
 */
function asset_path($asset)
{
    return sage('assets')->getUri($asset);
/
home
/
nx7r9wq
/
public_html
/
wp-content
/
themes
/
advancedice
/
app
/
filters.php
 
/**
 * Render page using Blade
 */
add_filter('template_include', function ($template) {
    // Important!!
    collect(['get_header', 'wp_head'])->each(function ($tag) {
        ob_start();
        do_action($tag);
        $output = ob_get_clean();
        remove_all_actions($tag);
        add_action($tag, function () use ($output) {
            echo $output;
        });
    });
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
        return apply_filters("sage/template/{$class}/data", $data, $template);
    }, []);
    if ($template) {
        echo template($template, $data);
        return get_stylesheet_directory().'/index.php';
    }
    return $template;
}, PHP_INT_MAX);
 
/**
 * Tell WordPress how to find the compiled path of comments.blade.php
 */
add_filter('comments_template', function ($comments_template) {
    $comments_template = str_replace(
        [get_stylesheet_directory(), get_template_directory()],
        '',
        $comments_template
    );
    return template_path(locate_template(["views/{$comments_template}", $comments_template]) ?: $comments_template);
});
 
/**
 * Custom WooCommerce API Response
 */
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // 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 ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/
home
/
nx7r9wq
/
public_html
/
wp-includes
/
template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @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() );
        }
    }
    return;
}
 
/
home
/
nx7r9wq
/
public_html
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/
home
/
nx7r9wq
/
public_html
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

Key Value
add-to-cart 1639
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE LiteSpeed
REQUEST_URI /products/nav-ken-s1/?add-to-cart=1639
PATH /usr/local/bin:/bin:/usr/bin
HTTP_ACCEPT */*
HTTP_HOST advancedice.com.au
HTTP_USER_AGENT claudebot
HTTP_X_HTTPS 1
DOCUMENT_ROOT /home/nx7r9wq/public_html
REMOTE_ADDR 44.192.53.34
REMOTE_PORT 39698
SERVER_ADDR 103.4.234.72
SERVER_NAME advancedice.com.au
SERVER_ADMIN webmaster@advancedice.com.au
SERVER_PORT 443
REQUEST_SCHEME https
REDIRECT_URL /products/nav-ken-s1/
REDIRECT_QUERY_STRING add-to-cart=1639
REDIRECT_REQUEST_METHOD GET
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/nx7r9wq/public_html/index.php
QUERY_STRING add-to-cart=1639
SCRIPT_URI https://advancedice.com.au/products/nav-ken-s1/
SCRIPT_URL /products/nav-ken-s1/
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711643152.2317
REQUEST_TIME 1711643152
argv Array ( [0] => add-to-cart=1639 )
argc 1
DEV true
DEV_ADMIN false
CUSTOM_MAIL_ENABLED false
MAIL_PORT 1025
MAIL_HOST localhost
MAIL_PASSWORD
MAIL_USERNAME
MAIL_ENCRYPTION tls
MAIL_SMTP_AUTH true
MAIL_FROM test@test.com
MAIL_FROM_NAME ADMIN
Key Value
DEV true
DEV_ADMIN false
CUSTOM_MAIL_ENABLED false
MAIL_PORT 1025
MAIL_HOST localhost
MAIL_PASSWORD
MAIL_USERNAME
MAIL_ENCRYPTION tls
MAIL_SMTP_AUTH true
MAIL_FROM test@test.com
MAIL_FROM_NAME ADMIN
0. Whoops\Handler\PrettyPageHandler