Directory

Jak poprawić błąd "Brak katalogu tymczasowego" w WordPressie
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

Ten krytyczny błąd „Brak katalogu tymczasowego” w WordPress jest poważny.

Odkryliśmy, że może to uniemożliwić przesyłanie obrazków, aktualizację motywów i wtyczek, a nawet aktualizację rdzenia WordPressa, poważnie ograniczając funkcjonalność twojej witryny internetowej.

W tym artykule przeprowadzimy Cię przez kroki, aby łatwo poprawić błąd „Brak katalogu tymczasowego” w WordPress, aby Twoja witryna internetowa działała płynnie i wydajnie.

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 „Brak katalogu tymczasowego” w WordPress. Możesz również zapoznać się z naszym przewodnikiem na temat tego, jak skonfigurować dzienniki błędów WordPress a lub naszym eksperckim wyborem najczęstszych błędów WordPressa i sposobów ich poprawki.

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

    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

    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

      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

  3. RT Helan

    I tried as you mention but still not working

    • WPBeginner Support

      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

  4. Luan Roloff

    I had the same problem when uploading new media files, updating my theme solved this problem for me.

    • WPBeginner Support

      Glad that solved the issue for you and thanks for sharing what worked for you :)

      Administrator

  5. Brian Coogan

    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

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

      Administrator

  6. Shahzad Ghafoor

    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

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

      Administrator

  7. Mel

    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!

    • WPBeginner Support

      Glad our guide was helpful :)

      Administrator

  8. Paula Stewart

    Thank you so much for this, it really was easy to follow.

    • WPBeginner Support

      You’re welcome :)

      Administrator

  9. Jigisha

    Thank you. It worked perfectly.

    • WPBeginner Support

      You’re welcome :)

      Administrator

  10. Rabswudil

    Thank you so Much, God Bless you

    • WPBeginner Support

      Glad our guide was helpful :)

      Administrator

  11. Thami

    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

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

      Administrator

  12. Siloru

    Thank you!! You saved my nerves…

  13. Mohsin

    Thanks’ it worked for me.

  14. Rowan

    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.

  15. AR Badhon

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

  16. evans kyei

    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ę.