Chat with us, powered by LiveChat

Why can’t I upload a picture to my wordpress site?

Home / Post / Why can’t I upload a picture to my wordpress site?

Why can’t I upload a picture to my wordpress site?

This is quite a common issue in the world of WordPress that typically rears its ugly head when you least need it. (Rather like the situations where you really need to print something and so your printer chooses precisely that time to stop working!)

A fantastic idea comes to you for a new post to your blog. So you login to the WordPress admin, click on Posts/Add New and excitedly start tapping away at your keyboard to start writing the article idea you have.

You then pick an image that would suit the content and try to upload it to accompany your new post.

So you find a picture and click on the Featured Image/media library. upload the image and get greeted with an error:

Uploading

time.jpeg The uploaded file could not be moved to wp-content/uploads/2019/03.

Hmpf!

Why not?

Login to Cpanel that is hosting your website

Navigate to
File Manager

public_html

wp-content

Uploads

2019

and on the right hand side you should see “permissions” set to 755

That is good, so I then check the folders within 2019 and see there are many files all set to 644

What I want to do is bulk change all of those files(images) in there to 755 but I don’t know how to do that without entering the merky world of SSH access. I much rather prefer to stay in the WYSIWYG world that I’m used to.

So, in this case I re-upload the image by clicking on the “upload” button, finding the image file, selecting it and hence uploading it. Once there I can change its permissions to 755

So I excitedly go back to my wordpress site. Refresh the admin page, go to posts and find the draft post I had been working on. I click on Featured image (expecting to see the image I had uploaded would be visible but nothing. So I reupload it again and get

time.jpeg The uploaded file could not be moved to wp-content/uploads/2019/03.

Then I begin to realise that there must be another way, so I search and find this article: How to fix the uploaded file could not be moved

Which I decided to trust entirely because it began with “How to fix” yada, yada, exactly what I want to fix! Slight probelem though that it meant I would need to delve into that merky world of zero’s and ones. I’d have to use something called Putty. I remember fondly in my school days playing with silly putty! This Putty is “sensible” putty.


PuTTY is a free and open-source terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. It can also connect to a serial port. The name “PuTTY” has no official meaning.

Wikipedia

🙂

I’ll be honest and confess that I really am not a Terminal-guy. I think the technology is pretty cool that you can get cool results from tapping in a few digits into your keyboard but it isn’t my thing. I think it is best left to the “professionals”! (I put professionals in quotes there because I think you know I really mean Nerds! )

But I tried a little and realised I did need some help with this. So I contacted my web hosts who politely told me that…this website wasn’t on their server!

So, that was a little progress since I now knew what I needed to log into.

So I tried and successfully connected. I entered the root username and then tried to paste in the password…”tried” would be operative word there. For you not familiar with a putty emulator environment, what you need to know is that it isn’t a Word document. Mr Gates does have his faults but I confess that Microsoft Word does do a good job of being a word processor.

So I went now to our server techs and they did some “bashing” (that is my name for tinkering with the terminal) and let me know that some changes had been made:

Bashing
Bashing

“Bashing” results changed the group ownership

The result of the “bashing” was in the “nearly there” category.

Putty Logo
Putty Logo

“Sensible” PuTTY

As you admire the beautiful putty logo, do you know why it has a mix of lowercase and uppercase? Or just look at the next image and think back to your childhood whereyou had some good fun with silly putty!

End Note: We’ve been running this website for many years and after so many upgrades and redesigns we realise that the site has become rather bloated with redundant, conflicting plugins. This will require a lot of work and not really something I want to do but in the words of Martin Luther King:


Take the first step in faith. You don’t have to see the whole staircase, just take the first step.   


Martin Luther King

Leave a Comment