wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Improved Error Message For Unknown Errors #637

Closed joejoe04 closed 1 year ago

joejoe04 commented 2 years ago

Looking at this code snippet we send the error message to users, "An unknown error has occurred." if optimization fails but the server returns no error message.

image

We offer the same solutions for these errors (increase WP memory, increase PHP timeout, use GD, etc) as for cURL Error 28 / timeout issues, and I think it could be helpful to send an error message to the user other than “Unknown error occurred.” Something like the following could be more useful.

image

Which we could link to the Optimization is Stuck page and provide a section in there about Unknown Errors. Or we could link to a separate page, whatever would be best.

<td colspan="5">An unknown error occurred: <a href="https://imagify.io/documentation/optimization-is-stuck/" rel="noopener" target="_blank">More info and possible solutions</a></td>

GeekPress commented 1 year ago

Please note the change will have to be done only on the Media Library page. The Bulk Optimization won't contain the details anymore started 2.1.