Koozali.org: home of the SME Server

wordpress cant apply update from dashboard

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
wordpress cant apply update from dashboard
« on: August 07, 2017, 02:17:43 PM »
Followed the wiki for the contrib but when clicking on update i get

Quote
Update WordPress

Downloading update from https://downloads.wordpress.org/release/en_GB/wordpress-4.8.1.zip

Unpacking the update…

Verifying the unpacked files…

Preparing to install the latest version…

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-includes/class-smtp.php, wp-includes/class-simplepie.php, wp-includes/class-phpmailer.php

Installation Failed

I also cant upload a theme.

Ive checked the httpd error logs but cant see anything useful?

guest22

Re: wordpress cant apply update from dashboard
« Reply #1 on: August 07, 2017, 03:14:02 PM »
If you installed from the contrib then those files are symlinks, hence wordpress can not auto update. You need to manually copy the originating files to the wordpress root directory, set www:www permissions. Then auto update.

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: wordpress cant apply update from dashboard
« Reply #2 on: August 07, 2017, 04:21:31 PM »
If you installed from the contrib then those files are symlinks, hence wordpress can not auto update. You need to manually copy the originating files to the wordpress root directory, set www:www permissions. Then auto update.
Ah i see.
Would i be better of removing it and just installing in an ibay then?

guest22

Re: wordpress cant apply update from dashboard
« Reply #3 on: August 07, 2017, 04:29:30 PM »
Ah i see.
Would i be better of removing it and just installing in an ibay then?


See the same wiki page on how to move the current contrib install to e.g. /opt or similar or an ibay. Just make sure you include a copy of those 3 files.

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: wordpress cant apply update from dashboard
« Reply #4 on: August 14, 2017, 09:07:00 PM »
Ah i see.
Would i be better of removing it and just installing in an ibay then?
or simply to update it using the rpm ( I added here the epel repo if you want to be sure to have the very last available version, but usually I move it fast to smecontribs) :

Code: [Select]
yum update wordpress --enablerepo=smecontribs,epel