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 |2 Answers
Reset to default 1Your 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:
- Backup.
- 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 );
- Try to replicate the issue and check
wp-content/debug.log
file to see if there is any PHP error. - Change your active theme to a default WordPress theme and see if the issue is happening again or not.
- 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
WP_DEBUG
andWP_DEBUG_LOG
? Have a look at/wp-content/debug.log
first. – Z. Zlatev Commented Nov 11, 2016 at 11:35