"Google Drive WP Media" WordPress 插件出错
"Google Drive WP Media" WordPress Plugin gives error
我有一个 WordPress 网站(最新版),我在其中使用了 Google Drive WP Media 插件。插件工作正常谢谢,伙计们。但是这个插件给出了一个没有显示给正常人的错误,错误是:
when we hit the URL in the browser, an image is showing but when we hit the same URL with the help of curl, it gives the 404 error.
现在,我能做什么??你们有解决这个问题的方法吗?
提前谢谢。
为 404
errors 尝试这个建议的操作:
Report to users that they do not have read access to the file or that the file does not exist. Tell them that they should ask the owner for permission to the file.
这个 beginner's guide 也可能有帮助。
问题解决了……只加一行,问题就解决了。
打开“google-drive-wp-media.php”文件并在该行之后添加以下行(line no 2661):
Before:
@header (‘Cache-Control:public, max-age=31536000’);
After:
@header(‘HTTP/1.1 200 OK’);
@header (‘Cache-Control:public, max-age=31536000’);`
我有一个 WordPress 网站(最新版),我在其中使用了 Google Drive WP Media 插件。插件工作正常谢谢,伙计们。但是这个插件给出了一个没有显示给正常人的错误,错误是:
when we hit the URL in the browser, an image is showing but when we hit the same URL with the help of curl, it gives the 404 error.
现在,我能做什么??你们有解决这个问题的方法吗? 提前谢谢。
为 404
errors 尝试这个建议的操作:
Report to users that they do not have read access to the file or that the file does not exist. Tell them that they should ask the owner for permission to the file.
这个 beginner's guide 也可能有帮助。
问题解决了……只加一行,问题就解决了。
打开“google-drive-wp-media.php”文件并在该行之后添加以下行(line no 2661):
Before:
@header (‘Cache-Control:public, max-age=31536000’);
After:
@header(‘HTTP/1.1 200 OK’);
@header (‘Cache-Control:public, max-age=31536000’);`