afragen / local-development

WordPress plugin to provide local development message for selected plugins/themes
GNU General Public License v2.0
24 stars 7 forks source link

WSOD wp-config.php not writeable #15

Closed mediaformat closed 1 month ago

mediaformat commented 1 month ago

WSOD after setting environment, perhaps a warning message before hand, or better yet checking its writability would be helpful.

Caught Exception: \Fragen\Local_Development\Init::__construct() - wp-config.php is not writable.

afragen commented 1 month ago

That's the check to see if wp-config.php is writable. What you see is the error/notification.

mediaformat commented 1 month ago

Right, I'm saying that the check or warning should happen before the user saves the option, since this message only appears once the site is completely unusable (I had to ssh into the server and rename the folder to disable the plugin!)

This happened in production!

afragen commented 1 month ago

Sorry. I'll take a look at how to make it less invasive.

afragen commented 1 month ago

production?, this plugin is really for local development.

mediaformat commented 1 month ago

Sorry I misread how this worked, and installed at the same time as a git plugin!