drzfz9995 2013-10-10 16:41
浏览 13
已采纳

phpthumb正在创建图像但没有显示它(nginx)

I'm trying to get phpthumb to work on my wife's wordpress site . http://downtherabbithole.co.uk/

If you look at the second post the image is not showing. http://downtherabbithole.co.uk/wp-content/themes/Elegant/phpThumb/phpThumb.php?src=http://i.imgur.com/aSFPujD.jpg&h=225&w=647&zc=1&q=100

Is there a way to find out why this is not showing? I run nginx also if this means anything.

Also phpthumb has made the thumb as I can find it in the cache folder. So it is making it fine but will not show it.

  • 写回答

1条回答 默认 最新

  • dtmm0148603 2013-10-11 01:36
    关注

    You are using version v1.7.9-200805132119 of phpThumb which I can see when I click your link.

    I can also see a whole lot of errors... these errors will be screwing up the header of the image so you need to fix them.

    Deprecated: Function eregi() is deprecated in /srv/www/downtherabbithole.co.uk/public_html/wp-content/themes/Elegant/phpThumb/phpthumb.class.php on line 980
    
    Deprecated: Function ereg_replace() is deprecated in /srv/www/downtherabbithole.co.uk/public_html/wp-content/themes/Elegant/phpThumb/phpthumb.class.php on line 890
    
    Deprecated: Function ereg_replace() is deprecated in /srv/www/downtherabbithole.co.uk/public_html/wp-content/themes/Elegant/phpThumb/phpthumb.functions.php on line 886
    

    All of the errors seem to be to do with the deperecated ereg* functions... luckily these should all be easily fixed by upgrading your version of phpThumb to the latest version - v1.7.10 fixed this issue you are getting... v1.7.11 is available.

    Alternatively if you cannot upgrade phpThumb you could supress the E_DEPRECATED errors in your php.ini... but that wouldn't be ideal.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘