Common IssuesAvoiding timeouts in the PHP server
Avoiding timeouts in the PHP server
The request sent to the AI service's API includes as many strings to translate as possible. The longer the request, the more time will the API take to process it.
A slow response may produce a timeout on your PHP server (eg: if the max time for executing a PHP script is 30 seconds).
To avoid a timeout, you can:
- Increase the max execution time on the PHP configuration
- Reduce the payload size sent to the API in the plugin settings
When reducing the payload size, the request will be split into multiple requests, each of which will be resolved faster.
Go to Settings > Service Configuration > [AI service], and set the Max request payload length option to an adequate number of characters that will avoid a timeout error:
