WordPress 4.5 下载安装量已经超过 600 万,而第一个维护版本 WordPress 4.5.1 已发布,修复了 WordPress 4.5 以来的12个错误。
情景再现
早上收到邮件,提示wordpress-4.5.1自动升级失败,只好手动升级了。但是手动升级提示:
升级wordpress-4.5.1失败

第一个反应是,通过object-cache.php缓存数据库了,所以无法升级。但是把数据库缓存停止了,手动升级依然失败。
解决办法
这是由于在升级Wordpress时,Wordpress会在数据库wp_options表中增加core_updater.lock记录。如中途打断Wordpress升级,这个记录会留在数据库中。当下次升级时,Wordpress检测到此记录的存在就会返回”另一更新正在进行”。可通过以下方法解决:
方法一、通过MySQL数据库管理工具(比如 phpMyAdmin),在 wp_options表中找到 core_updater.lock记录并将这一列数据删除。
方法二、通过终端登录数据库,假设表前缀是wp_,数据库是wordpress,
mysql -u root -p
use wordpress;
select * from wp_options where option_name='core_updater.lock'; |
mysql -u root -p
use wordpress;
select * from wp_options where option_name='core_updater.lock';

delete from wp_options where option_name='core_updater.lock'; |
delete from wp_options where option_name='core_updater.lock';
刷新更新页面,就能升级了!
来源:
https://www.wpdaxue.com/wordpress-update-problem.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32612.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57