Hello. I have a plugin called mmenu. This plugin creates a mobile menu. This plugin requires for some of its files to writable in order to work properly. I can’t seem to figure out how to fix it since the plugin checks wp-content/plugins/mmenu. I have already changed the file permission on web/app/plugins/mmenu but it is still does not work.
Does anyone encountered this write permissions issue on Bedrock?
So you would set the variable $str in function checkWritable using the plugin_dir_path function.
$str = plugin_dir_path('mmenu') . '/';
should be sufficient - not the most elegant approach but requires only minimal changes.
By the way: Judging from the code this is the only place where this path is used - and it is only used to generate an error message in the backend.
So when something doesn’t work on the frontend, there are still other hardcoded paths lingering around.
Thanks for the help. Yes. you are right. That function only checks the permission. The menu still does not work. I continue digging and check what the problem really is.