douliang9057 2013-11-16 22:13
浏览 66

在wp-admin处理程序中,Appengine Wordpress教程应用程序失败

I went through the tutorial at https://developers.google.com/appengine/articles/wordpress

I have a site up and running but I can't reach any urls including wp-admin.

The following handlers are in place as per the tutorial.

- url: /wp-admin/(.+)  
  script: wordpress/wp-admin/\1  
  secure: always  

- url: /wp-admin/  
  script: wordpress/wp-admin/index.php  
  secure: always  

The logs show this error:

2013-11-16 17:03:26.656 /wp-admin/ 500 41ms 0kb Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36 module=default version=wp1 108.16.36.126 - - [16/Nov/2013:14:03:26 -0800] "GET /wp-admin/ HTTP/1.1" 500 0 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36" "time-o-radar.appspot.com" ms=42 cpu_ms=0 exit_code=204 app_engine_release=1.8.7 instance=00c61b117c1c4c05e09fb99796031b9cdc0dd28f W 2013-11-16 17:03:26.655 A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

Where can I look to discover what is causing this error?

  • 写回答

1条回答 默认 最新

  • douyin6188 2013-11-21 19:09
    关注

    I'm struggling myself to get that working on custom domain. Seems no matter what I put, like secure: never, /wp-admin/ urls always get redirected by App Engine to https:// using SSL protocol, which results in error if you're using custom domain.

    But you are able to access your backend if you set site URL to your https://app-name.appspot.com

    That way you can access wp admin backend https://app-name.appspot.com/wp-admin/ but still server site from custom domain on the front end.

    Unfortunately this approach renders all inside URLs pointing to http://app-name.appspot.com, but I get around this with "Relative URL" plugin which removes absolute path on all HTML source code URLs.

    I also found out few missing URL handlers from whatever google describes in their app.yaml sample for WordPress sites, like:

    • url: /wp-comments-post.php script: wordpress/wp-comments-post.php

    was not included therefore visitors were unable to post comments.

    评论

报告相同问题?

悬赏问题

  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗