dsw8292301 2017-05-08 13:56
浏览 10
已采纳

WordPress上传没有显示,在某些情况下我看到死亡的白屏

Recently I have installed my own-made theme on my WordPress and after that a few problems have occurred.

Firstly when I upload a photo or file from my site's admin panel it does not show up under Media tab. and when I try to define a thumbnail for a post I cannot see the photos. Therefore I deactivated my own-made theme and changed it to 2017 WordPress theme. after that when I uploaded images they showed up in my Media tab but again when using one of them as a post thumbnail (after reactivating my theme) they showed up like below:

This is how the thumbnail shows on my website

I've tried several ways to fix this issue such as:

1) Deactivating my whole plugins.

2) Increase PHP Memory Limit by editing the wp-config.php file:

define( 'WP_MEMORY_LIMIT', '256M' );

3) Changing file permissions of my site's uploads folder and etc.

Secondly when I activate my own-made theme some times I see the popular white screen of death.(For example when I define a new category and press the publish key I get redirected to a white empty page) And I don't know what problem my theme has that makes this happen.

What changes must be done to my own-made theme in order to fix the white screen of death and uploads issues?

  • 写回答

1条回答 默认 最新

  • douzhan8303 2017-05-10 15:32
    关注

    After trying a lot I turned debugging mode on I found that my functions.php file has a problem as soon as I fixed it both uploads problem and white screen of death issue were disappeared. Thanks a million.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?