• Resolved biag

    (@biag)


    Hello,

    I’d be grateful if someone could help me with the following. I have two WordPress installations, one on my notebook and one on an Internet host (https://www.verdinavigli.org).
    The local Wp 2.0.2 works great: I can easily add\view\remove files and images with the built-in uploader or an image-dedicated plug-in (I use Photopress).
    The Internet Wp 2.0.2 behaves strangely with file uploads:
    – the built-in uploader seems to upload files seamlessly, but these files are nowhere to be found on the server, expecially not in ‘wp-content/uploads’, where they should supposedly end up. No surprise I don’t see any thumbnail if I click on ‘browse all’. But the file names and description are there, and I receive no error messages in the process.
    – with Photopress I get one more detail: the uploader says that the temp directory of the server is not writable.

    If I edit posts in the local Wp, then take the time to export the data as sql and the files as is, and then reimport the sql in the remote Wp and upload the files through an external ftp client, then the remote Wp correctly recognizes them as I reopen the posts for editing.

    After long hours and many attempts I end up clueless!

    Things that I have already tried: trying all the directories involved in chmod 777; making the local and remote Apache configs identical; checking that the remote php is not in safe_mode; allowing uploads as big as 8 MB in php, Wp and Photopress; making the local and remote Wp configurations identical.

    Many thanks to anyone who can provide help!

Viewing 1 replies (of 1 total)
  • Thread Starter biag

    (@biag)

    I published my question as *not* a support question, so no surprise that nobody answered. ??
    I’ve been brave enough to solve the problem by myself: the php configuration on the Internet installation was missing a statement about the temp directory, which php uses for uploads. I made a virtual host in the Apache configuration and added a ‘php_admin_value’ directive, for that site, to set a valid temp dir. With an ftp client I made it writable. Then I restarted Apache, just to be sure about the directive becoming active.
    Immediately phpinfo showed the updated value for the temp directory.
    I logged in to Wp and, guess what, files uploaded with the built-in uploader does not become ghosts anymore. Photopress does not complain anymore about the temp directory being not writable.

    Hope this helps someone else solve such a problem without losing as much time as I did!

Viewing 1 replies (of 1 total)
  • The topic ‘Uploaded files become… ghosts!’ is closed to new replies.