cancel
Showing results for 
Search instead for 
Did you mean: 

Content can't show.

Content can't show.

Hello,

When I write some text and upload some photos then Magento can't show it and I must reboot my Magento server. After reboot, Magento can't show them. I cleared Magento cache too, but problem exist.

Any idea?

 

Thanks.

18 REPLIES 18

Re: Content can't show.

Hi @jason_long 

 

Try by resetting the permissions.

Run below commands from magento root directory.

 

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

chmod 777 -R var/

Hope it helps.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

Re: Content can't show.

I'm using Magento 1.9.2 and I guess "bin/magento" for Magento 2X!!!

Some permission are:

755 /srv/mywebsite/public/
777 /srv/mywebsite/public/var/
777 /srv/mywebsite/public/media/

I did below command:

# php indexer.php --status
Product Attributes:                 Pending
Product Prices:                     Pending
Catalog URL Rewrites:               Require Reindex
Category Products:                  Pending
Catalog Search Index:               Pending
Stock Status:                       Require Reindex
Tag Aggregation Data:               Pending

# php indexer.php --reindexall
Product Attributes index was rebuilt successfully in 00:00:10
Product Prices index was rebuilt successfully in 00:00:00
Catalog URL Rewrites index was rebuilt successfully in 00:10:47
Category Products index was rebuilt successfully in 00:00:02
Catalog Search Index index was rebuilt successfully in 00:00:10
Stock Status index was rebuilt successfully in 00:00:00
Tag Aggregation Data index was rebuilt successfully in 00:00:00
You have mail in /var/spool/mail/root

And when I applied a "Catalog Price Rules" then it show me:

The rule has been saved.
The rules have been applied.

But my discount not applied Smiley Sad

What is my problem?

Re: Content can't show.

Hi @jason_long 

 

Then the content was not showing because of reindexing i guess.

 

And for "Catalog price rule" carefully check the rule as no command is needed to update any price rule.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

Re: Content can't show.

As you see, I did re-indexing but problem exist...

How can I troubleshoot it?

# tail /srv/MyWebServer/logs/MyWebServer_error_log 
[Mon Nov 11 09:55:27 2019] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /srv/MyWebServer/public/media/wysiwyg/, referer: http://MyWebServer.com/MyWeb-books/%D8%B9%D9%85%D9%88%D9%85%DB%8C.html?p=2
[Mon Nov 11 09:55:27 2019] [error] [client XXX.XXX.XXX.XXX] File does not exist: /srv/MyWebServer/public/skin/frontend/em0122/default/WebYekan/WebYekan.woff2, referer: http://MyWebServer.com/skin/frontend/em0122/default/css/style-rtl.css
[Mon Nov 11 09:55:31 2019] [error] [client XXX.XXX.XXX.XXX] File does not exist: /srv/MyWebServer/public/skin/frontend/em0122/default/WebYekan/WebYekan.woff2, referer: http://MyWebServer.com/skin/frontend/em0122/default/css/style-rtl.css
[Mon Nov 11 09:55:31 2019] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /srv/MyWebServer/public/media/wysiwyg/, referer: http://MyWebServer.com/%DA%A9%D8%AA%D8%A7%D8%A8-%D8%AF%D8%B3%D8%AA%D8%A8%D8%B1%D8%AF-%D9%82%D8%A7%D9%86%D9%88%D9%86%DB%8C-%D8%AA%D8%A7%D8%B1%D8%A7%D8%AC-%D8%A7%D9%85%D9%88%D8%A7%D9%84-%D8%A7%DB%8C%D8%B1%D8%A7%D9%86-%D8%AF%D8%B1-%D8%A7%D9%85%D8%B1%DB%8C%DA%A9%D8%A7
[Mon Nov 11 09:57:54 2019] [error] [client XXX.XXX.XXX.XXX] File does not exist: /srv/MyWebServer/public/skin/frontend/em0122/default/WebYekan/WebYekan.woff2, referer: http://MyWebServer.com/skin/frontend/em0122/default/css/style-rtl.css
[Mon Nov 11 09:57:59 2019] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /srv/MyWebServer/public/media/wysiwyg/, referer: http://MyWebServer.com/
[Mon Nov 11 09:58:03 2019] [error] [client XXX.XXX.XXX.XXX] File does not exist: /srv/MyWebServer/public/skin/frontend/em0122/default/WebYekan/WebYekan.woff2, referer: http://MyWebServer.com/skin/frontend/em0122/default/css/style-rtl.css
[Mon Nov 11 09:58:03 2019] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /srv/MyWebServer/public/media/wysiwyg/, referer: http://MyWebServer.com/electronic-content/digital-journal/scientific.html
[Mon Nov 11 09:58:20 2019] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /srv/MyWebServer/public/media/wysiwyg/, referer: http://MyWebServer.com/electronic-content/digital-journal/sociocultural.html
[Mon Nov 11 09:58:20 2019] [error] [client XXX.XXX.XXX.XXX] File does not exist: /srv/MyWebServer/public/skin/frontend/em0122/default/WebYekan/WebYekan.woff2, referer: http://MyWebServer.com/skin/frontend/em0122/default/css/style-rtl.css

About "Catalog price rule", how can I do it?

 

Thanks. 

Re: Content can't show.

Hello @jason_long 

I am not sure what hosting you are using?

Did you confirm any other caching michanism it has?
Are you using any CDN?

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Content can't show.

Caching michanism?

No, I have not CDN.

Re: Content can't show.

Hi @jason_long 

 

Are you using any third party cache extension like full page cache or may be somewhat different.

 

Do one thing go to product page and then check its view source by pressing ctrl+u, if your content is loaded there.

 

If it is loaded then might be there is some css issue which makes it hidden.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

Re: Content can't show.

Cache setting in the Magento panel?

Re: Content can't show.

Hi @jason_long 

 

You can find the cache settiing under System->Cache Management and you can flush the cache from there.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".