Flarum 1.8.7
PHP 8.3.12
Extension Manager v1.0.4
I have customized two Flarum extensions (edited the core extension code) because that extension never support what I need. This let me see the issue with the Extension Manager that I will explain here.
Example of customization done:
Extension FoF User Bio 1.4.0
File changed: https://discuss.flarum.org/d/17775-friendsofflarum-user-bio/130
Now let suppose I need install a new extension with the Extension Manager.
I go on the Flarum admin, extension manager and I insert the string of the extension to install then I run the command and I wait is done by the queue.
Once this has done the user-bio customization is lost and this because seems all extension are reinstalled?
I tried to do something that I discovered was wrong: to avoid every time to loose extension code customization I assigned the user-bio folder under vendor to the root user and root group. With this I was hoping that by adding an extension or updating Flarum the extension would not be touched and changed.
I knew a mistake could happen.
I tried to install or remove and extension with the Extension Manager and get the community broken.
The community that was no more reachable.
I was in the SFTP vendor folder and what I saw all extension was removed except two.
For resolve this I run composer update with the correct not root user and changed back the two folders permission removing the root assignment and do again composer update. All is back to normal but... I discovered that maybe when an extension is installed or removed with the Extension Manager all other extension are also affected / reinstalled. I think this should not happen.
If I edited the user-bio and I add or remove an extension from the Extension Manager, I suppose I should not loose the edits I do on the user-bio but this is what is happening.