WordPress 上传不显示,在某些情况下我看到死机白屏

WordPress uploads do not show up and I see the white screen of death in some cases

最近我在我的 WordPress 上安装了我自己制作的主题,之后出现了一些问题。

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:

我尝试了多种方法来解决此问题,例如:

1) 停用我的所有插件。

2) 通过编辑 wp-config.php 文件增加 PHP 内存限制:

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

3) 更改我网站上传文件夹的文件权限等

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.

必须对我自己制作的主题进行哪些更改才能修复死机白屏和上传问题?

尝试了很多次之后,我打开了调试模式,我发现我的functions.php文件在我修复它后就出现了问题上传问题白屏死亡问题消失了。百万感谢。