Hello @Officina 2.0,
Thank you for reaching out to us and for providing detailed information regarding the issues you are experiencing.
We understand how frustrating it can be to encounter persistent server errors, especially when they interfere with essential WordPress functionality. Based on your description, the 502 Bad Gateway error and the unexpected error message on the “Appearance > Themes > Add New” page may indeed be related to server configuration.
Here are a few suggestions to help diagnose and potentially resolve the issue:
1. Server Communication with WordPress.org
The error message you are seeing typically indicates that your server is unable to connect to the WordPress.org API. This could be due to firewall restrictions, DNS misconfiguration, or cURL-related issues on the server. We recommend checking the following:
– Ensure that outbound connections to api.wordpress.org are allowed.
– Verify that the server’s DNS settings are correctly configured.
– Confirm that the cURL PHP extension is enabled and functioning properly.
2. 502 Bad Gateway Error
This error is often related to server overload, PHP-FPM misconfiguration, or timeouts. Since the issue occurs when deactivating plugins, it may be that a specific plugin is causing a high memory or CPU load during the deactivation process. We suggest:
– Reviewing the Nginx and PHP error logs at the time the error occurs.
– Increasing the PHP max_execution_time and memory_limit values temporarily to see if this mitigates the issue.
– Deactivating plugins one at a time to identify if a specific plugin is triggering the error.
3. Theme and Plugin Conflicts
Although the issue appears to be isolated to this particular website, it may still be helpful to perform a conflict test:
– Switch to a default WordPress theme (e.g., Twenty Twenty-Four) and check if the issue persists.
– Disable all plugins and then reactivate them one by one to identify any conflicts.
4. Plesk/Nginx Configuration
Since your server uses Nginx with Plesk, please ensure that the Nginx configuration for this domain is not overriding or conflicting with PHP-FPM settings. Also, check if any custom Nginx directives are applied to this domain that may affect plugin or theme operations.
Since they’re all related to the server side, could you kindly reach out to your hosting provider and request a more in-depth investigation into the following aspects of your hosting plan?
– Storage capacity
– Memory allocation
– RAM/CPU resources
– Bandwidth limits
We have already reviewed the error_log on our side. However, we also recommend asking your hosting provider to check their server logs to help identify the root cause of the issue, whether it may be related to plugins, the theme, or any custom code.
Thank you very much for your cooperation and understanding.
Best regards,
The 8Theme Team















