Forums

Image files upload but do not appear (3 posts)

  1. repeat
    Member
    Posted 1 year ago #

    When using image uploader I am able to select a jpg from my desktop and upload it but the thumbnail does not appear in the uploader preview pane and the image appears as a white box on my page like a broken link. I tried this using both the Browser uploader and the Flash uploader with the same results.

    Also, if I go to my Themes > Featured Images (I'm using Flexx) the built in default graphic that came installed with my theme does not appear... just a long file name. I also created a new header image to the exact size specs listed and uploaded that, but that doesn't show up either. There should be thumbnails of both images, but instead there is a long string file name.

    I had read that sometimes the value for the uploads location in the wp settings can be corrupted and shows a long value. I did notice this in my Settings > Media and deleted it so it would go to the default wp-content/uploads instead but it still doesn't work.

    I also did ftp file uploads of photos to the image folder in my theme folder. The files would appear in cPanel but still not as images on my site.

    I also deactivated all the plugins and even switched to the default theme but I still can't get any images to appear anywhere. I poked around in permissions but didn't notice anything out of place, but I'm no expert at that so maybe I missed something. Permissions for the Upload folder were already set to 777, btw.

    I am at my wits end as to what to try next. I have a whole store site to rebuild with over 1000 products and it won't do me any good if I can't include the images. :(

    When I had my web host set this domain up for wp, version 3.0.1 was out. Then like the next day when I hadn't even gotten started yet the 3.0.2 release was out. I tried to do the auto upgrade but it kept failing. Finally my host got the upgrade to take. Since then I have attempted the auto upgrade to the most current version but that failed too so I figure I should just leave well enough alone.

    Since this is a new site and the upgrade to 3.0.2 took place before I tried working with any images I'm not sure if this is just a problem native to that version or if it's my web host. They claim everything looks normal on their end and won't offer any more help.

    I have another site (hosted elsewhere) that I started a year ago. That runs on 3.0.1 and everything there works just fine... knock on wood! Since all this mess with the new site I haven't dared to upgrade.

    Any suggestions you can offer at this point would be greatly appreciated. Thanks!!

  2. JamesKnochel
    Member
    Posted 1 year ago #

    Hi repeat,

    From your description, it sounds like I'm having the same problem.

    I can upload a file. It shows up in the /srv/www/wp-uploads/teslabox.com/2010/ directory, but my access.log has a 404 when I try to request the file.

    1.22.333.4 teslabox.com [02/Jan/2011:15:48:41 -0800] "GET /wp-uploads/2010/06/MYT-engine-640-150x150.jpg HTTP/1.1" ****404**** 2455 "http://teslabox.com/wp-admin/upload.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)"
    
    # ls /srv/www/wp-uploads/teslabox.com/2010/06/
    MYT-engine-640-150x150.jpg

    I'm running two sites (w/ separate mysql tables) off the same wordpress directory. $upload_path is set to the correct directory in both config-?????.com.php files. Files do appear there when they're uploaded, and a 2011 directory just appeared in both my sites' /srv/www/wp-uploads/???????.com/ directories

    Any insight into how WordPress maps the requested url to the filesystem would be appreciated!

    [Sun Jan 02 15:35:35 2011] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch configured -- resuming normal operations

    sincerely,
    James Knochel
    teslabox.com

  3. JamesKnochel
    Member
    Posted 1 year ago #

    Hi Repeat,

    I went to install the latest version of WordPress on my Debian VPS, and I think I found my problem. Look at this bug I found for the debian wordpress package:

    Uploads do not work Bug #250163

    Binary package hint: wordpress

    I'm using wordpress version 2.3.3-1ubuntu1 on Hardy Heron.

    Uploads do not work with the package, since the web server can't write to the uploads directory.

    After a bit of research, it does not appear that this situation is fixable without either patching WordPress or employing an entirely different deployment scheme. The package puts the WordPress source files in /usr/share/wordpress, and sets ABSPATH to this directory in /etc/wordpress/wp-config.php. WordPress expects the uploads path to be within the tree in which it is installed; if you look at the WordPress source, it appends the uploads path to ABSPATH to get the full path. This would seem to me to require all installations of WordPress to have their own copies of the source tree.

    I can find no workaround other than installing WordPress manually in each necessary document root.

    -https://bugs.launchpad.net/ubuntu/+source/wordpress/+bug/250163

    Cpanel is a unix web hosting control panel. Do you know what operating system your server runs?

    You said:
    I tried to do the auto upgrade but it kept failing.

    This was also the case for me, because I was using the debian package. Talk to your host, and see if they installed the Debian package on your machine.

    -James Knochel

Topic Closed

This topic has been closed to new replies.

About this Topic