折腾:
【已解决】WordPress官网xxx.it图片等资源加载失败
后,已经解决了数据可导致的图片资源问题。
发现还有部分图片资源还是无法显示:

比如:
去看了看本身没这个图片文件的:

发现了:


xxx.zip是246MB
比 xxx.zip的240M 要大
估计就是有新的图片
去换资源:
1 | unzip xxx.zip |
再去:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | [root@VM_0_10_centos wwwroot] # lh total 486M drwxr-xr-x 9 root root 4.0K May 9 21:25 xxx/ drwxr-xr-x 2 www www 4.0K May 9 21:23 www.xxx.it/ drwxr-xr-x 9 www www 4.0K May 9 21:03 www.xxx.it_old/ -rw-r--r-- 1 root root 246M May 9 19:13 xxx.zip -rw-r--r-- 1 root root 240M Sep 19 2019 xxx.zip drwxr-xr-x 3 www www 4.0K Dec 5 2018 default / [root@VM_0_10_centos wwwroot] # ll total 497248 -rw-r--r-- 1 root root 257678052 May 9 19:13 xxx.zip drwxr-xr-x 3 www www 4096 Dec 5 2018 default drwxr-xr-x 2 www www 4096 May 9 21:23 www.xxx.it drwxr-xr-x 9 www www 4096 May 9 21:03 www.xxx.it_old drwxr-xr-x 9 root root 4096 May 9 21:25 xxx -rw-r--r-- 1 root root 250977583 Sep 19 2019 xxx.zip [root@VM_0_10_centos wwwroot] # ls -lha total 486M drwxr-xr-x 6 root root 4.0K May 9 21:23 . drwxr-xr-x 5 root root 4.0K Sep 19 2019 .. -rw-r--r-- 1 root root 246M May 9 19:13 xxx.zip drwxr-xr-x 3 www www 4.0K Dec 5 2018 default drwxr-xr-x 2 www www 4.0K May 9 21:23 www.xxx.it drwxr-xr-x 9 www www 4.0K May 9 21:03 www.xxx.it_old drwxr-xr-x 9 root root 4.0K May 9 21:25 xxx -rw-r--r-- 1 root root 240M Sep 19 2019 xxx.zip [root@VM_0_10_centos wwwroot] # ll www.xxx.it total 0 [root@VM_0_10_centos wwwroot] # ll xxx total 212 drwxr-xr-x 2 root root 4096 Dec 6 2018 files -rw-r--r-- 1 root root 418 Sep 25 2013 index.php -rw-r--r-- 1 root root 19935 Jan 7 2018 license.txt drwxr-xr-x 6 root root 4096 Dec 6 2018 old_imported_multiple_demodata drwxr-xr-x 3 root root 4096 Dec 5 2018 oneinstack_tools -rw-r--r-- 1 root root 7415 Oct 30 2020 readme.html drwxr-xr-x 2 root root 4096 Dec 6 2018 wordpress -rw-r--r-- 1 root root 6878 Dec 13 2018 wp-activate.php drwxr-xr-x 9 root root 4096 Feb 8 2018 wp-admin -rw-r--r-- 1 root root 364 Dec 19 2015 wp-blog-header.php -rw-r--r-- 1 root root 1889 Dec 6 2018 wp-comments-post.php -rw-rw-rw- 1 root root 3212 Dec 6 2018 wp-config.php -rw-r--r-- 1 root root 2930 Feb 8 2018 wp-config-sample.php drwxr-xr-x 7 root root 4096 Mar 17 23:08 wp-content -rw-r--r-- 1 root root 3669 Aug 20 2017 wp-cron.php drwxr-xr-x 18 root root 12288 Feb 8 2018 wp-includes -rw-r--r-- 1 root root 2422 Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3306 Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 37804 Dec 13 2018 wp-login.php -rw-r--r-- 1 root root 8048 Jan 11 2017 wp-mail.php -rw-r--r-- 1 root root 16246 Oct 4 2017 wp-settings.php -rw-r--r-- 1 root root 30091 Dec 6 2018 wp-signup.php -rw-r--r-- 1 root root 4620 Oct 24 2017 wp-trackback.php -rw-r--r-- 1 root root 3065 Sep 1 2016 xmlrpc.php [root@VM_0_10_centos wwwroot] # mv xxx/* www.xxx.it/ [root@VM_0_10_centos wwwroot] # ll xxx total 0 [root@VM_0_10_centos wwwroot] # ll www.xxx.it total 212 drwxr-xr-x 2 root root 4096 Dec 6 2018 files -rw-r--r-- 1 root root 418 Sep 25 2013 index.php -rw-r--r-- 1 root root 19935 Jan 7 2018 license.txt drwxr-xr-x 6 root root 4096 Dec 6 2018 old_imported_multiple_demodata drwxr-xr-x 3 root root 4096 Dec 5 2018 oneinstack_tools -rw-r--r-- 1 root root 7415 Oct 30 2020 readme.html drwxr-xr-x 2 root root 4096 Dec 6 2018 wordpress -rw-r--r-- 1 root root 6878 Dec 13 2018 wp-activate.php drwxr-xr-x 9 root root 4096 Feb 8 2018 wp-admin -rw-r--r-- 1 root root 364 Dec 19 2015 wp-blog-header.php -rw-r--r-- 1 root root 1889 Dec 6 2018 wp-comments-post.php -rw-rw-rw- 1 root root 3212 Dec 6 2018 wp-config.php -rw-r--r-- 1 root root 2930 Feb 8 2018 wp-config-sample.php drwxr-xr-x 7 root root 4096 Mar 17 23:08 wp-content -rw-r--r-- 1 root root 3669 Aug 20 2017 wp-cron.php drwxr-xr-x 18 root root 12288 Feb 8 2018 wp-includes -rw-r--r-- 1 root root 2422 Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3306 Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 37804 Dec 13 2018 wp-login.php -rw-r--r-- 1 root root 8048 Jan 11 2017 wp-mail.php -rw-r--r-- 1 root root 16246 Oct 4 2017 wp-settings.php -rw-r--r-- 1 root root 30091 Dec 6 2018 wp-signup.php -rw-r--r-- 1 root root 4620 Oct 24 2017 wp-trackback.php -rw-r--r-- 1 root root 3065 Sep 1 2016 xmlrpc.php [root@VM_0_10_centos wwwroot] # rm -f www.xxx.it/wp-config.php [root@VM_0_10_centos wwwroot] # cp www.xxx.it_old/wp-config.php www.xxx.it/ [root@VM_0_10_centos wwwroot] # ll www.xxx.it total 212 drwxr-xr-x 2 root root 4096 Dec 6 2018 files -rw-r--r-- 1 root root 418 Sep 25 2013 index.php -rw-r--r-- 1 root root 19935 Jan 7 2018 license.txt drwxr-xr-x 6 root root 4096 Dec 6 2018 old_imported_multiple_demodata drwxr-xr-x 3 root root 4096 Dec 5 2018 oneinstack_tools -rw-r--r-- 1 root root 7415 Oct 30 2020 readme.html drwxr-xr-x 2 root root 4096 Dec 6 2018 wordpress -rw-r--r-- 1 root root 6878 Dec 13 2018 wp-activate.php drwxr-xr-x 9 root root 4096 Feb 8 2018 wp-admin -rw-r--r-- 1 root root 364 Dec 19 2015 wp-blog-header.php -rw-r--r-- 1 root root 1889 Dec 6 2018 wp-comments-post.php -rw-r--r-- 1 root root 3214 May 9 21:27 wp-config.php -rw-r--r-- 1 root root 2930 Feb 8 2018 wp-config-sample.php drwxr-xr-x 7 root root 4096 Mar 17 23:08 wp-content -rw-r--r-- 1 root root 3669 Aug 20 2017 wp-cron.php drwxr-xr-x 18 root root 12288 Feb 8 2018 wp-includes -rw-r--r-- 1 root root 2422 Nov 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3306 Aug 22 2017 wp-load.php -rw-r--r-- 1 root root 37804 Dec 13 2018 wp-login.php -rw-r--r-- 1 root root 8048 Jan 11 2017 wp-mail.php -rw-r--r-- 1 root root 16246 Oct 4 2017 wp-settings.php -rw-r--r-- 1 root root 30091 Dec 6 2018 wp-signup.php -rw-r--r-- 1 root root 4620 Oct 24 2017 wp-trackback.php -rw-r--r-- 1 root root 3065 Sep 1 2016 xmlrpc.php |
即可换了资源:
正常加载页面了:

【总结】
此处,即使解决了wordpress中数据库导致的图片加载问题后
仍然有图片加载失败问题
需要有细心:去搞清楚,实在的图片的url
对应的服务器中对应目录根本不存在
所以反推是:本身wordpress来源的zip包不存在对应图片
后来经过确认,新的wordpress的zip包有此图片,所以换成新zip包,即可解决问题。