dos3018 2012-12-30 00:02
浏览 38
已采纳

WP Timthumb路径错误 - 可能缓存相关? [关闭]

I copied a subdomain (actividades.acropolis.org.mx) with a wp install from one server to another. Long story short, while I made the transfer and the DNS for the domain had not been yet redirected to the new server, I used my server's preview URL which was:

http://actividades.acropolis.org.mx.s160231.gridserver.com

Now that the DNS transfer is over, I changed the two rows in the wp_options table that had the url above to the new one: actividades.acropolis.org.mx

EVERYTHING works ok EXCEPT for timthumb.php's pathing.

My suspicion is that it somehow stored the previous url before the dns change took place and is now using that which leads to problems...

This can be seen in the homepage

http://actividades.acropolis.org.mx/actividades/

where the sliding gallery is devoid of thumb images save for a handful (for some odd reason, this handful has a proper pathing even if its very long)

If you fetch the source for the missing images, you get for example:

http://actividades.acropolis.org.mx/wp-content/themes/eVid/timthumb.php?src=http://actividades.acropolis.org.mx.s160231.gridserver.com/wp-content/uploads/2012/11/EL-ARTE-DE-VIVIR_EL-ARTE-DE-SERVIR.jpg&h=277&w=858&q=80&zc=1

which leads to an error

So I can't help but wonder how to set the pathing timthumb uses to the correct one.

Regards Sotkra

  • 写回答

1条回答 默认 最新

  • dongxiaolin2801 2012-12-30 00:52
    关注

    Timthumb.php was within themes/eVid/

    So I went to the admin panel, disabled evid as a theme, enabled the standard twentyeleven theme, disabled it and re-enabled eVid... bam, it updated its filepaths and now everything works perfectly.

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

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧