Unhandled Error!

Undefined offset: 1

Document /modules/arpsoftnavigation/classes/arpsoftnavigation_shopbreadcrumbs.php
Document type PHP document
Line 126
Exception class Phpr_PhpException

Code Highlight

    }
 
    public function getCategory($index)
    {
        // This is dying for products that have a disabled category in their path
        // as the parent list has only one entry in it.
        return $this->parent_categories[$index];
    }
 
    public function crumbs($depth = null)
    {
        if (isset($depth) && $depth < count($this->crumbs)) {
            return array_slice($this->crumbs, 0, $depth);
# Call Stack Code Document Line
28 ArpsoftNavigation_ShopBreadcrumbs->getCategory(1)
27 call_user_func_array(array(2) [0 => object(ArpsoftNavigation_ShopBreadcrumbs), 1 => 'getCategory'], array(1) [0 => '1']) /modules/core/thirdpart/Twig/Template.php 428
26 Twig_Template->getAttribute(object(ArpsoftNavigation_ShopBreadcrumbs), 'getCategory', array(1) [0 => '1'], 'method') /temp/twig_cache/yarra_valley_trading_1_0/71/44/9df83dddaaedda53cf345c06936c.php 13
25 __TwigTemplate_71449df83dddaaedda53cf345c06936c->doDisplay(array(7) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller), site_settings => object(stdClass)], array(0)) /modules/core/thirdpart/Twig/Template.php 269
24 Twig_Template->displayWithErrorHandling(array(7) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller), site_settings => object(stdClass)], array(0)) /modules/core/thirdpart/Twig/Template.php 230
23 Twig_Template->display(array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Template.php 241
22 Twig_Template->render(array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Environment.php 283
21 Twig_Environment->render('CMS partial - yvt:widget:store_menu', array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/classes/core_twig.php 38
20 Core_Twig->parse('{% set breadcrumbs = method('ArpsoftNavigation_Breadcrumbs', 'get', this) %} {% set category = breadcrumbs.getCategory(1) %} <div class="store-menu-wrapper"> {{render_partial("yvt:widget:category_menu", {'class_names':'store-menu', 'parent_category': category})}} </div>', array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)], 'CMS partial - yvt:widget:store_menu') /modules/cms/classes/cms_controller.php 389
19 Cms_Controller->evalWithException('?>{% set breadcrumbs = method('ArpsoftNavigation_Breadcrumbs', 'get', this) %} {% set category = breadcrumbs.getCategory(1) %} <div class="store-menu-wrapper"> {{render_partial("yvt:widget:category_menu", {'class_names':'store-menu', 'parent_category': category})}} </div>', 'CMS partial', 'yvt:widget:store_menu', array(0)) /modules/cms/classes/cms_controller.php 1020
18 Cms_Controller->render_partial('yvt:widget:store_menu', array(0), array(3) [cache => '1', cache_vary_by => array(1), cache_versions => array(1)]) /modules/cms/classes/cms_twigcontrollerextension.php 41
17 Cms_TwigControllerExtension->render_partial('yvt:widget:store_menu', array(0), array(3) [cache => '1', cache_vary_by => array(1), cache_versions => array(1)]) /temp/twig_cache/yarra_valley_trading_1_0/a2/02/7e62339a564912c6ea638061bccf.php 126
16 __TwigTemplate_a2027e62339a564912c6ea638061bccf->doDisplay(array(7) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller), site_settings => object(stdClass)], array(0)) /modules/core/thirdpart/Twig/Template.php 269
15 Twig_Template->displayWithErrorHandling(array(7) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller), site_settings => object(stdClass)], array(0)) /modules/core/thirdpart/Twig/Template.php 230
14 Twig_Template->display(array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Template.php 241
13 Twig_Template->render(array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Environment.php 283
12 Twig_Environment->render('CMS template - Store', array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)]) /modules/core/classes/core_twig.php 38
11 Core_Twig->parse('{% set breadcrumbs = method('ArpsoftNavigation_Breadcrumbs', 'get', this) %} {% set wine_category = method('Shop_Category', 'create').find_by_code('wine_parent_category') %} {{ render_partial('yvt:layout:page_begin', {'body_class': body_class}) }} {{ render_partial('yvt:layout:navigation_begin') }} {{ dtick('store_layout:partial:store_breadcrumbs') }} {{ render_partial('yvt:widget:store_breadcrumbs') }} {{ dtick('store_layout:partial:store_breadcrumbs') }} <div class="nav_bar"> <table class="store-menu-layout" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="left-content"> {{ dtick('store_layout:partial:store_navbar') }} {{ render_partial('yvt:widget:store_navbar', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog'] }) }} {{ dtick('store_layout:partial:store_navbar') }} </td> <td class="right-content"> <div> {% if not no_search_form %} {{ dtick('store_layout:partial:search_form') }} {{ render_partial('shop:search_form', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog']}) }} {{ dtick('store_layout:partial:search_form') }} {% endif %} </div> </td> </tr> </table> </div> {{ render_partial('yvt:layout:navigation_end') }} {{ render_partial('yvt:layout:row_begin', {'id':'home-wrapper', 'layout':'left-sidebar'}) }} {{ render_partial('yvt:layout:area_begin', {'name': 'main'}) }} <div id="page"> {{ dtick('store_layout:render_page') }} {{ render_page() }} {{ dtick('store_layout:render_page') }} </div> {{ render_partial('yvt:layout:area_end') }} {{ render_partial('yvt:layout:area_begin', {'name': 'left-sidebar'}) }} {{ dtick('store_layout:partial:store_menu') }} {{ render_partial('yvt:widget:store_menu', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog']}) }} {{ dtick('store_layout:partial:store_menu') }} {{ render_partial('yvt:widget:compare_products') }} <div class="sidebar_extra"> {% if wine_category and breadcrumbs.isInPath(wine_category) %} <div class="liquor_license"> {{ global_content_block('liquor_license') }} </div> {% endif %} </div> <div class="sidebar_extra"> {{ render_block('sidebar_extra') }} </div> {{ render_partial('yvt:layout:area_end') }} {{ render_partial('yvt:layout:row_end') }} {{ render_partial('yvt:layout:page_end') }}', array(6) [cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '', product => object(Shop_Product), breadcrumbs => object(ArpsoftNavigation_ShopBreadcrumbs), this => object(Cms_Controller)], 'CMS template - Store') /modules/cms/classes/cms_controller.php 389
10 Cms_Controller->evalWithException('?>{% set breadcrumbs = method('ArpsoftNavigation_Breadcrumbs', 'get', this) %} {% set wine_category = method('Shop_Category', 'create').find_by_code('wine_parent_category') %} {{ render_partial('yvt:layout:page_begin', {'body_class': body_class}) }} {{ render_partial('yvt:layout:navigation_begin') }} {{ dtick('store_layout:partial:store_breadcrumbs') }} {{ render_partial('yvt:widget:store_breadcrumbs') }} {{ dtick('store_layout:partial:store_breadcrumbs') }} <div class="nav_bar"> <table class="store-menu-layout" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="left-content"> {{ dtick('store_layout:partial:store_navbar') }} {{ render_partial('yvt:widget:store_navbar', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog'] }) }} {{ dtick('store_layout:partial:store_navbar') }} </td> <td class="right-content"> <div> {% if not no_search_form %} {{ dtick('store_layout:partial:search_form') }} {{ render_partial('shop:search_form', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog']}) }} {{ dtick('store_layout:partial:search_form') }} {% endif %} </div> </td> </tr> </table> </div> {{ render_partial('yvt:layout:navigation_end') }} {{ render_partial('yvt:layout:row_begin', {'id':'home-wrapper', 'layout':'left-sidebar'}) }} {{ render_partial('yvt:layout:area_begin', {'name': 'main'}) }} <div id="page"> {{ dtick('store_layout:render_page') }} {{ render_page() }} {{ dtick('store_layout:render_page') }} </div> {{ render_partial('yvt:layout:area_end') }} {{ render_partial('yvt:layout:area_begin', {'name': 'left-sidebar'}) }} {{ dtick('store_layout:partial:store_menu') }} {{ render_partial('yvt:widget:store_menu', {}, { 'cache': true, 'cache_vary_by': ['url'], 'cache_versions': ['catalog']}) }} {{ dtick('store_layout:partial:store_menu') }} {{ render_partial('yvt:widget:compare_products') }} <div class="sidebar_extra"> {% if wine_category and breadcrumbs.isInPath(wine_category) %} <div class="liquor_license"> {{ global_content_block('liquor_license') }} </div> {% endif %} </div> <div class="sidebar_extra"> {{ render_block('sidebar_extra') }} </div> {{ render_partial('yvt:layout:area_end') }} {{ render_partial('yvt:layout:row_end') }} {{ render_partial('yvt:layout:page_end') }}', 'CMS template', 'Store') /modules/cms/classes/cms_controller.php 211
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'hire-bistro-cafe-milk-creamer']) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/product/hire-bistro-cafe-milk-creamer') /phproad/system/phproad.php 31
2 include('/home/yarraval/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/yarraval/public_html/boot.php') /index.php 3