WooCommerce图标不显示在GAE下的后端

时间:2014-03-26 08:59:08

标签: css3 google-app-engine woocommerce

当我在MAMP本地使用WordPress 3.8.1运行WooCommerce 2.1.6时,一切都按预期工作,但是当我使用GoogleAppEngineLauncher v1.9.0运行相同版本时,WooCommerce字体的WooCommerce图标没有显示。既不是菜单项WooCommerce和产品旁边,也不是WooCommerce欢迎屏幕。

所有字体都在

wp-content/plugins/woocommerce/assets/fonts/
├── WooCommerce.eot
├── WooCommerce.svg
├── WooCommerce.ttf
├── WooCommerce.woff
├── star.eot
├── star.svg
├── star.ttf
└── star.woff

我不确定这是否是GAE特定的。我已将所有文件和目录权限设置为777,以便进行测试无济于事。将其部署到云中时问题仍然存在。

我现在还在app.yaml中为字体文件扩展添加了一个新的部分,但在app引擎日志中我现在看到301后跟200.结果看起来仍然和以前一样,即字体图标未呈现。

2014-03-26 23:40:28.993 301    327B 317ms   /wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf
    93.209.186.52 - - [26/Mar/2014:15:40:28 -0700] "GET /wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf HTTP/1.1" 301 327 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36" "elaborate-chess-531.appspot.com" ms=317 cpu_ms=208 cpm_usd=0.000037 instance=00c61b117c3b43b5a1b35e0b88932df4bf005ee7 app_engine_release=1.9.1

2014-03-26 23:40:29.715 200     4KB 509ms   /wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf/
    93.209.186.52 - - [26/Mar/2014:15:40:29 -0700] "GET /wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf/ HTTP/1.1" 200 4589 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36" "elaborate-chess-531.appspot.com" ms=509 cpu_ms=292 cpm_usd=0.000513 instance=00c61b117c3b43b5a1b35e0b88932df4bf005ee7 app_engine_release=1.9.1

我在这里可能缺少什么想法?

WordPress backend screenshot

2 个答案:

答案 0 :(得分:1)

毫无疑问,你的app.yaml没有定义这些文件的路由。您可能有像这样定义的处理程序

- url: /wp-content/(.*\.(ico|jpg|png|gif))$
  static_files: wordpress/wp-content/\1
  upload: wordpress/wp-content/.*\.(ico|jpg|png|gif)$
  application_readable: true

在它下面添加另一部分来覆盖字体等等。

- url: /wp-content/(.*\.(eot|svg|ttf|woff))$
  static_files: wordpress/wp-content/\1
  upload: wordpress/wp-content/.*\.(eot|svg|ttf|woff)$
  application_readable: true

查看返回404的任何其他路径,并确保它们也定义了处理程序。

答案 1 :(得分:0)

这是正常的。我想如果我理解你的问题,那就是路径问题。 我解释。 Woocommerce图标不能工作wideout www。 如果你的域名wordpress路径是http://yourdomain.com。这不好 更改数据库wordpress width http://www.yourdomain.com

你的图标有效!