• The File Upload says it has uploaded an image. It does not.
    If I upload an image myself using ftp, WP will not display the image.
    Paths:
    /home/virtual/siteXX/fst/var/www/html/pix
    /home/podz/mainwebsite_html/pix
    Both tried, no success. These paths have worked, and do work, with other programs, so I know they are correct.
    pix folder is CHMOD 766.
    It looks like both the upload and the display are wrong somewhere.
    Viewing Source shows the correct url.
    There is no .htaccess interfering with this.
    I’ve checked ALL the options more times than I’ve played SSX3 (and that’s a LOT!).
    Using 1.0.1 RC, though I have tried replacing upload.php with the platinum version, and still it won’t work.
    This fault is staring to drive me nuts now …… really !

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter Mark (podz)

    (@podz)

    My take on this is that, yes, it is there, and it would be great if it did work for me (and others) but as it does not, I’d like to find out exactly *why* it does not, and then see if it can be fixed.
    If there is a fix, then document it and pass that information out for others and maybe for development.
    I don’t pretend to know loads about php or servers and what language they use, but if by repeatedly trying different things, and slowly ruling things out, then that would – I hope – narrow the probable causes. Right now I don’t know if it’s the build (though I will try nightlies) or my server environment. WP is still fairly young when compared to some other blogging tools, so I just see this as part of the process …

    Ok,
    I fixed the upload script.
    Someone added an extra / in two places in the code so paths specified in the file were
    /homes/username/website/uploaddir//
    hence why nothing was uploading properly.
    NOTE!!!
    To get this to work you MUST have a trailing slash on upload paths. In the options menu!
    Mine as an example:
    /home/orbitj/public_html/files/
    https://www.orbitjuice.com/files/
    Here is a link to the updated upload.php file
    https://www.orbitjuice.com/hacks/upload.php
    I’ve tested it out three times and it works.

    Thread Starter Mark (podz)

    (@podz)

    This sounds great … but I get an error when I click your php link ?
    (Btw, I thought that’s what I saw when watching Superbowl last night ! ?? )

    Excellent !!!!!
    Many thanks OrbitJuice !

    Thread Starter Mark (podz)

    (@podz)

    Well it did ……

    well it did what?

    Thread Starter Mark (podz)

    (@podz)

    I uploaded an image this morning (it’s my Anon post above).
    Came back earlier after doing other stuff on the site (just CSS), and tried – didn’t work.
    Copied your txt file, uploaded it again, tried again – no joy.
    Checked the trailing slash was there – it was .
    I took the trailing slash *off*, and went to upload an image called ‘tattoo.jpg’ to dir ‘pix’ which is inside my ‘testblog’ dir.
    Successful upload, checked, and I’d got nothing in the pix dir, but I *had* got a file called ‘pixtattoo.jpg’ inside the testblog dir. (I hope this is making sense)
    So I added the slash again, but the jpg doesn’t get uploaded when I try again. (I tried with different images too)
    I tried moving the pix directory (chmod still 766) out to mainhtml, but again it doesn’t work.
    I’m leaving it until tomorrow now – trying to understand certain parts of xhtml has driven me mad today – and I’ll do a completely new install and try that (just in case I’ve broken something somewhere – not that I think I have though).

    I’m not a coder or a tweaker… but, I sifted through it and got it to work for me.
    What I can suggest is the follow…
    Grab a hold of a 3rd party PHP Uploading script (I suggest MaianUploader)
    In the wp-admin folder, edit admin-header.php, and change this line:
    function launchupload() {
    window.open (“upload.php”, “wpupload”, “width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0”);
    }
    To point to the 3rd party tool.

    Yeah, Maian uploader is pretty hefty.
    but, it’s extremely stable and reliable.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Images (again)’ is closed to new replies.