E_WARNING (2) update.php:408 unlink(lock/update.lock): Permission denied 1. update.php(408): unlink(lock/update.lock)
It's not permissions ... it is because you cannot unlink a file that is still open in PHP running on Windows (the file pointer from make_lockfile() is still open when you hit line 408 of update.php.) Adding the following:
Code: Select all
fclose($lock_handle);
right before
Code: Select all
unlink(LOCK_DIRECTORY . "/$lock_filename");
clears this up. It's like opening and closing the door when leaving home instead of busting out a window and jumping.
![Laughing :lol:](images/smilies/icon_lol.gif)
Any chance of that making it into origin for us sorry Windows users?
![Wink :wink:](images/smilies/icon_wink.gif)
See one of the original suggestions in this post.
Thanks &
Cheers.