Domain Manage

Any wordpress plugin programmers?

Discussion in 'Wordpress' started by monaghan, May 29, 2014.

Thread Status:
Not open for further replies.
  1. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    I'm mainly a Drupal guy, I have a simple WP plugin, however, when I try to update it by uploading a new version via zip file I get

    Code:
    Unpacking the package…
    
    Installing the plugin…
    
    Destination folder already exists. /web/xxxxxxx/wp-content/plugins/xxxxxxx/
    
    Plugin install failed.
    If I delete the plugin and install the new version, all is good. Any suggestions on how I can make this update either via a new .zip upload of via an update URL? I can update the install manually, but want to make it easy for the customer to update using just the WP admin page.
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
    Looks like your host isnt allowing it to replace the files after extraction, simple way around it would be to simply unzip the contents and upload the folder to your plugins folder overwriting any files that require it. Its the same thing as your attempting now but just FTP upload rather than zip upload
     
  4. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    The host is me! It is on a local dev server and I've chmod 777 on the plugins folder so should not be a permissions issue. When it goes live it will be on a Plesk server that I don't have admin access to so it needs to be right as this is phase 1 and there will be further phases that will need simple update ability without messing about with ftp (I have no issue with ftp, but it has to be via the WP admin page to make this customer self service update.)

    Any ideas on what format the update URI has to be in to work? There's mention on updating via wordpress.org, but this will be a bespoke commercial tool, not suitable for hosting at wordpress.
     
  5. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
    It may not be a Permission issue , it maybe an ownership issue if scripts are not allowed to write or overwrite in this case as they should. Why not just delete the folder and upload the new one ? its the same as overwriting and the likelihood is when you move to the plesk platform it will be setup so this isnt an issue.

    Your also not effectively "upgrading" a plugin like through the upgrade process from the wordpress plugin archives , your uploading a zip telling it to install not upgrade which it wont do when there is an instance already there.

    If it has the option to "upgrade" in the plugin list with "upgrade now" link simply click that instead which removes the old version before installing the new. If its a custom plugin or one that isnt hosted on wordpress archieves then the correct way of doing it is by removing the folder and uploading the new one.
     
    Last edited: May 29, 2014
  6. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    You're missing my requirement, I can ftp (well I own the server so have the desired folder mounted on my workstation file system), my customer is non-technical, hence the desire to have the update work via the WP system. Drupal & Joomla seem to have this nailed, so assume that it should be possible with WP.

    WP was installed via the "5 minute install" from WP. The initial plugin install works OK via WP, so assume initial ownership / permissions are good to allow me to create the folder and then to delete it through WP, just need to crack the in-place update.
     
  7. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
    Ok lets put this in simple terms....

    Does the commercial plugin have the ability to Auto update ?

    If yes , do it via the auto update in the plugin list not through the upload plugin.

    If no, then they need to have access to removing the plugin before being able to upload another zip.

    The "add new" plugin part of word press from what i understand doesnt have the ability to remove the old version and install the new one.
     
  8. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    Where is this documented for non wordpress.org hosted plugins?
     
  9. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
    Sorry what do you mean ? Are you asking where to find out if they are plugins which support autoupdating ?

    if so goto the plugins part of wordpress

    [​IMG]

    As you can see by a screenshot ive taken above you will see the plugin highlighted in red, at bottom it says update now.

    An example URL would look like this :

    youdomain.com/wp-admin/update.php?action=upgrade-plugin&plugin=wordfence%2Fwordfence.php&_wpnonce=652c5a0dd2
     
  10. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    Yes, where is the documentation on how to get WP to look at my own URL for an update? What do I need to add to the plugin in order to make it able to update from the GUI rather than a manual ftp upload?

    To delete is a pain as the finished version will have an uninstall_hook to purge the custom tables
     
  11. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
  12. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    The creator is me!

    I'll look at the link and see if that helps
     
  13. Adam H

    Adam H Well-Known Member Exclusive Member

    Joined:
    May 2014
    Posts:
    1,047
    Likes Received:
    84
Thread Status:
Not open for further replies.

Share This Page