server - Editing post and page responding 503 Service Unavailable

I am trying to edit any page or post.While editing, it takes some time and returns 503 Service Unavailable message on we

I am trying to edit any page or post.

While editing, it takes some time and returns 503 Service Unavailable message on web.

Hardaware Configuration Processor : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz Memory : 7953MiB width: 64 bits

Screenshot :

I am trying to edit any page or post.

While editing, it takes some time and returns 503 Service Unavailable message on web.

Hardaware Configuration Processor : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz Memory : 7953MiB width: 64 bits

Screenshot :

Share Improve this question asked Nov 11, 2016 at 11:16 AftabAftab 1,3919 silver badges19 bronze badges 2
  • Did you enabled WP_DEBUG and WP_DEBUG_LOG ? Have a look at /wp-content/debug.log first. – Z. Zlatev Commented Nov 11, 2016 at 11:35
  • Yes. In debug I dont see any error . I see some Notices – Aftab Commented Nov 11, 2016 at 11:42
Add a comment  | 

2 Answers 2

Reset to default 1

Your scripts might be stuck in infinite loop, not producing a fatal error but causing the server to timeout the request after some time. Try installing xdebug for your OS/distribution (php-xdebug in recent Ubuntu versions) which will enforce a xdebug.max_nesting_level directive that should log an actual error and a call stack to help you identify the problem.

In order to find the problem, please follow these steps:

  1. Backup.
  2. Enable debug mode by adding the following code in your wp-config.php file.
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
  1. Try to replicate the issue and check wp-content/debug.log file to see if there is any PHP error.
  2. Change your active theme to a default WordPress theme and see if the issue is happening again or not.
  3. Try to disable all plugins and activate them one by one and replicate issue to find which plugin is causing issue.

In your case, you may ask help from your service provider to find which file or code is causing that issue.

Note: These type of issues could happen because of mistakes in codes. E.G, if you are using save_post hook, make sure it is not going to be infinite.

How to avoid infinite loop in save_post callback

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745060770a4608951.html

相关推荐

  • server - Editing post and page responding 503 Service Unavailable

    I am trying to edit any page or post.While editing, it takes some time and returns 503 Service Unavailable message on we

    17小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信