简体   繁体   English

图片未显示

[英]Image is not displaying

Image is not displaying in wordpress 图像未在Wordpress中显示

<img src="http://test.schools.com/wp-content/themes/ovid/timthumb.php?src=http://test.schools.com/wp-content/uploads/2012/12/amla.png&amp;h=130&amp;w=200&amp;zc=1" alt="" class="img_nofade" width="200" height="130">

After clicking the image, fancy-box contains image. 单击图像后,花式框包含图像。

<img id="fancybox-img" src="http://test.schools.com/wp-content/uploads/2012/12/amla.png" alt="amla">

In console, "Failed to load resource: the server responded with a status of 400 (Bad Request)" 在控制台中,“无法加载资源:服务器以400(错误请求)的状态响应”

As i am new to wordpress, can any one give me a solution? 由于我是wordpress的新手,有人可以给我解决方案吗?

Have you recently changed servers? 您最近更换过服务器吗? Your host may have restricted access to the /cache and /tmp folders of the PHP extension on their server. 您的主机可能无法访问其服务器上PHP扩展的/ cache和/ tmp文件夹。 Trust me I'm going through the same thing right now with a free host. 相信我,我现在正在免费主机上处理同样的事情。

This article explains it more in detail: 本文将对其进行更详细的说明:

http://www.thebuzzmedia.com/tip-for-timthumb-thumb-php-not-generating-thumbnails/ http://www.thebuzzmedia.com/tip-for-timthumb-thumb-php-not-generating-thumbnails/

From my understanding the TimThumb plugin needs full read and write privileges to those folders (that's where it stores the thumbs I'm assuming). 据我了解,TimThumb插件需要对这些文件夹具有完全的读取和写入特权(在该文件夹中存储我假定的拇指​​)。

I found this out today because I tried transferring from my localhost to an actual free hosting service which restricts those folders (and some functions that TimThumb uses). 我今天发现这是因为我尝试从本地主机转移到限制这些文件夹(以及TimThumb使用的某些功能)的实际免费托管服务。

In any case I'm almost certain it is a hosting issue when it boils down to it. 无论如何,我几乎可以肯定这是一个托管问题。

FYI: TimThumb is known to be outdated and subject to DoS attacks by hackers. 仅供参考:TimThumb已知已过时,并受到黑客的DoS攻击。 This link will show you the plugin to update the outdated TimThumb plugin (when you get it working obviously) http://www.210consulting.com/wordpress-plugins/securing-your-custom-wordpress-site/ 该链接将向您显示用于更新过时的TimThumb插件的插件(当您可以正常使用时) http://www.210consulting.com/wordpress-plugins/securing-your-custom-wordpress-site/

Hope this helps somewhat. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM