我最近更新了WordPress 4.9.6, 突然媒体库停止显示我的媒体。我也无法上传文件。
我开始研究可能的原因, 发现唯一的原因是我的自定义主题。我记录了php和javascript并修复了每个问题和警告。媒体库仍然无法正常工作。其背后的可能原因是什么?
这是博客
#1
感谢jjj的评论, 我发现了问题所在。
我在functions.php中编写了一个自定义插件(不太聪明)。这使我认为问题出在我的自定义主题上(部分正确的原因是问题出在functions.php中, 即使该插件没有理由在其中)。
我删除了它, 现在一切正常。我仍然不确定为什么在PHP错误日志中什么也没显示。
谢谢。
来源:
https://www.srcmini02.com/66219.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_37125.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57