cancel
Showing results for 
Search instead for 
Did you mean: 

system

system

Hi, I use Magento 1.9.2.4

I get error notification in my system.log

This is the errorlog:

2017-09-23T00:00:17+00:00 ERR (3): Notice: Undefined index: description in /home/superyfo/public_html/app/design/frontend/default/ma_perseus/template/bss/advancedsearchfastautocomplete/advancedsearch.phtml on line 94

 

When I look at the file I see this code from line 72-102

 

var products_short_des = new Bloodhound({
datumTokenizer: function(d) {
return Bloodhound.tokenizers.whitespace(d.short_description);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: {
<?php if($searchby['short_description']) : ?>
url: '<?php echo Mage::helper('advancedsearchfastautocomplete')->checkSearchBy(1) ?>',
<?php else : ?>
url: '<?php echo Mage::helper('advancedsearchfastautocomplete')->checkSearchBy(0) ?>',
<?php endif ?>
cacheKey: '<?php echo Mage::getBaseUrl().Mage::app()->getStore()->getStoreId() ?>'+'product_short_des',
},
limit: limit,
});
var products_des = new Bloodhound({
datumTokenizer: function(d) {
return Bloodhound.tokenizers.whitespace(d.description);
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: {
<?php if($searchby['description']) : ?>
url: '<?php echo Mage::helper('advancedsearchfastautocomplete')->checkSearchBy(1) ?>',
<?php else : ?>
url: '<?php echo Mage::helper('advancedsearchfastautocomplete')->checkSearchBy(0) ?>',
<?php endif ?>
cacheKey: '<?php echo Mage::getBaseUrl().Mage::app()->getStore()->getStoreId() ?>'+'product_des',
},
limit: limit,
});

 

Anyboady can help me undrestand why I get this notification? And how can I solve it?

 

3 REPLIES 3

Re: system

Hi @emilshamloo,

 

It seems that "description" property is not available and that's why you got that error.

Since I can't see the whole code I can't add more info.

Maybe that attribute isn't available on advanced search.

Re: system

Thanks Damian for replying me :-)

Since I am a newbie, I need more instructions

Here is the file in google drive

https://drive.google.com/file/d/0Bw1rWsupPVBXd1dGS0M1WVNsQTQ/view?usp=sharing

Re: system

Hi @emilshamloo,

 

You're using a custom module so I can't be sure because isn't part of Magento and I don't have the full code.

If the module is from a 3rd-party vendor maybe you can ask for support?