Check for unknown errors using DEBUG LOG
Sometimes you will see unclear error messages, such as “Upload failed. Try again later”. It will not tell you exactly what you need to do to fix it. It’s because sometimes unexpected or un-aware errors happen in the back-end of your server that Madara and WordPress cannot catch.
In these cases, the first thing you can do is to find what exactly is the error. To do that, first, you will need to enable WP_DEBUG mode and WP_DEBUG_LOG in your wp-config.php file. See this guide: https://wordpress.org/support/article/debugging-in-wordpress/
After doing that, when there are server errors, the message will be logged to this file by default /wp-content/debug.log Open that file and check for the latest “Fatal error: Uncaught Error…” messages. That error is the one which will terminate the working of your site.
- In most cases you will understand the messages and be able to fix it yourself. If not, copy the error messages to our Support squad so we can have a quickier response.
- In you don’t see any fatal error, then there is a chance that the error happens at a higher level system, outside WordPress like your Web Server (Nginx / Apache). Some examples are:
- Timeout when processing a request
- Out of memory, idle threads
- Missing a server add-on
In this case, you will need to check additional error logs of your web server. It’s normally in /var/logs folder, but may be different depending on your server configuration. If you have cPanel/Plesk/directAdmin/VHM.. management account, you can see server errors using one of those tools.
Provide us as much information as possible when you submit ticket, so our Support squad can detect the issue faster. If not, we may need your server account to debug on your site