Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här fixar du error om att destinationsmappen redan finns i WordPress

Ser du error ”Destination folder already exists” i WordPress?

Detta error uppstår vanligtvis när du installerar ett theme eller ett plugin på din website, men WordPress tror att samma fil redan har installerats tidigare.

I den här artikeln kommer vi att visa dig hur du fixar error ”Destination folder already exists” i WordPress.

 How to Fix Destination Folder Already Exists Error in WordPress

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är det bara att fortsätta läsa.

Vad orsakar error om destinationsfoldern redan finns i WordPress?

Error ”Destination folder already exists” i WordPress uppstår när du installerar ett plugin eller ett theme, men mappen för dessa filer redan finns. WordPress Avbruter då installationen med följande message error:

Packa upp förpackningen…

Installera plugin …

Destinationsfolder finns redan. /home/websitename/public_html/wp-content/plugins/plugin-name/

Detta plugin är redan installerat.

Example of the Destination folder already exists error in WordPress

För att ta reda på orsaken till detta error bör du besöka din Themes or Plugins page för att se om du redan har plugin eller theme installerat på din WordPress website.

Om det inte redan är installerat kan det betyda två saker. Det ena är att ett tidigare försök att installera misslyckades och lämnade kvar plugin- eller theme-foldern.

Om så är fallet bör du läsa våra guider för nybörjare för att avinstallera ett WordPress plugin och avinstallera ett WordPress theme.

Alternativt kan det betyda att ett tidigare försök att installera avbröts och lämnade en tom destinationsfolder.

I båda fallen kommer det att finnas en folder med samma namn som det theme eller plugin du försöker installera. Den här foldern hindrar WordPress från att fullfölja installationen.

Med detta sagt, låt oss ta en titt på hur man enkelt fixar error ”Destination folder already exists” i din WordPress blogg eller site. Du kan använda snabblänkarna under för att hoppa till den metod du vill använda:

Note : Eftersom denna tutorial handlar om att borttaga och ersätta filer rekommenderar vi starkt att du skapar en backup med ett plugin som Duplicator innan du går vidare. På så sätt kan du gå tillbaka till en tidigare version av din site om det skulle uppstå error.

Metod 1: Ersätt den aktuella foldern med den uppladdade filen

För att lösa error ’Destination folder already exists’ kan du försöka ersätta den befintliga plugin- eller theme-mappen med en ny upload. För den här metoden behöver du zip-foldern för det plugin eller theme som du vill installera.

Gå bara till sidan Tillägg eller appearance ” Themes i din WordPress dashboard och uploada zip-mappen manuellt från din dator.

WordPress kommer då att berätta för dig att du redan har tillägget eller temat installerat på din website och fråga dig om du vill byta ut det.

Clicking the Replace current with uploaded button in WordPress

Klicka bara på ”Replace current with uploaded”. Installationen av det nya temat eller pluginet bör nu vara utan problem.

Metod 2: Delete the Plugin/Theme Folder och installera om den

Om funktionen ”Replace current with uploaded” inte är available eller ej fungerar, kan you manuellt ta bort den befintliga foldern.

Först måste du ansluta till din WordPress site med hjälp av en FTP-klient som gillar FileZilla eller cPanel filhanterare.

När du är ansluten måste du gå till /wp-content/plugins/ eller /wp-content/themes/ folder (beroende på vad du försökte installera).

Leta nu efter mappen som heter efter det plugin eller tema som du försökte installera och sedan radera den.

Delete folder

Du kan nu gå tillbaka till ditt WordPress admin area och försöka installera tillägget eller temat igen som du normalt skulle göra.

Pro tips: Har du inte tillgång till en FTP-klient eller filhanterare? Försök att lägga till en FTP-liknande filhanterare direkt i WordPress med hjälp av WP File Manager plugin.

Experttips för att lösa vanliga error i WordPress

Upplever du andra vanliga WordPress error? Här är några guider som du kan kontrollera:

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du fixar error ’Destination folder already exists’ i WordPress. Du kanske också vill kontrollera vår lista över vanliga problem med WordPress Block Editor och hur man ökar PHP-minneslimiten för att fixa WordPress error ”Memory exhausted”.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

57 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Vivian says

    Hello.

    Thanks for the great post. The solution seems quite straight forward method to use when working on a live site that has a cpanel. How do I apply this method if I am using a Wamp server as my local host for a wordpress site. I had uninstalled a plugin and when I tried to reinstall it I got the error message: Installation failed: Destination folder already exists.

    Please help

  3. Florencia Doy says

    Hi, thanks for this quick tutorial. I was wondering if uploading the plugin with a different zip name would also work since then a new folder would be created with another name? I’m not too sure if this is the right way to go about it though, but I’m looking for other options than FTP since I don’t have access to that myself, just to WordPress. If you could clear that up, that’d be great!

    • WPBeginner Support says

      We would not recommend using that method as depending on the plugin it could cause problems with its features or if you were able to install it under a second name it would cause errors with duplicate function names.

      Administratör

  4. Midas Peng says

    Hi
    The Filezilla has connect to the Hosts server. and I can see the dirrectory, but when I want to delete the files. Filezilla show message of ”permission denied”. Do I need to do anything on Hosts server to permit the files can be deleted?
    thx for promt reply

    • WPBeginner Support says

      We would recommend reaching out to your hosting provider and they should be able to check your permissions for your FTP user.

      Administratör

  5. Vighnesh Acharya says

    Instad of delete you can also rename for the backup purpose (like woocommerce to woocommerce backup )

    • WPBeginner Support says

      That is another option as well but normally if there is an issue with a plugin it would be better to delete the files that are causing the problem.

      Administratör

  6. Feli says

    Is there a way to fix this without using an FTP client? I’ve never used one before but believe the issue I am having is due to deleting a plug in that I should not have deleted.

    • WPBeginner Support says

      Your hosting provider may have a file manager that would work as an FTP that you could use if you reach out to them for assistance.

      Administratör

  7. Fallon says

    I am a little apprehensive about deleting the Woocommerce folder as I had a bunch of things setup in my Woocommerce shop already-products, etc. Will doing this restore those or will I have to start over? I lost Woocommerce in my plugin list after WordPress update and now I get this message when trying to install. Thanks.

  8. asif majeed says

    I had a problem with my website
    after using this method, now it is fine.
    thanks for such a great article.

    • WPBeginner Support says

      If you are still receiving the error, we would recommend reaching out to your hosting provider and they should be able to assist.

      Administratör

  9. Lohith jayashancar says

    Thank you for helping. Jetpack plugin was unable to install with your help i downloaded filezilla in PC and solved the issue.

  10. Dimitris Mar says

    I use an older version of WPBakery plugin on my site. The updated version of it is included in my template that I use. What can I do? I tried to upload it but I did not make it.

    Can I delete the old version via FTP method and upload I again? Any risk of losing my current settings on the front-end of my site?

    • WPBeginner Support says

      While normally that shouldn’t be an issue, you would want to reach out to WPBakery for if you can safely do that with their settings.

      Administratör

  11. Steve says

    Thank you, Thank you.
    A really clear explanation with helpful links, that solved the problem with no fuss.

  12. Tameka M says

    This was a very helpful video! Solved my problem in less than 10 minutes. Thanks so much! My Jetpack plugin is working again!

  13. Vivek says

    this works i have deleted the folder through FTp and reinstalled visual composer plugin and it worked

    thanks
    vivek

  14. Chris says

    I am installing a DIFFERENT plugin that uses the same folder name (I guess) so there’s no real solution…? They are both ’accordions’ and it seems crazy WordPress struggles with this at all.

  15. Jessica says

    I received this error message when trying to update a plugin (Modern Events Calendar) to its newer version because an auto-update option is not available.

    If did this manually through the cpanel and deleted the old folder, would I lose my existing content?

    Thanks!

      • Ricky Spanish says

        To be on the safe side, you can rename the existing plugin folder. I usually just add an underscore and the word ”old” (_old) to the end of the directory name. Run the new install and test to see if it’s working. If it doesn’t work properly you can just delete it and then go back and change the name of the original folder to its original name. If it does work properly I leave the old folder there for a month or so just to be on the safe side.

  16. Elsa says

    This only works for wordpress.org sites. Do you have a solution for wordpress.com site where FTP and cPanel are not available?

  17. Beth says

    What an amazing post! I have been waiting for support from my plugin provider for 3 days!!!!! And when speaking to my hosting provider this morning they suggested I Google the error, saying that it was quite common. And you guys came through once again, providing simple and to the point guidance. I’m new to WordPress and appreciate what you do so much.

  18. Randal Byrd says

    I’ve deleted the offending folder both through FTP, and through my provider’s back end file manager.

    I STILL get the error. I’m stumped.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.