• Hi,

    I am having problem with uploading images. I know that it’s caused because: “WordPress asks for your FTP credentials when it can’t access the files directly. This is usually caused by PHP running as the apache user (mod_php or CGI) rather than the user that owns your WordPress files.”
    Before I added FTP details to my wp-config.php I have “HTTP error”, when I was trying to upload new image, but after changing wp-config.php I am getting this error: “An error occurred in the upload. Please try again later.”.

    Is there some workaround, how to upload images?

    Thanks.

    Here is PHP.info of my hosting machine: http://www4.pipni.cz/phpinfo.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’ve seen that HTTP error when the tmp directory defined in the php.ini is not writable by the web daemon/php interpretor

    Thread Starter usrbowe

    (@usrbowe)

    Well, but I don’t have HTTP error anymore, now I have this error: “An error occurred in the upload. Please try again later.”.

    Thread Starter usrbowe

    (@usrbowe)

    @frumph Okey, now there is again HTTP error… So what could I do? I dont have access to php.ini (it’s shared hosting). Thanks

    Thread Starter usrbowe

    (@usrbowe)

    Now I discovered that image upload works stable for files around 30kB, and sometimes for images larger (tested on 150kB image)…

    its a recurrent bug… and so far no solution!

    Already gave you a solution. Get your hosting to clear out the tmp directory from the php.ini and give the daemon proper write / read permissions on it.

    all my permissions are set to 755
    and this bug happened randomly. Haven’t installed anything or do anything.

    again, the tmp directory that’s set in the php.ini, check the ownership make sure that the daemon has read/write as the group and that the tmp directory that is specified has enough allocated space

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can't upload images’ is closed to new replies.