cancel
Showing results for 
Search instead for 
Did you mean: 

Product not displaying in product page

Product not displaying in product page

The item displays in the categories and search but when it comes to displaying the item once you click on it it doesn't show up.

 

I've flushed, deleted static and redeployed but have the same results.Screenshot from 2019-06-05 18-14-49.png

7 REPLIES 7

Re: Product not displaying in product page

Hi @trent_nguyen,

There may be some reindexing issue.

please run the following command:

php bin/magento indexer:reindex
php bin/magento cache:flush

I hope it will help you!

Re: Product not displaying in product page

Still a blank screen I'm afraid Smiley Sad

Re: Product not displaying in product page

Hi @trent_nguyen 

May be there are any fetal error.

Switch to developer mode if you are production mode to debug.

Please try once after open error_reporting on frontend or check error log.

You can open error_reporting in the following file.

Go inside root pub/errors folder,

Just copy local.xml.sample to local.xml


Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.

Now the final statement displays as
ini_set('display_errors', 1);

I hope it will help to debug.

Re: Product not displaying in product page

No errors from what I can see. It seems to be loading perfectly.

 

I've tried doing the resize command but it seems to be missing something. Also, its looking for 4 items but I only have 1 on the store. Any idea man?

 

Screenshot from 2019-06-06 21-10-08.png

Re: Product not displaying in product page

I found out the problem.

 

For some reason when I add bootstrap.css to the page it breaks the page but when it is removed the page turns back to default.

 

I'm not sure why this happens but it does. Does anyone else use bootstrap with Magento and have a similar issue?

Re: Product not displaying in product page

Strange, May be for some block or for some resolution there are any class which hiding to block. 

Please also check in console if any css class is applying for hiding the things. 

for more info you can look into the Bootstrap css document. 
https://getbootstrap.com/docs/3.4/css/

BTW magento 2 already introduce bootstrap with theme, which theme you are using. 

Re: Product not displaying in product page

I'm using my own theme inherited from blank theme. I thought Magento had bootstrap but none of it was working so I included it myself which made it work but brakes the product display

Console just says XS-SS error which I believe is normal