How to use UB instant Layered Navigation ?

 
When I run the cli command php -f bin/magento ub-layerednav:export:run
There is an error show to me.
[Exception]
Notice: Undefined offset: 0 in D:\Phpstudy\WWW\app\code\Ubertheme\UbLayeredNavigation\Helper\Data.php on line 555
 
How to fix it ? Thank you 🙂

4 answers

Profile photo of ubdev Staff 98150.00 $tone July 15, 2017
Public

Hi King Ling,
Our team is having a 3-day holidays starting from July 14, and our office is closed at present.  
 
We know it’s not the right time to ask for delay in response to your question. We’ll get back to you as soon as possible next Monday. 
 
Thanks for your understanding and patience. 
 
Sincerely,
Ubertheme team

#1
Profile photo of Mall Staff 184060.00 $tone July 17, 2017
Public

Hi king Ling,

[Exception]
Notice: Undefined offset: 0 in D:\Phpstudy\WWW\app\code\Ubertheme\UbLayeredNavigation\Helper\Data.php on line 555

To solve the issue as you mentioned, kindly do following steps:
-- Step 1: If your Magento is production mode, please switch to default mode or developer mode by CLI command:
php -f bin/magento deploy:mode:set developer
-- Step 2: Open the php file at path app/code/Ubertheme/UbLayeredNavigation/Helper/Data.php
and find to the code line:

$value = $values[$matchedKey];

and replace it by code line:

$value = isset($values[$matchedKey]) ? $values[$matchedKey] : null;

-- Step 3:

  • Open your terminal and run commands to update new changes: rm -R var/* pub/static/*
  • Once done, kindly rerun the CLI command:
    • php -f bin/magento ub-layerednav:export:run

And tell me know how it goes.
Regards,
Mall.

#2
Profile photo of king Ling 260.00 $tone August 4, 2017
Public

We has done as you ask . But a new error code has appeared.
 
Exception --
File D:/phpstudy/www/pub/media/attribute/swatch/d/a/dathura_2.jog does not exists.
 
Looking forward to your replying.Thank you 🙂
 
 
All the best
 

#3
Profile photo of Steven 540.00 $tone August 4, 2017
Public

Hi King Ling,
The error you mentioned indicates that it’s not the issue of our UB Instant Layered Navigation. Could you explain in more details so that I can understand the context of the issue, how you see such error? 
It would be best if you could move your instance to live site, where we could have a closer look and help you out.
Best Regards,
Steven

#4

Please login or Register to Submit Answer

Written By

Comments