👋🏼Welcome to my WP-Host blog where I am excited to share my knowledge and expertise on WordPress hosting and website construction tutorials with you. Let’s connect and learn from each other! You can reach me at info@yrshare.com.

(如果你会中文,可以点击微信图标与我联系。)

扫一扫加我

注:因个人英文水平有限,所以暂时只能为懂中文的朋友提供wordpress建站服务

微信:18200592859 或 yrwordpress

Solution to Media Library Pictures Not Displayed After WordPress Upgrade

Solution to Media Library Pictures Not Displayed After WordPress Upgrade: I encountered a strange problem on a WordPress website. The WordPress version just updated on this website is normal, but when I enter the WordPress media library, some of the pictures in it cannot be displayed. After searching, I found a solution and shared it with everyone. If you also encountered similar problems, you can refer to this tutorial.

【WP-Host/悦然wordpress建站】

WordPress must pay attention when upgrading the WordPress version, plug-ins, and themes. It is best to make a backup first, otherwise some strange problems will easily occur. During the website maintenance process, we may encounter various problems, some of which may be very difficult to solve, and the best way is to backup, so everyone must develop a good habit of website backup.

Solution to Media Library Pictures Not Displayed After WordPress Upgrade-WP-Host

A site of Yueran【WP-Host/悦然wordpress建站】encountered such a problem before. After I upgraded wordpress, the pictures in the media library were all gray and not displayed, and the newly uploaded pictures were also not displayed. I found it

I haven’t found a solution for a long time, and finally I can only solve it by restoring the backup.
But then I found a solution. The method was told by a friend. Through the method he provided, I perfectly solved the problem that the media library pictures did not display after the wordpress upgrade.

Let me share with you the solution:

Log in to the server or host panel, open the file management (you can also use ftp), and find the [wp-config.php] file in the root directory of the Word Press website.

define('CONCATENATE_SCRIPTS', false );

Add the above code to the end of the [wp-config.php] file.

Solution to Media Library Pictures Not Displayed After WordPress Upgrade-WP-Host

Refresh, you can see that the pictures in the media library are displayed normally, and the uploaded pictures are also back to normal.

wordpress在升级wordpress版本、插件、主题时一定要注意,最好先好备份一下,否则容易出现一些比较奇怪的问题。网站维护过程中我们可能会遇到各种问题,有些还可能非常难解决,而最好的办法还是备份,所以大家一定要养成网站备份的好习惯哦。

Solution to Media Library Pictures Not Displayed After WordPress Upgrade-WP-Host

之前悦然【WP-Host/悦然wordpress建站】的一个站点就遇到这样的问题,我在升级了wordpress后媒体库图片都是灰色的不显示,而且新上传的图片同样不显示,找了很久都没有找到解决办法,最后只有恢复备份才得以解决。不过后来我还是找到的解决办法,方法是朋友告诉我的,通过他提供的方法,我完美解决了wordpress升级后媒体库图片不显示的问题

下面就给大家分享一下解决方法:

登陆宝塔面板,打开文件管理(使用ftp也可以),找到WordPress网站根目录下的【wp-config.php】文件。

define('CONCATENATE_SCRIPTS', false );

把上面的代码添加到【wp-config.php】文件的结尾处。

Solution to Media Library Pictures Not Displayed After WordPress Upgrade-WP-Host

刷新一下,可以看到媒体库中的图片都正常显示了,上传的图片也都恢复正常了。

WordPress Hosting / 悦然wordpress建站

WordPress Hosting / 悦然wordpress建站

【WordPress Hosting / 悦然wordpress建站】我是来自中国的wordpress爱好,喜欢与世界各地的朋友一起交流学习wordpress建站和维护相关知识。