There are two issues that you may experience when using the Image Optimization service.
Issue # 1 WordPress REST API
If you have enabled the Image Optimization service in the 10Web dashboard and it seems like there is no activity or it is loading in an infinite loop, this can occur because of two reasons:
- REST API is closed
- 10Web services actions have been blocked by a 3rd-party security services or by hosting service providers
Troubleshooting Issue #1
Check WordPress REST API by going to:
- https://yourdomainname.com/?rest_route=/, (yourdomain.com = your website address)
If your query returns a page with text, otherwise a JSON output without any errors, then REST API is working correctly.
Check if 10Web service actions have been blocked by checking the GET and POST methods. Go to https://reqbin.com/req/c-tv8emm8r and enter the following codes using the domain name of your site instead of yourdomain.com
curl https://yourdomain.com/?rest_route=/tenweb/v1/get_check
curl -X POST https://yourdomain.com/?rest_route=/tenweb/v1/post_check
If everything is ok, you will receive {“code”:“ok”} for both queries in the Response Body.
If you receive anything different, you will need to deactivate the 3rd party plugin, or find the option within the plugin blocking the optimization(whitelist ip, enable rest api post requests). Then check again or contact your service provider. If in the case that 10Web IP addresses have been blocked, please contact your hosting service provider and ask them to whitelist the IP addresses.
Issue # 2 Progress of Optimization
If the progress of Image Optimization has become stuck at X% the most probable reason is that it has finished optimization, however it has failed to reload.
Troubleshooting Issue #2
- Refresh the page
If it fails to complete and is still stuck:
- Go to your WordPress dashboard > Image Optimizer, and Cancel the image optimization process.
At this point, if you have images that have not been optimized, go ahead and optimize them from the 10Web dashboard.
If the progress of Image Optimization is stuck at 0%, go to your WordPress dashboard > Image Optimizer, and click Cancel. Then contact us to fix the issue.
Issue # 3 Image Optimizer service not enabling
When the Image Optimizer plugin is uninstalled while the service is still enabled, it can lead to issues when attempting to re-enable the service.
Troubleshooting Issue #3
If you're having trouble enabling the Image Optimizer service because you've previously deleted this plugin, here's how you can fix it:
- Go to Plugins in the WordPress Admin
- Verify that the latest version of the Image Optimizer plugin is installed and activated.
- If the plugin is missing or outdated, then download, install, and activate the latest version.
Once you’ve activated the plugin, try enabling the Image Optimizer service again. You may find it's already enabled.