Plugin tries to write to read-only plugin folder on WordPress VIP hosting
-
We’ve encountered an issue with the plugin while running it on a WordPress VIP environment. In the logs, we’re seeing the following warning:
PHP Warning: fopen(/var/www/wp-content/plugins/mailin/js/service-worker.js): Failed to open stream: Read-only file system in /var/www/wp-content/plugins/mailin/sendinblue.php on line 740This happens because WordPress VIP enforces a read-only file system for plugin directories, and the plugin is attempting to write a file within its own directory using the code.
Suggested Fix:
Consider writing the service worker file to thewp-content/uploadsdirectory instead of inside the plugin directory.Let me know if you need any further information — happy to assist.
The topic ‘Plugin tries to write to read-only plugin folder on WordPress VIP hosting’ is closed to new replies.