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

Jak poprawić błąd „Brak katalogu tymczasowego” w WordPressie

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy widzisz błąd „Brak katalogu tymczasowego” na twojej witrynie WordPress?

Błąd ten jest poważny i uniemożliwia przesyłanie obrazków, aktualizację motywów i wtyczek oraz aktualizację rdzeni WordPressa.

W tym artykule pokażemy, jak łatwo poprawić błąd „Brak katalogu tymczasowego” w WordPress.

How to Fix "Missing a Temporary Folder" Error in WordPress

Co powoduje błąd „Brak katalogu tymczasowego” w WordPress?

Czy twoja witryna internetowa WordPress wyświetla błąd „Brak katalogu tymczasowego”? Ten powszechny błąd WordPress jest spowodowany nieprawidłowymi ustawieniami PHP w twoim środowisku hostingowym WordPress.

Istnieje określone ustawienie PHP, które definiuje katalog tymczasowy, którego aplikacje takie jak WordPress mogą używać do tymczasowego przechowywania danych. WordPress potrzebuje dostępu do tego katalogu tymczasowego, gdy przesyłasz obrazek, instalujesz lub aktualizujesz wtyczkę lub motyw albo aktualizujesz rdzeń WordPress.

Jeśli lokalizacja tego katalogu nie jest zdefiniowana w konfiguracji PHP twojego serwera, WordPress nie będzie w stanie wykonać żadnej z tych czynności i wyświetli błąd „Brak katalogu tymczasowego”.

The 'Missing a Temporary Folder' Error Message

Możesz skontaktować się ze swoim dostawcą hostingu i poprosić go o poprawkę. Jeśli nie jesteś zadowolony z otrzymywanej pomocy technicznej, rozważ zmianę firmy hostingowej na lepszą.

Mimo to możliwe jest również samodzielne poprawienie błędu za pomocą obejścia. Przyjrzyjmy się, jak łatwo poprawić błąd „Brak katalogu tymczasowego” w WordPress.

Jak poprawić błąd braku katalogu tymczasowego w WordPressie?

W tym poradniku będziesz musiał edytować plik konfiguracyjny wp-config.php WordPress. Jeśli nie robiłeś tego wcześniej, zapoznaj się z naszym przewodnikiem na temat edycji pliku wp-config.php w WordPress.

Najpierw musisz połączyć się z twoją witryną internetową za pomocą klienta FTP lub menedżera plików znajdującego się w kokpicie cPanel twojego konta hostingowego.

Następnie należy zlokalizować plik wp-config.php i edytować go.

You Need to Edit wp-config.php

Poniższy fragment kodu należy wkleić do pliku tuż przed linią z napisem „To wszystko, przestań edytować! Szczęśliwego publikowania.

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
Paste the Code Snippet Into wp-config.php

Zapisz wprowadzone zmiany i prześlij plik wp-config.php z powrotem na swoją witrynę internetową.

Następnie należy przejść do katalogu /wp-content/folderi utworzyć w nim nowy katalog. Powinieneś nazwać ten nowy katalog temp.

Create a Temp Directory in the WP-Content Folder

To wszystko. Możesz teraz przejść na swój obszar administracyjny WordPress i spróbować wgrać obrazek.

Jeśli nadal widzisz komunikat o błędzie „Brak folderu tymczasowego”, musisz sprawdzić uprawnienia do katalogu wp-content.

Korzystając z klienta FTP, przejdź do katalogu głównego twojej witryny WordPress. Następnie należy kliknąć prawym przyciskiem myszy katalog wp-content i wybrać opcję „Uprawnienia plików…”.

Check the File Permissions of the WP-Content Folder

Spowoduje to wyświetlenie okna dialogowego uprawnień do pliku. Teraz musisz wpisz 755 w polu wartości liczbowej.

Następnie możesz kliknąć przycisk „OK”, aby kontynuować.

Make Sure the File Permissions Are 755

Teraz powinieneś być w stanie przesyłać obrazki i przeprowadzać aktualizacje na twojej witrynie WordPress.

Mamy nadzieję, że ten poradnik pomógł ci dowiedzieć się, jak poprawić błąd „Naprawiono katalog tymczasowy” w WordPress. Możesz również zapoznać się z naszym przewodnikiem na temat tego, jak przyspieszyć twoją witrynę WordPress lub z naszą ekspercką listą najlepszych wtyczek do mediów społecznościowych dla WordPress.

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.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

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.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

26 komentarzyZostaw odpowiedź

  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. Rojin says

    I had the “Missing temporary folder” error today, with only one site, and the problem was an old theme. I temporarily switched theme to one of the default WordPress themes.
    define(’WP_TEMP_DIR’, dirname(__FILE__) . '/wp-content/temp/’);
    This code and even the steps did not worked for me. Do you have any other methods to solve the issue.

    • WPBeginner Support says

      If none of these methods worked for you, we would recommend reaching out to your hosting provider and see if they possibly have a setting that is overriding what you’re trying to do.

      Administrator

    • WPBeginner Support says

      If the methods from this guide do not solve the issue, we would recommend reaching out to your hosting provider for them to take a look at your folder permissions for you.

      Administrator

  3. Brian Coogan says

    I had the „Missing temporary folder” error today, with only one site, and the problem was an old theme. I temporarily switched theme to one of the default WordPress themes (‘twentytwentyone’) and the error disappeared, at least in my case. I could see a whole bunch of JS errors in the browser console log (F12 in Chrome).

    I did check out the temporary folder stuff above, but it didn’t seem to be key for me. Worth noting that my theme was VERY old and VERY broken (ie: PHP 5.6 days!), but just mentioning this in case someone else like me has tried everything else!

    I didn’t have time to check out what was happening in the code to produce this message, but just wanting to confirm that there’s at least one cause. In my case I’m the host and I’m sure the other sites on the server had no problem.

    • WPBeginner Support says

      Thanks for sharing what caused this issue for you should someone else be looking for a reason :)

      Administrator

  4. Shahzad Ghafoor says

    I have edit wp-config.php and created a temp folder but also there is error and not going to upload any file except after doing this I can just find and install themes and plugins but can’t upload from pc.

    • WPBeginner Support says

      If the first method in this guide did not work for you, we would recommend following the steps in our troubleshooting section.

      Administrator

  5. Mel says

    Thanks for this info. I had a site that had no issues previously with upgrading and then all of a sudden nothing would work – upgrades, uploads, etc. This fixed it. Thanks so much!

  6. Thami says

    Hi all. Unfortunately I have tried to find the wp-config.php file in my cpanel, without any luck. It is just not there.

    • WPBeginner Support says

      You may want to check with your hosting provider to ensure you are connected to the correct folder for your site

      Administrator

  7. Rowan says

    Also this error shows up when you have reached your disk quota. I get many clients emailing me about this, but they’ve just been uploading huge files and their web hosting is full. Clear some space and it’ll work again.

  8. AR Badhon says

    Thanks for Suggest..
    but i’m tried , before i’ll can’t upload . finish set to set guide line.
    pls Anyothers way

  9. evans kyei says

    Add From Server plugin saved my time. it’s easy to use, just upload your image through ftp and use Add from sever plugin to import to your Media Library.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.