AssetManager.php removed from server

I don’t know if it’s a framework problem or server. But AssetManager.php file is removed as soon as uploaded on vendor/yiisoft/yii2/web/ on the server or ANY location. Even the version downloaded with softaculous don’t contain that file.

How to solve it ?

Hi,

This sounds weird…

Pretty sure it is a problem on the server.

Never faced any similar issues.

Regards

I found a similar issue on github (I’m not allowed to post links), someone posted “The file was being removed automatically because of the calls to symlink()” but didn’t understand what he means. How a new file can affect a symlink ???

Any idea please ?

Best Regards :slight_smile:

If you are using a user that does not have much privileges at all then I guess this could happen…

What happens when you use ssh/rsync?

Thanks for responding !! ^^

I want to clarify more, I found the problem after hours of searching and seeking helps.

I discover that symlink() function calls on AssetManager.php (lines 481 & 519) are the problem. The file is now kept on server after I deleted him.

I gave before that a 777 privileges to “assets”, “runtime” and “vendor”. But didn’t worked.

(I had also a problem to access to SSH)