Pages: 1
Hello,
I ran the automatic update from 14.4.0 to 14.5.0 (using the Piwigo admin panel on my local server)
The update failed with the following log entry:
include/functions_metadata.inc.php: write_protected
Practically all of the php includes in this directory have -rwxr-x-r-x. No special permissions. My Piwigo otherwise runs normally without a single problem.
I don't want my Piwigo to stay in an unknown state (partially patched) because that may cause a huge problem with the database.
My Piwigo self-reports to be running the latest version but I don't know how many files were left unpatched.
Can you please advise? Thanks!
Offline
-rwxr-x-r-x doesn't say much. If the user the web server runs as is not the owner of the file it does not have write permission. Also check the directories' permissions, deleting or adding a file needs write permission in the directory as well. See also [Forum, post 183419 by erAck in topic 31993] What are the correct permissions for Piwigo files and directories ?.
If in doubt replace all your files with the files from the 14.5.0 zip and be aware that file ownership will be set to the user account creating a file, which when logging in to ssh or using ftp may differ from the web server user account.
Offline
erAck wrote:
If in doubt replace all your files with the files from the 14.5.0 zip and be aware that file ownership will be set to the user account creating a file, which when logging in to ssh or using ftp may differ from the web server user account.
So, to be more specific, those permissions all have www-data:www-data as Owner/Group, and the container folder is also writable by www-data.
Chances are, a few months back I decided to manually update the affected file to manually fix PHP code in the Piwigo installation and then forgot to chown that file after making changes as server admin. So the auto-update user (www-data) failed when attempting to overwrite this single file.
Thanks for your helpful response!
Last edited by triggerhappy (2024-09-10 01:30:24)
Offline
Pages: 1