This topic was marked solved by its starter, on January 11th, 2015, 07:02 PM
No overwrite of files
[Hook] Custom Fields »

CerealGuy

  • Posts: 336
No overwrite of files
« on January 6th, 2015, 07:27 PM »Last edited on January 6th, 2015, 10:26 PM
Overwriting the files everytime is a bit bad if you want to set file permissions on unix without acl. How about editing the files instead of overwriting them every time?! Everytime i enable a plugin, the permissions of Settings.php change. Same for /gz/*.

EDIT: Just tried it locally, for me file_put_contents doesnt overwrite the file, if its already there. But why the hell does it remote :hmm:.


EDIT2: Ignore this, and feel free to remove this topic. Its full of rubbish, im sorry for that...
EDIT3: This really happens, but probably only to Settings.php because wedge first creates that temp file and later removes Settings.php and renames temp file to Settings.php.

Story behind that: i put latest wedge on a server of a friend, but it behaves really mysterious. Im not able to enable more than one plugin, and also it doesnt show the right button when first activated. I really dont understand why this happens. Already tried to reinstall wedge, but doesnt help. This is really strange and maybe not a problem with wedge itself, but a bad configuration...

Nao

  • Dadman with a boy
  • Posts: 15,997
Re: No overwrite of files
« Reply #1, on January 6th, 2015, 11:16 PM »
That file is always created by wedge so it shouldn't have permission problems.
However if you're importing from SMF, you'll need to chown the file or ensure your apache config allows you to edit the file any other way through php.