rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
222 stars 63 forks source link

Handling Uncaught Fatal Exception during .htaccess read failure #509

Closed CirKu17 closed 2 years ago

CirKu17 commented 3 years ago

The plugin shows a Fatal Error when the fopen function cannot find the .htaccess in its default location. This is always the case when using frameworks with different wp directory structure like bedrock. Handling this exception as a file handling failure at least fixes the otherwise unavoidable blank settings page with the fatal error message and lets the user configure the rules manually.

rosell-dk commented 2 years ago

Thanks!