cancel
Showing results for 
Search instead for 
Did you mean: 

Product Category page error

SOLVED

Product Category page error

Hi,

 

I'm running into an issue with the product category page as soon as I add a product. Pasted error message below: I already tried to uninstall plugins, and revert back to the basic magento/black theme. Thank you

{"0":"Type Error occurred when creating object: Magento\\Framework\\Search\\Response\\QueryResponse","1":"#1 Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\Framewor...', array('documents' => array(&Magento\\Framework\\Api\\Search\\Document#00000000632c4e69000000003e6fc67d#), 'aggregations' => &Magento\\Framework\\Search\\Response\\Aggregation#00000000632c4e03000000003e6fc67d#, 'total' => array('value' => 1, 'relation' => 'eq'))) called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n#2 Magento\\Framework\\ObjectManager\\ObjectManager->create('Magento\\Framewor...', array('documents' => array(&Magento\\Framework\\Api\\Search\\Document#00000000632c4e69000000003e6fc67d#), 'aggregations' => &Magento\\Framework\\Search\\Response\\Aggregation#00000000632c4e03000000003e6fc67d#, 'total' => array('value' => 1, 'relation' => 'eq'))) called at [vendor\/magento\/module-elasticsearch\/SearchAdapter\/ResponseFactory.php:79]\n#3 Magento\\Elasticsearch\\SearchAdapter\\ResponseFactory->create(array('documents' => array(array('_index' => 'magento2_product...', '_type' => 'document', '_id' => 9, '_score' => NULL, 'sort' => array(0))), 'aggregations' => array('price_bucket' => array('17990_*' => array('value' => '17990_*', 'count' => 1)), 'category_bucket' => array(array('value' => 2, 'count' => 1), array('value' => 3, 'count' => 1), array('value' => 4, 'count' => 1)), 'manufacturer_buc...' => array(), 'color_bucket' => array(array('value' => 22, 'count' => 1)), 'material_bucket' => array(), 'shape_bucket' => array(), 'hinge_type_bucke...' => array(), 'rim_type_bucket' => array()), 'total' => array('value' => 1, 'relation' => 'eq'))) called at [vendor\/magento\/module-elasticsearch\/Elasticsearch5\/SearchAdapter\/Adapter.php:123]\n#4 Magento\\Elasticsearch\\Elasticsearch5\\SearchAdapter\\Adapter->query(&Magento\\Framework\\Search\\Request#00000000632c4f0a000000003e6fc67d#) called at [vendor\/magento\/module-search\/Model\/SearchEngine.php:42]\n#5 Magento\\Search\\Model\\SearchEngine->search(&Magento\\Framework\\Search\\Request#00000000632c4f0a000000003e6fc67d#) called at [vendor\/magento\/framework\/Search\/Search.php:85]\n#6 Magento\\Framework\\Search\\Search->search(&Magento\\Framework\\Api\\Search\\SearchCriteria#00000000632c4f61000000003e6fc67d#) called at [vendor\/magento\/module-catalog-search\/Model\/ResourceModel\/Fulltext\/Collection.php:465]\n#7 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection->_renderFiltersBefore() called at [vendor\/magento\/framework\/Data\/Collection\/AbstractDb.php:343]\n#8 Magento\\Framework\\Data\\Collection\\AbstractDb->_renderFilters() called at [vendor\/magento\/module-catalog-search\/Model\/ResourceModel\/Fulltext\/Collection.php:583]\n#9 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection->_renderFilters() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:923]\n#10 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->load(false, false) called at [vendor\/magento\/module-catalog\/Model\/ResourceModel\/Product\/Collection.php:832]\n#11 Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection->load(false, false) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#12 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection\\Interceptor->___callParent('load', array(false, false)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#13 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#14 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection\\Interceptor->___callPlugins('load', array(), array(array('add_stock_inform...'))) called at [generated\/code\/Magento\/CatalogSearch\/Model\/ResourceModel\/Fulltext\/Collection\/Interceptor.php:364]\n#15 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection\\Interceptor->load() called at [vendor\/magento\/framework\/Data\/Collection.php:839]\n#16 Magento\\Framework\\Data\\Collection->getIterator() called at [generated\/code\/Magento\/CatalogSearch\/Model\/ResourceModel\/Fulltext\/Collection\/Interceptor.php:1857]\n#17 Magento\\CatalogSearch\\Model\\ResourceModel\\Fulltext\\Collection\\Interceptor->getIterator() called at [vendor\/magento\/module-catalog\/Block\/Product\/ListProduct.php:366]\n#18 Magento\\Catalog\\Block\\Product\\ListProduct->getIdentities() called at [generated\/code\/Magento\/Catalog\/Block\/Product\/ListProduct\/Interceptor.php:154]\n#19 Magento\\Catalog\\Block\\Product\\ListProduct\\Interceptor->getIdentities() called at [vendor\/magento\/module-page-cache\/Model\/Layout\/LayoutPlugin.php:84]\n#20 Magento\\PageCache\\Model\\Layout\\LayoutPlugin->afterGetOutput(&Magento\\Framework\\View\\Layout\\Interceptor#00000000632c4503000000003e6fc67d#, '\\n\\n<div id=\"cooki...') called at [vendor\/magento\/framework\/Interception\/Interceptor.php:146]\n#21 Magento\\Framework\\View\\Layout\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#22 Magento\\Framework\\View\\Layout\\Interceptor->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:494]\n#23 Magento\\Framework\\View\\Layout\\Interceptor->getOutput() called at [vendor\/magento\/framework\/View\/Result\/Page.php:258]\n#24 Magento\\Framework\\View\\Result\\Page->render(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#) called at [vendor\/magento\/framework\/View\/Result\/Layout.php:171]\n#25 Magento\\Framework\\View\\Result\\Layout->renderResult(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#26 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callParent('renderResult', array(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#)) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#27 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#) called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#28 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callPlugins('renderResult', array(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated\/code\/Magento\/Framework\/View\/Result\/Page\/Interceptor.php:130]\n#29 Magento\\Framework\\View\\Result\\Page\\Interceptor->renderResult(&Magento\\Framework\\App\\Response\\Http\\Interceptor#00000000632c4704000000003e6fc67d#) called at [vendor\/magento\/framework\/App\/Http.php:120]\n#30 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:24]\n#31 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:263]\n#32 Magento\\Framework\\App\\Bootstrap->run(&Magento\\Framework\\App\\Http\\Interceptor#00000000632c471d000000003e6fc67d#) called at [index.php:39]\n","url":"\/index.php\/frames\/adult-frames.html","script_name":"\/index.php","report_id":"fdfc0edb9a746663bfe70c6cf7739e0a03e66f55ba5df4ed0f332488e901ce1b"}

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Product Category page error

Hi all,

 

Just a quick rundown:

1. I was using bitnami magento for azure so everything was "packaged" 

2. It was a clean install, we used the same bitnami magento for azure a month ago, and everything ran smoothly.

3. This is our 2nd installation, Our previous install had other issues (which is not related to this) which drove us to just starting fresh.
4. catalog page wasn't working off the bat and was giving us an issue on elasticsearch

 

SOLUTION

We just flipped the elasticsearch version on magento admin's backend to version 7. It was defaulting to 6

though quite annoying as I've been on composer for the past 4 hours, and it's been showing that it's using version 7.

 

LESSON LEARNED

It's the easiest solutions we really overlook. Smiley Tongue 

View solution in original post

8 REPLIES 8

Re: Product Category page error

Have also tried clearing cache, and initiating di:compile after deleting generated/code folder.

Re: Product Category page error

Hello @karolretaid8eb 

 

Can you run below commands after importing products in magento:

php bin/magento indexer:reindex
php bin/magentoc:f

Hope it works !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Product Category page error

Hi @gaurav_harsh1 , thanks for the reply! I still encountered the problem on composer:

 

Catalog Search index process unknown error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}

 

seems like the same root cause?

Re: Product Category page error

@karolretaid8eb 

 

I guess you are using a higher version of Eleastic search on your machine, can you please downgrade it to 5.*

or you can follow the approach given in this answer, check once :

https://magento.stackexchange.com/questions/287216/types-cannot-be-provided-in-put-mapping-requests-...

 

Hope it help !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Product Category page error

Hi @karolretaid8eb 

 

Try to run below commands:

php bin/magento setup:di:compile
php  bin/magento  cache:clean

 

It may help you!
Problem Solved? Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: Product Category page error

@karolretaid8eb If you have elastic search installed on your server then just run below commands.

sudo systemctl restart elasticsearch.service
php bin/magento indexer:reindex
php bin/magento cache:flush

Hope it helps!

 

Thanks

 

Re: Product Category page error

Failed to start elasticsearch.service: Unit elasticsearch.service not found.

 

it doesn't seem to exist through here, nor can I find the folders.

 

But if I do an extension search and status, it does come up. I already downgraded to 5 but the problem is still happening?

Re: Product Category page error

Hi all,

 

Just a quick rundown:

1. I was using bitnami magento for azure so everything was "packaged" 

2. It was a clean install, we used the same bitnami magento for azure a month ago, and everything ran smoothly.

3. This is our 2nd installation, Our previous install had other issues (which is not related to this) which drove us to just starting fresh.
4. catalog page wasn't working off the bat and was giving us an issue on elasticsearch

 

SOLUTION

We just flipped the elasticsearch version on magento admin's backend to version 7. It was defaulting to 6

though quite annoying as I've been on composer for the past 4 hours, and it's been showing that it's using version 7.

 

LESSON LEARNED

It's the easiest solutions we really overlook. Smiley Tongue