Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Update Fails
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by
Ernest Marcinko.
-
AuthorPosts
-
June 28, 2019 at 7:58 pm #23505
Designdienstag
ParticipantHello, I am using Search Pro version 4.14.6 and it says that an update is available. However, when I hit update, I receive the following message:
“Aktualisierung fehlgeschlagen: Die Aktualisierung konnte nicht installiert werden, da einige Dateien nicht kopiert werden konnten. Dies liegt meist an inkonsistenten Dateiberechtigungen.”
In English this means “Update failed: The update could not be installed because some files could not be copied, mostly due to inconsistent file permissions.”
This issue just came out of nowhere. Do you have any Idea how this can be fixed?
WP-Version: 5.2.2–de_DE
Note: admin details only work for WP-Login!June 29, 2019 at 10:29 am #23506Ernest Marcinko
KeymasterHi,
I suspect that the PHP process running on the server does not have sufficient permissions to make changes to the plugin files. This could be either due to incorrect ownership values, or simply the file permissions are not set correctly. From the plugins perspective, you should try the manual update instead.
The ownership/permission issue must be solved on the server side via SSH or by contacting your hosting provider. It is also possible, that manual updating will resolve this, as the problematic files will be deleted and the new ones should get the correct permissions.July 3, 2019 at 1:12 pm #23580Designdienstag
ParticipantHi Ernest,
thanks. Unfortunately, the manual update fails as well.
I have root access and can ssh into the server. Do you happen to know which chmod or chown I need to apply to the plugin folder / files for php to allow access?BEST,
HENRYJuly 3, 2019 at 1:16 pm #23582Ernest Marcinko
KeymasterHi Henry,
Well, I think that is server dependent to some extent, but this should contain all the info: https://wordpress.org/support/article/changing-file-permissions/
For ownerships, ususally the www-data user needs to be the owner of the files, but that can be different. Depending on your server and path, usually a similar command should do:
sudo chown -R www-data:www-data /var/wwwPlease be very careful running SSH commands, always make sure to have a back-up.
July 3, 2019 at 1:49 pm #23584Designdienstag
Participantthanks! I got it using ssh and correcting ownership / access rights.
I appreciate your help.
Best,
HenryJuly 3, 2019 at 2:00 pm #23586Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.