boxalino / plugin-magento2

boxalino plugin for Magento 2
1 stars 6 forks source link

Exception "Trying to get property of non-object" with some search strings #23

Closed heldchen closed 8 years ago

heldchen commented 8 years ago

for example https://mysite.com/catalogsearch/result/?q=g-677

1 exception(s):
Exception #0 (Exception): Notice: Trying to get property of non-object in /srv/httpd/test/src/www/app/code/Boxalino/Intelligence/Lib/BxChooseResponse.php on line 131

Exception #0 (Exception): Notice: Trying to get property of non-object in /srv/httpd/test/src/www/app/code/Boxalino/Intelligence/Lib/BxChooseResponse.php on line 131
#0 /srv/httpd/test/src/www/app/code/Boxalino/Intelligence/Lib/BxChooseResponse.php(131): Magento\Framework\App\ErrorHandler->handler(8, 'Trying to get p...', '/srv/httpd/test...', 131, Array)
#1 /srv/httpd/test/src/www/app/code/Boxalino/Intelligence/Helper/P13n/Adapter.php(462): com\boxalino\bxclient\v1\BxChooseResponse->getFacets('search')
#2 /srv/httpd/test/src/www/app/code/Boxalino/Intelligence/Model/FilterList.php(78): Boxalino\Intelligence\Helper\P13n\Adapter->getFacets()
tatsuya1 commented 8 years ago

Should be fixed with the latest commit.

heldchen commented 8 years ago

yep, can confirm the exception is fixed, but the result page looks weird:

image

the real search string was "g-677"

tatsuya1 commented 8 years ago

It's server side, we have to look at it on monday when sylvain is back.

heldchen commented 8 years ago

perfect, thanks! have a good weekend

tatsuya1 commented 8 years ago

The conclusion with Sylvain was that it's server side. We will be fixing this issue asap. Please close this ticket, as it is not related to the plugin. If you would like to address this issue further, please write a ticket at: support@boxalino.com. Thank you.

heldchen commented 8 years ago

sure. please let me know when you had a chance to fix this server side.