Gli errori di caricamento delle immagini possono essere frustranti, soprattutto per i principianti. Un momento prima tutto funziona bene e un momento dopo non si riesce a caricare un’immagine senza averla modificata.
Si tratta di uno dei problemi più comuni relativi alle immagini in WordPress. La buona notizia è che la correzione è più semplice di quanto si possa pensare.
Abbiamo riscontrato innumerevoli problemi di uploader di immagini sui nostri siti web WordPress, quindi sappiamo quanto possano essere fastidiosi questi errori. Fortunatamente, questo significa anche che conosciamo diversi metodi per risolvere e correggere questi problemi.
In questo articolo vi guideremo attraverso i passaggi per correggere i problemi di uploader delle immagini in WordPress. Seguiteci e tornerete a caricare immagini in men che non si dica.
Cosa causa il problema di caricamento delle immagini in WordPress?
Ci sono alcuni motivi comuni per cui potreste avere problemi nel caricare le immagini in WordPress.
In primo luogo, i problemi di cross-browser possono essere un fattore. A volte un’immagine si carica bene in un browser ma non in un altro. I diversi browser gestiscono l’uploader dei file in modo diverso e questo può causare problemi.
Anche i nomi dei file non validi possono causare problemi. Se il nome del file immagine contiene caratteri speciali o spazi, WordPress potrebbe non accettarlo. Per questo motivo si consiglia di utilizzare sempre nomi di file semplici con lettere, numeri e trattini.
La cache può interferire anche con l’uploader delle immagini. Una cache obsoleta può causare problemi di ogni tipo, quindi cancellare la cache del sito può correggere i problemi di uploader.
Inoltre, alcuni plugin possono entrare in conflitto con il processo di uploader delle immagini. Un plugin potrebbe causare un problema senza che ve ne rendiate conto. Ad esempio, le impostazioni o le caratteristiche di un plugin a volte interferiscono con la funzione di uploader.
Oppure il colpevole potrebbe essere il tema. Alcuni temi non sono costruiti correttamente e possono interferire con il caricamento delle immagini. Un tema mal codificato può creare conflitti ed errori che impediscono la riuscita dell’uploader.
Il problema potrebbe anche essere dovuto a un’errata autorizzazione dei file. Ciò significa che WordPress non può scrivere nella cartella uploader e si verificano errori durante il caricamento se le autorizzazioni non sono impostate correttamente.
Infine, potrebbe trattarsi di un problema di limite di memoria. Se il sito non ha abbastanza memoria allocata dal servizio di host, non può gestire file di grandi dimensioni. Questo può causare errori di upload o caricamenti incompleti.
Non volete gestire da soli i problemi legati alle immagini? Lasciate che gli esperti di WPBeginner Pro Services vi aiutino! Offriamo un’assistenza WordPress di emergenza a prezzi accessibili per correggere rapidamente i problemi di immagine di WordPress o qualsiasi altro errore. Smettete di stressare il vostro sito e prendetevene cura. Verificate i servizi di assistenza WordPress oggi stesso!
Video tutorial
Se preferite le istruzioni scritte, continuate a leggere.
Correzione del problema di caricamento delle immagini in WordPress
Comprendere le cause comuni dei problemi di uploader delle immagini in WordPress è il primo passo. Ora che conoscete alcuni dei motivi più comuni dei problemi di uploader delle immagini in WordPress, vi mostreremo come correggerli.
Ecco una rapida panoramica di tutti i consigli di cui ci occuperemo in questa guida:
Pronti? Iniziamo.
Suggerimento 1: Ricaricare la pagina o eseguire il test con un altro browser
Innanzitutto, il più delle volte ricaricare la pagina può correggere il problema. Può sembrare una correzione semplice, ma spesso funziona.
Il problema di caricamento delle immagini può essere causato dalla sessione di accesso in scadenza. In questo caso, ricaricando la pagina o navigando da un’altra scheda ci si disconnette. Sarà necessario effettuare nuovamente l’accesso.
Il problema potrebbe verificarsi anche perché WordPress sta perdendo la connessione con il browser. Questo può accadere a causa di problemi con il vostro provider di servizi Internet o di problemi temporanei con il vostro host WordPress. Ricaricare la pagina e ricaricare il file immagine può correggere l’errore.
Altre volte, il problema di caricamento dell’immagine potrebbe essere legato al browser. Si potrebbe provare a caricare l’immagine con un altro browser. Questo può aiutare a identificare se il problema è specifico del browser in uso.
Suggerimento 2: ricaricare l’immagine attraverso la libreria dei media
Se il problema persiste anche dopo aver ricaricato la pagina o aver cambiato browser, si può provare a ricaricare l’immagine attraverso la libreria dei media.
Quindi, invece di caricare l’immagine direttamente nella pagina o nel post, dovrete andare su Media ” Aggiungi un nuovo file multimediale dalla vostra dashboard di WordPress.
Quindi, è sufficiente fare clic su “Seleziona file” e provare a caricare l’immagine.
A volte questo può correggere il problema.
Suggerimento 3: Rinominare il file immagine
Se il nome del file immagine contiene spazi, WordPress potrebbe rifiutarlo. Inoltre, dovreste evitare di usare caratteri speciali come “#”, “#!” o “@”. Questi caratteri possono creare problemi perché i server web e i browser potrebbero non supportarli.
Quindi, assicuratevi di rinominare il vostro file immagine con qualcosa di semplice e diretto. Dovrete usare solo lettere, numeri e trattini.
Ad esempio, invece di “la mia immagine #1!.jpg”, si può rinominare “la mia immagine-1.jpg”.
Suggerimento 4: Cancellare la cache
Una cache non aggiornata può causare diversi problemi, tra cui problemi di uploader delle immagini.
La cache serve a velocizzare il sito memorizzando copie dei contenuti, ma a volte può causare conflitti. Una cache obsoleta o corrotta può impedire che i nuovi caricamenti vengano riconosciuti o elaborati correttamente.
Aggiornare la cache può spesso correggere il problema, facendo in modo che il sito elabori il nuovo uploader senza che i vecchi dati in conflitto siano d’intralcio.
Fortunatamente, è facile cancellare la cache del sito. Di solito è possibile farlo attraverso il plugin per la cache, come WP Rocket, o il pannello di controllo del fornitore di hosting.
È inoltre consigliabile cancellare la cache del browser. Il browser memorizza copie delle pagine web, comprese le immagini, per caricare più velocemente i siti alla visita successiva. Per questo motivo, una cache del browser non aggiornata può causare problemi con i nuovi uploader.
Per cancellare la cache del browser, in genere è necessario accedere alle impostazioni del browser, trovare l’opzione per la cancellazione dei dati di navigazione o della cache e selezionarla.
Per maggiori dettagli su come cancellare la cache, potete consultare la nostra guida su come cancellare la cache di WordPress. Una volta cancellata la cache, provate a caricare nuovamente l’immagine.
Suggerimento 5: Verificare la presenza di problemi relativi a plugin e temi
A volte, i plugin o i temi entrano in conflitto con il processo di uploader delle immagini. Questo può accadere perché alcuni plugin o temi non sono pienamente compatibili con l’ultima versione di WordPress o tra loro.
Per diagnosticare e correggere il problema, è necessario eseguire alcune operazioni di risoluzione dei problemi.
Per prima cosa, è necessario disattivare tutti i plugin. Per farlo, andate nella sezione “Plugin” della vostra dashboard di WordPress e selezionate “Disattiva” per ogni plugin.
È anche possibile disattivarli tutti in una volta.
Per istruzioni più dettagliate, potete fare riferimento alla nostra guida su come disattivare facilmente i plugin di WordPress.
Poi si può passare a un tema predefinito, come Twenty Twenty-One.
È possibile farlo andando su Aspetto ” Temi nella dashboard di WordPress e attivando il tema predefinito.
Questo passo aiuta a determinare se il problema è legato al tema corrente.
Quindi, provare a caricare nuovamente l’immagine. Se il caricamento funziona, significa che il problema è stato causato da uno dei plugin o dal tema precedente.
Per trovare la causa esatta, è possibile iniziare a riattivare i plugin uno per uno. Dopo aver attivato ciascun plugin, provare a caricare nuovamente un’immagine. In questo modo, è possibile trovare il plugin specifico che causa il conflitto.
Se il problema ricompare dopo l’attivazione di un particolare plugin, avete trovato il colpevole. È ora di cercare un’alternativa o di contattare l’assistenza di WordPress.
Se il cambio di plugin non risolve il problema, potrebbe essere legato al tema utilizzato. È possibile contattare lo sviluppatore del tema per ottenere assistenza o considerare l’utilizzo di un tema WordPress diverso.
Suggerimento 6: Regolare le autorizzazioni dei file
Il problema del caricamento delle immagini in WordPress può verificarsi anche a causa di autorizzazioni errate sui file. I file di WordPress sono ospitati sul server del web hosting e hanno bisogno di autorizzazioni specifiche per i file e le directory per funzionare.
Autorizzazioni errate sui file impediscono a WordPress di leggere o caricare i file sul server ospitato. È possibile che venga visualizzato il seguente errore di WordPress quando si carica un file immagine:
Impossibile creare la directory wp-content/uploads/2019/04. Il genitore della directory è scrivibile dal server?”.
Oppure si potrebbe vedere l’errore:
‘Non è stato possibile spostare il file caricato in wp-content/uploads/’.
Un altro segno di questo problema è la scomparsa delle immagini dalla libreria multimediale di WordPress.
Il mio sito funzionava bene prima. Chi ha cambiato i permessi dei file?
Questo può accadere per una serie di motivi. Una configurazione errata sul vostro server di hosting condiviso può talvolta modificare tali permessi senza che voi facciate nulla.
Ad esempio, il vostro fornitore di hosting potrebbe aver eseguito un aggiornamento che ha modificato inaspettatamente le autorizzazioni dei file.
Se tutto il resto funziona bene sul vostro sito web WordPress, potete semplicemente applicare le corrette autorizzazioni sui file per correggere il problema dell’uploader delle immagini.
Nota: questo metodo è un po’ più avanzato. Se avete bisogno di aiuto, non esitate a contattare il nostro Supporto WordPress di emergenza per ricevere assistenza.
Modifica delle autorizzazioni dei file
Per modificare i permessi dei file, è necessario utilizzare un client FTP.
Innanzitutto, colleghiamoci al sito web tramite FTP e poi passiamo alla cartella /wp-content/
. Al suo interno troverete la cartella uploads
, in cui WordPress memorizza tutti i caricamenti dei media, comprese le immagini.
Ora cliccate con il tasto destro del mouse sulla directory uploader
e selezionate “Autorizzazioni file”.
Verrà visualizzata la finestra di dialogo dei permessi dei file.
Da qui, è necessario impostare le autorizzazioni dei file per la directory uploads e per tutte le sottodirectory al suo interno a ‘744’.
A tale scopo, è possibile inserire 744 nella casella del valore numerico e selezionare la casella accanto a “Ricorri nelle sottodirectory”. Quindi, fate clic sul pulsante di opzione “Applica solo alle directory“.
Fare clic sul pulsante “OK” per applicare le modifiche. Il client FTP inizierà ad applicare le autorizzazioni ai file delle directory.
Nota: se l’impostazione dei permessi di directory a 744 non risolve il problema, provare con 755.
Nella fase successiva, è necessario impostare i permessi per tutti i file della cartella uploads.
Per farlo, fare clic con il tasto destro del mouse sulla directory uploader
e selezionare autorizzazioni file. Nella finestra di dialogo delle autorizzazioni dei file, modificare il valore numerico in ‘644’.
Quindi, potete selezionare la casella accanto a “Ricorri nelle sottodirectory” e selezionare “Applica solo ai file”.
Infine, è sufficiente fare clic sul pulsante “OK” per applicare le modifiche.
Il client FTP modificherà ora le autorizzazioni per tutti i file all’interno della cartella uploader. Una volta fatto, potete tornare all’area di amministrazione di WordPress e provare a caricare nuovamente le immagini.
Se sul vostro sito web sono presenti moduli per il caricamento di file, dovreste testare anche quelli.
Nota: se non sapete usare un client FTP, potete anche usare il file manager fornito dal vostro fornitore di hosting WordPress. Poiché gli screenshot variano da host a host, dovrete rivolgervi al loro supporto per trovare le istruzioni.
Suggerimento 7: Aumentare il limite di memoria di PHP
A volte, i problemi di uploader delle immagini si verificano perché WordPress non ha abbastanza memoria per elaborare la carica. Aumentare il limite di memoria di PHP può aiutare a correggere questo problema.
In genere, è possibile farlo modificando il file wp-config.php
. Tuttavia, il modo più semplice è contattare il fornitore di hosting per chiedere aiuto. Loro possono aumentare il limite di memoria.
Per maggiori dettagli, consultate il nostro tutorial su come aumentare il limite di memoria PHP in WordPress.
Speriamo che questo articolo vi abbia aiutato a correggere il problema del caricamento delle immagini in WordPress. Potreste anche consultare la nostra guida completa alla risoluzione dei problemi o la nostra guida su come correggere gli errori più comuni di WordPress.
Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.
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!
Manpreet
My permissions are 755 but unable to upload images
johaness
hi , how can I solve this problem. of inserting image in post, , after uploading pic. when I click on insert into post nothing happens
WPBeginner Support
Hi Johaness,
We are unsure what may be causing this issue. Please try steps mentioned in our WordPress troubleshooting guide to find out what’s causing this issue.
Admin
Ravi Kant Singh
Try clicking ‘file url’ button first it fetchs url, then click insert into post. Hope it works for you.
Ed S
I tried this initially with 744. This stopped any images appearing at all for me on either wp-admin or my live website. Which was worrying and panic inducing!
So then tried 755, and images are appearing again on my live website. Which is a relief.
Still having exactly the same issue with uploading images though. Getting ‘http error’.
Angelica Perduta
Same problem here. for images over a certain size. They do appear in the media library but with no thumbnail and can’t be edited. Small images do work however.
JOY DUTTA
When i go for 744 all thumbnail are shown but uploading error remain
but when i go for 755 thumbnail gone but uploading error solved..
Now what shall i do.
WPBeginner Support
Hi Joy,
Please ask your hosting provider, they can also fix directory permissions issue for you.
Admin
JOY DUTTA
Thanks for reply
Today i checked also some images are uploaded but some images shown error in uploading
Joe
Thanks Edo, I worked it out.
Edo Escada
Hi,
I did my way, solved very well
Go to your hosting cPanel, go to PHP Version in the Software block..
Go to PHP Options in the right button
Edit to be like this :
:
memory_limit 1024M
post_max_size 128M
upload_max_filesize 64M
Then back to cPanel frontpage
Go to ModSecurity in the Security section
Change to Disable for your domain.
VOILAA !!!!
Regards
Let me know your success story
Atif
Thanks a bunch dude, nothing else worked, but this PHP options setting worked for me.
Tom
If the issue is cropping up after transferring a site to a new domain this works for me:
open the Settings menu, and select Media. If you see a file path with a textbox displaying where the files should be uploaded to, delete the text in the file path textbox, and click Save Changes once you’re done.
No try uploading an image, should work fine.
Katie
Thanks – that solved my problem. The server path had somehow been defined in Settings > Media. Removed it and replaced with the default wp-content/uploads, saved and that fixed it
Gord
Hi Tom,
I just wanted to say thank you as well. Your post saved me a lot of grief! I used a plugin to migrate a site to a new provider. The tool is excellent, but in this instance were so many files in my uploads directory that I needed to exclude images and move them separately via ftp. I spent an hour carefully checking file permissions and ownership in the Wordpress uploads directory until I came across your post. Sure enough, nder “Settings / Media” there was a hardcoded path valid only with my old hosting provider. Great post!
Vu
Thank you very much. My problem was same and your solution was great
ceesay
Thank you, thank you, thank you!! This happened when I migrated this site. Hasn’t happened to any of the other sites I’ve migrated, but the Settings>Media path was exactly the problem.
Pri Freire
Thank you soooo much!
Mika Kaakinen
Changing folder permissions to 755 resolved the issue for me. Thank you!
Vimal
I am facing a very basic problem, i tried many theme but when i add an element on a fresh new page it show the default content of (pagename and the recent post widget is visible and other widgets are behind my element i.e Slider) behind my slider or hero image Guyz PLz Help me
Mark Hetherington
I must have read two dozen different fixes fir this image error thing, then found a solution that s far, far easier than anything else I have read. In fact here’s the solution in three words: Change your browser.
Yep, that’s all I did. I’ve tried lots of different “solutions” with no joy, then just by chance I was working on a different computer one day, using Opera instead of Chrome (I’ve had the error with IE, Edge, Firefox etc. too) and I had no problem uploading my images. I’ve been using Opera for the purpose for months now and never had the HTTP error since.
I’m not saying it will work for every occurrence but it’s got to be worth a try!
Toon
Wow! worked for me! Safari -> Chrome on OSX
pooja
I have problem ..I want somebody help me please..
Some content of website like footer content are not displayed on chrome but it displayed on other web browser.I also change the Setting of chrome but its not work .So please help me…
Pooja
I have my old pictures in wordpress.
But i’m unable to upload new images.
Everytime i got this message….” Unable to create directory uploads/2017/09. Is its parent directory writable by the server”
I tried all
744
755
644
but three of them didn’t works for me
please tell any suggestion ?
Heather
Me too! I even thought I fixed the problem by increasing the upload size through the Media section under Settings and nope! You know what got it to work?
Resizing my freaking images. Silly me thought I was doing that through the settings on Wordpress, but nope!
I have a Mac and I resized my large images to 1920×1080 or less and made sure my Media Settings allowed that and sure enough, it works! All those hours of frustration… *sigh* I hope that helps!
Joe
I have no problem with inserting photos by doing so inside a paragraph and wraping text around it. But I cannot insert a larger photo in an area free of a paragraph. The size of the photo doesn’t change even though the file is larger. I changed the settings (media/settings) but nothing works. Can you help?
WPBeginner Support
Hi Joe,
Here is a simple tip that you can try if you haven’t already tried it. Press the enter key twice after adding a paragraph. Click on the upload media button to upload your photo. In the right column, select Full Size and then click on the insert image button. As soon as photo appears in your visual editor, press the enter key twice and start typing.
Alice
It still doesn’t solve my problem. I recently moved my newly created website from a subdomain to my main domain and everything worked fine except for my uploads. I went to my optons.php and tried to change my upload path. I noticed that when I tried to upload a file, the file is not even in my folder, doesn’t show up in my media library as a thumbnail. However, when I clicked on the broken image and clicked “edit image,” the image actually showed up!!! How weird! How can I fix my problem?
Melina
Hi Alice, I have exactly the same problem! I tried all the solutions that are given down but because my problem is with my multisite duplicates and not with the root site, none of them works. I can uploads the pictures, the sub-site recognizes they are there but shows just grey thumbnails. When I go to my ftp all access are correct and I have already tried changing the upload path. Nothing works! Could you solve your problem? What was the solution??
Lakshya Mohan
Similar problem is occurring with me. I have tried everything but still no use. When I upload an image, I see a blank thumbnail clicking on which I see a blank preview, but if I click on edit then only I am able to see the image. When I put that image in any post I see a broken link.
Chris Culver
did anyone find the solution to this issue. I am having the same occurrence with a cloned site that was created to work on for a site rebuild
Rafia khan
Thank you so much for the help. It worked for me as well
Tammy
I refreshed cache in WordPress and that fixed it.
mosh
changing file permissions to 655 worked!
Temi
This is what I did to mine:
I have moved my main file from one folder to the other in same cPanel and done some redirection. I didn’t change the LINK in Media setting for folder location so rather than images being located in the folder for the current domain directory, it was searching for images in the folder off the current one.
Just go to Settings in your wordpress dashboard, locate Uploading Files, Store uploads in this folder and check the directory (link) in that box. If the domain name is the old one you transferred from, then change it to your current one and save. Try upload images again and you would be glad.
Robert
Thanks to the author and also Temi, both your tips helped fixed my issue. I initially created my WP site in a subdirectory as well and subsequently moved it to the root folder to go live, not realising that Media settings was one of the places where I needed to update with the new URL to remove the subdirectory.
Just to clarify for everyone else, the Uploading Files field is under Settings > Media.
Melvin W.
Temi you are my hero!
Balram N.
Temi, you are godlike. The uploads folder path setting on WP was the freaking issue!!!! Thank you so much.
Alex mwailu
I am proud to solve your problems people…Just Login to your Cpanel and deactivate ModSecurity, just deactivate it.then you will be able to upload your images comfortablly
Dominic
Thanks Man, you just saved me, But is there any Disadvantage of Disabling Mod Security
Lee Pascoe
My images have uploaded into the media library, with no error messages and no permission problem.
However, when I click Insert into Post, it remains blank.
In Manage Products, there is a series of icons saying “No Image”
I have tried this several times, and have 6 of the same images in the Media library, (which I can’t delete!) but still no images on the product page.
I have tried this with 4 different pictures for 4 different products.
Help!
Divine Raphael
The fiirst step worked perfectly well for me!!! Thanks WP Beginner
Paul Keating
If this problem seems to be only when using google chrome- I found the answer to cure this problem as follows:
Go to settings on chrome- if you are signed in to chrome- sign out. reset the browser, clear the cache, reboot the machine and use chrome without signing in- presto !!!
You should now be able to upload images using the normal way. let me know if this works for you !
Dheeraj Soni
Hello,
I have been facing the issue of new image uploads being shown broken. I tried changing values from 755 to 744 & 711 & did 644 as well as as 655 but the issue is still persisting.. please suggest me how do i get this resolved?
Mayaprakash Pant
Hey, while I’m trying to upload images, it shows an error message:
“Image Upload Error. Precondition Failed”
How To Solve This?
joe
I’m having a strange issue related to this that i dont see anything similar in the thread. I uploaded a few images just fine a couple weeks ago. we were updated to the latest WP version at the time. Today I am going to upload images and the progress bar begins, and then just sticks at about 25%. never moves from there. I get no error message or anything. But when i click to leave page it just leaves – there is no “do you want to leave page while…” message. and then when i come back there is no progress bar or anything. The image is simply not there, no is there any indication i tried to upload it. I didn’t change anything in the settings between the time when i could upload images, and i tried deactivating the only plugin i installed and it did nothing.
Sandeep
I have a different problem
When i want to upload pictures, i’m not even getting the folder to select the image. Please help me out
Ahson
I am facing the image issue with FEW images on my WP website. When I tried to change the permission to 744, ALL of the images were GONE. Please assist how I can have these images appear again.
Also, I am not using FTP, I am directly changing from Godady hosting panel.
sherin
Please change numeric value as 755 then your pictures will appear gain
thor
Hi, guys, this is how I fix the image issue in WordPress library
In cPanel, in the Files section, click File Manager.
Select the button for Web Root (public_html/www).
hit the setting icon in the right
Place a checkmark in the box titled Show Hidden Files (dotfiles).
Click Go.
Review the numbers listed under the Perms column in File Manager.
Directories and folders should be set to 755.
Executable scripts within the cgi-bin folder must be set to 755.
Images, media, and text files like HTML should be set to 644.
Or you check the htaccess file by following this:
Bad .htaccess, Invalid Command
In the (dot) htaccess file, you may have added lines that are either worded incorrectly or conflicting with another coding in the file. The best way to troubleshoot this is to comment out the lines in the .htaccess file.
Always make a copy of the .htaccess file before making any changes to it.
You can comment out a line in the .htaccess file by adding # to the beginning of that particular line. For example, if the code in the .htaccess file looks like:
DirectoryIndex default.html
AddType application/x-httpd-php5 php
Then, try commenting it out like so:
DirectoryIndex default.html
#AddType application/x-httpd-php5 php
Broken lines and lines that start with php_flags are the most common mistakes. If you cannot determine which line is the problem, then comment out every line.
usually, the problem come from the line whit the jpg, png, in the code tray to comment this line like so (add # in front of the code line ) and then save
go to your library and tray to upload a picture
Sara
Hi,
We have recently got hacked and figured out that the images weren’t showing because the uploads folder was missing in Filezilla. We tried creating a new folder but it disappears as soon as we refresh. I can upload images in wordpress but they are seen as broken. Is there any way to fix this problem?
Your help is greatly appreciated!
Sara
Naomi Kroneck
Hello,
We have been trying to update the pictures on our website because they are outdated. We have several different pages that also have videos and when I try to update the pictures on those pages the videos disappear. But as soon as I delete the new pictures the videos come back. I am not sure what is going on.
WPBeginner Support
Hi Naomi,
Please follow our step by step WordPress troubleshooting guide to figure out what’s causing this issue.
Admin
pule
Hi, my media library images are all broken and even if I upload new ones .. I tried changing permissions on c panel to 744, 755, 655 but still no changes on building on page builder …how do I fix this problem
WPBeginner Support
Hi Pule,
You will need to change all file permissions to 644.
Admin
Musab
Hi WpBeginner Support ,
what do you mean by changing all file permission to 644 , like all files on my website ? or just upload file and his children ?
I’m facing the same issue and no solution worked for me till now , when I tried to change image format to bmb it works !
please anyone know how to fix this tell us .
Mandy
I changed my file permissions to 655 and that worked! So happy it’s fixed such a relief! Thanks for the article!
WPBeginner Support
Hey Mandy,
You are welcome. We are glad you found it helpful
Don’t forget to follow us on Facebook for more WordPress tips and tutorials.
Admin
Mark
I had this problem and tried the above solution but it did not work. What I did was in the Settings/Media area of my Wordpress Admin Dashboard I unchecked the option to organise my uploads into month- and year-based folders and after that it worked fine!
Dave Hamelink
Hello,
I am currently experiencing issues when trying to upload a new image to the media library. It gives the error: error during uploading, please try again later.
I tried everything, changing permissions in the FTP server, de-activating plugins, and reinstalling Wordpress. I am currently using Wordpress 4.7.
Can someone please help me?
regards,
Dave
Karen Field
I am having the same issue and have no clue on how to fix it!
dipto
You guys are really boss. Keep it up bro
bvo
Guys,
I have the same / a similar problem.
When I upload a image, it is copied to the right folder. But I can’t see it in the library and it gives a error message (error, try again later).
When I select a specifiec month in the library, I can see the images from that month, but when I do not select a specific month, I only see one blank square.
When I select the list view I see all images, but also a few empty thumnails that says “no title”. I can’t view, delete or whatever these.
I tried deactivating all plugins, I use the standard theme (twenty seventeen), I tried suggestions above. Noting helps.
Hope someone can help me…
Regards, Bas
Larry Dean
Working fine then all of a sudden it quit uploading image files. I get the error:
Failed to write file to disk.
I’ve tried the recommendations using ftp and it still doesn’t work. I installed WP to Buffer at about the same time this happened. Deactivated it but still can’t upload images.
Thanks for any help.
WPBeginner Support
Hi Larry,
The most common cause of this error is when file directory permissions are changed on your site. You can also try steps mentioned in our WordPress troubleshooting guide.
Admin
Larry Dean
It’s working again. The only thing I did was to deactivate the WP to Buffer plugin. Not sure why it took a period of time but all seems ok at this point. Thanks for your help.
Bartosz
Find in wp-admin dashboard menu ‘Settings/Media’. There is forder path do media files. Set correctly your server media path.
It’s works.
Marjorie Ray
Thank you for this post Bartosz. We had recently migrated a site and there was an address in the Settings/Media/StoreUploads which was causing the problem. I deleted that address, hit save, and it fixed the problem; am now able to upload images.
Marjorie
Henk
Hello,
Thanks for your answer. I was looking for this.
Garreth
Hey,
I had an issue too and found out that my share host was running php version 5.5.36. I had to add ”AddHandler application/x-httpd-php56 .php” to the .htaccess file to get the server to run php 5.6
I hope this helps
Amin
Hello I have the same problem but mine is like only for users: it says “Error during upload, please try again” and I tried everything anyway all i know and ain’t be fixed ._., can someone help? i will apreciate that. thanks !
mark p
did you ever get help on this error?? i have the same issue and nobody seems to be able to fix it, even my web hosting co. . . . ..thanks
Melanie
I am having an issue trying to rotate picture I downloaded into WordPress. It freezes up then tells me there is an internal error 500. Then it clears up in about 15 min but can not edit or do anything with pictures anymore or does same thing.
Thanks for any help
Jon
I followed the directions on changing the permissions for the uploads directory, now the site won’t come up and I can’t even get back into my WP dashboard. I’m getting a 500 error.
Can anyone tell me how to set the permissions as they were originally? In other words, how to undo the hatchet job that is now my client’s website?
I understand how to reset the directory permissions, but I don’t know what the file permissions were before.
WPBeginner Support
You can use 655 for all files, and 755 for all directories.
Admin
Amin
500 Error is related to your .htaccess / php.ini file i think you were using a cdn with wp rocket because it have that problem when you do changing directly from ftp and editing files directly like that. try to disable it, delete everything on your htaccess except the part of wp by default than retry again and activate your plugin again.
Vanessa
The explanation here on this page is trying to shoot a tiny bird with a cannonball.
It’s quite simple to fix the problem of image upload error in WP! Just DO NOT use any special or foreign language characters in the file names! and keep them short. This is the 101 of computer file naming protocol anyway and resolves the most cryptic of problems.
Most times, the best solution is the simplest solution.
Yenny Kartika
Wow, you’re right. It’s perfect.
I previously try to upload an image with “blabla-1” filename and it wasn’t uploaded.
I looked for some solutions in internet but found nothing, until this one simple solution.
After than I change the filename into “blablabla” and… it’s uploaded perfectly.
I feel so smart right now.
Thank you for sharing. God bless you.
christian
Hi Guys, I’ve been having this issue, along with connection lost problem, and it have caused me to abandon my blog. Still painful.
Anyone with help?
tomasofen
I have problems uploading some images. I didn’t know what the problem was, until i see the filename was using characters with written accent, like the spanish “Según se mire.jpg”.
Renaming it allows me to upload right.
Don’t know if this can be helpfull for somebody in the future
Zak
Hi people,
Try to put this in your themes file named “function.php” in the last line:
add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}
Jeroen
Hi,
Followed the instructions and it didn’t solve the problem. Any other idea’s to get the upload fixed again?
Tnx in advance
Oziel
Didnt work, Im getting “HTTP Error”
Alex mwailu
Did you get the answer to this?Please help me out,i am experiencing the same when I am uploading images from my wp dashboard
Steph
Hey Guys, I followed all the steps and it’s still not working. Everytime I try to upload an image it says “HTTP Error”
Wondering if someone could help me.
Cheers,
Steph
Alex mwailu
Did you get the answer to this?Please help me out,i am experiencing the same when I am uploading images from my wp dashboard
Dave
Didn’t work.
linda
Hi, I wanted to add a spreadsheet I created in Excel and have it display in a blog post. Should not be complicated , Right? But I have not been able to do so. 1st I saved the excel as a PDF file. Then I imported the pdf into Photoshop and saved as a jpeg. I try to upload into my Wordpress Blog and it will not accept the image. I keep getting an error.
WPBeginner Support
What error do you get?
Admin
Rae
I was having errors with images uploading and then realised I had an incorrect directory in the main Settings > Media
umer
hey guys how are you ..?
I have problem ..I want somebody help me please..
In my site images is not working properly in directory and not showing …
Also this site is not showing responsiveness in mobile ..
I am waiting for someone whose really know this problem ..I will be very thank full…
THanks
Anonymous
Same here! Thanks!