• I’ve suddenly hit a problem overnight on a site I’ve been working on for two weeks. There are two issues:

    1) There’s one Page (which has been working fine so far) where, when I click on ‘Update’ to save any changes I’ve made, it not only fails to save the changes, but then drops me into the ‘Posts’ list (https://example.com/wp-admin/edit.php) instead of the edit page (https://example.com/wp-admin/post.php?post=446&action=edit). So far, this is the only page where this happens – I can edit other pages fine. I’ve checked the database and the post_type is correctly set to ‘page’.

    2) I can no longer upload images. It doesn’t matter what method/route I try, the image seems to be uploading, but then I get a message saying that it failed to write to disk. (I’m on shared hosting.)

    I’ve tried deleting all cookies & data from my browser, tried a different browser on a different machine. I’m thinking this is a server-end problem. I’ve not made any changes to the server config or WP config in the meantime.

    Any thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @speculatrix,

    I am not sure about the first problem. But let us first try to address the second one which I have had happen to me in the past.

    The image upload issue is commonly caused by wrong file permissions. Your uploads directory should have correct file permissions otherwise WordPress will not be able to store your files in it or sometimes may not even display files from the upload directory. To set correct file permissions for your uploads directory, you would need a FTP client, like Filezilla.

    Please follow the instructions given on the following website (It worked for me in the past):
    https://www.wpbeginner.com/wp-tutorials/how-to-fix-image-upload-issue-in-wordpress/

    Thread Starter speculatrix

    (@speculatrix)

    Thanks for the suggestion, but the file permissions are set to 755, both for /Uploads and the directories inside it. I’ve also found I’m having the same image upload problem on another domain on the same shared hosting account, so something has gone screwy with the hosting, I think. I’m putting in a ticket with Bluehost. But I don’t understand how a server config problem would affect one page but not others, so that problem remains.

    Thread Starter speculatrix

    (@speculatrix)

    Well it turns out it was indeed a server issue, and one it might be useful for others to know about.

    I contacted the hosting firm Bluehost who said that the problem seem to lay in the /var/tmp/ and /home/<user>/tmp/ directories being “full”. (Not quite sure what that meant.) I deleted a whole bunch of unnecessary files and the problem went away. It’s all very strange because I didn’t specifically delete files in those dirs (I don’t even have access to /var/tmp/). But I was told that my deleting files had somehow magically cleared up the temp directories.

    Whatever happened, I suspect it had something to do with temporary files somewhere blocking whatever WP was trying to do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page won’t update & image uploading issue’ is closed to new replies.