访问php文件时遇到404
对我的插件 amtyThumb 进行一些更改后,我意识到访问 imgsize 存在一些问题。 php。但我没有改变 imgsize.php 中的任何内容。
如果我将此脚本放入网站上除插件文件夹之外的其他文件夹中,那么一切都会正常工作。我在这两个地方都保留文件权限 644。两个地方的文件夹权限都是 755。如果我在我的电脑上本地运行它,它工作正常。
我检查了 .htaccess 是否存在盗链。但它没有启用。
访问 article-stack 查看问题。如果您在 IE 或 Chrome 中打开页面,您可以看到破损的图像符号或十字符号代替应出现在侧边栏中帖子标题之前的图像。
此外,我正在我的一个网站上使用该插件的早期版本,该插件运行良好。访问 thinkzarahatke。页脚栏和侧边栏中的所有图像均通过 amtyThumb 1.0 显示。
用于调试:我添加了一些代码来写入文本文件(只是为了检查)。但即使该代码也没有被执行:(
After doing some changes to my plugin amtyThumb, I realized that there is some problem to access imgsize.php. But i dint change anything in imgsize.php.
If i put this script into some other folder other than plugin folder on my site, then everything is working fine. I am keeping file permission 644 on both places. Folder permission is 755 on both places. It is working fine if i run it locally on my PC.
I had checked .htaccess for hotlinking. But it is not enable.
visit article-stack to view the problem. If you open page in IE or chrome, you can see broken image sign or cross sign in place of images which should be appear just before the post title in sidebar.
In addition, I am using previous version of this plugin on my one of the sites where it is working fine. visit thinkzarahatke. All images in footer bar and sidebar, are being displayed through amtyThumb 1.0.
For debugging : I added some code to write to a text file (just to check). But even that code is not getting executed :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很长一段时间后,我发现我犯了一个愚蠢的错误。我实际上调用的脚本驻留在“amtyThumb”中,但实际的插件 URL 包含“amtythumb”。
After a long time i found the silly mistake i did. I actually was calling script resides in "amtyThumb" but the actual plugin url was having "amtythumb".