Forums

New upload feature - problem (79 posts)

  1. Andreas
    Member
    Posted 6 years ago #

    Oh, you lucky people!

    I'm not even able to use that new upload thing. All it tells me is
    »Unable to create directory /srv/www/htdocs/web335/html/sauerlandthemen/wp-content/uploads/2005. Is /srv/www/htdocs/web335/html/sauerlandthemen/wp-content/uploads writable?«

    Needless to say, that /wp-content/uploads/ exist and IS writable.

    I'm so tired.

  2. petit
    Member
    Posted 6 years ago #

    Just a thought.
    You say the wp-content directory IS writable. Does this mean it's writable by all ( or at least the web server ) ?
    To write to the wp-content directory I think it also should be "executable" by the user attempting a write operation, i.e the web server.

  3. Andreas
    Member
    Posted 6 years ago #

    CHMOD 777 is set. If that isn't enough...

    But that is just one of many problems. The system keeps telling me that there is no .htaccess.

    And there is nowhere where I can set the upload options. Opions > Misceleanous...? Nothing

    1.5.2 was just wonderfull.

  4. Piotrek
    Member
    Posted 6 years ago #

    I have the same problem as sauerland. http://wordpress.org/support/topic.php?id=53381&replies=5 I'm waiting for reply from my host administrator now.

  5. Live_U4
    Member
    Posted 6 years ago #

    Alright! Let's Hack the Core:

    1. Open the file /wp-admin/inline-uploading.php
    2. Find the line 242
    3. Read Carefully:

    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width />

    And just delete:
    $height_width

    ------

    That's it! It's a quick fix but it will be working nice. Also you can change the "alt" but don't touch the "id" part. Maybe you will want to add a default "class" for your images there.

  6. CarolineG
    Member
    Posted 6 years ago #

    Live U4, thanksie so very much!
    Works like a charm!!!!!!!!!!!!!!!

  7. Kahil
    Member
    Posted 6 years ago #

    WOW!!! is there a hack for the upload folder?

  8. Live_U4
    Member
    Posted 6 years ago #

    Here is another hack for the Core. This is for choosing the path of the uploaded files:

    1. Open /wp-includes/functions-post.php
    2. Find the line #843

    $dir = 'wp-content/uploads';

    Just replace with the path of your choise

    ---------------
    For those who doesn't want that trick of making subfolders with year and month, just follow these steps on the same file:

    1. Scroll to the line #862 and #863

    $pathy = "$path/$y";
    $pathym = "$path/$y/$m";

    Replace with:

    $pathy = "$path";
    $pathym = "$path";

    2. Scroll to line #879

    $uploads = array('path' => $pathym, 'url' => get_option('siteurl') . "/$dir/$y/$m", 'error' => false);

    Replace that line with:

    $uploads = array('path' => $pathym, 'url' => get_option('siteurl') . "/$dir", 'error' => false);

    ----------------

    That's it!! =) Another quickfix while we wait for programmers to integrate the possibility to do it through the dashboard.

  9. totalidea
    Member
    Posted 6 years ago #

    Cool ... thanks so much, Live_U4.

    Much appreciated. :)

    Steve

  10. Kahil
    Member
    Posted 6 years ago #

    Live_U4, you fucking ROCK!!!

  11. Kahil
    Member
    Posted 6 years ago #

    another quick question...

    is there a way to add or make a new tab for just the upload feature? that way we can upload pics with out going into the write page...

    sorry...i just think it would be an added convenience...
    so would the part where it gives you the img tag for images like the old version did...

  12. Kahil
    Member
    Posted 6 years ago #

    i just made those changes...

    and it doesn't show you the image so you can click it after you upload it... all you get is the name...

    **EDIT**

    OK...i got the image to show... but how do I get it to not do the thumbnail image no more? also, I still don't get any of the options others seem to be talking about like the clicking on the image to get the code or options for original image and all that...

  13. Spyn_ET
    Member
    Posted 6 years ago #

    It's more easy.

    Solution

  14. Kahil
    Member
    Posted 6 years ago #

    lets give it a looksie

    **EDIT**

    That doesn't do any more than the above fix... its still creating directories that way...

    thanks though

  15. deviant
    Member
    Posted 6 years ago #

    Interstingly enough, I upgraded to 2.0... just copied all the files over the top of te old one... the wp-admin/upload.php file is still there and still functions... not sure how much us that is to you?

    Also, I notices that WP2 screws WebDAV (thats how I used to get bulk content into my wordpress tree... this rewrite rule..


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php

    disable it and things work again. (microwiki is still a little dodgy with layout, but I reckon that is another problem... oh. I am not sure what its there for, so I am not sure what I broke by disabling it... :)

  16. totalidea
    Member
    Posted 6 years ago #

    @Spyn_ET: it would be even more easier if that 'Solution' site ^^ was in English ...

    ;)

  17. Live_U4
    Member
    Posted 6 years ago #

    Kahil:

    It's probable that uploaded files before you made the changes will not work and it's advisable that you delete the files, you can do it by clicking on the square where the images they were supposed to be.

    Try uploading something new.

    Sorry if get misundertood, but english is not my natural language...

  18. Spyn_ET
    Member
    Posted 6 years ago #

    My English it's so bad.

    Only insert this in wp-config.php

    define('UPLOADS',"dir_name");

    dir_name is the directory route.

  19. Kahil
    Member
    Posted 6 years ago #

    yeah... i did upload new pictures... and yeah, the old pics in that directory don't show up...but...when i click on the image, nothing happens... i get nothing... even with the helpful fixes from you (thank you), the feature is still obsolete cause i'm still having to code it all by hand... that and i still don't like the idea that it creates a thumbnail image... if i upload and have lots of pics, its just taking up more space...

    thank you

  20. Live_U4
    Member
    Posted 6 years ago #

    Strange... maybe your javascript it's disabled.

  21. Kahil
    Member
    Posted 6 years ago #

    nope...all enabled...

    **EDIT**

    I even re-downloaded the files from here and replaced them...and no luck...right now, all its doing is uploading the pic and creating a thumbnail... i can see the images i've uploaded...but thats it...

  22. Kahil
    Member
    Posted 6 years ago #

    I've tried doing searches and setting changes with my browser...

    I also just tried it in IE (i'm using Firefox 1.07) and it works in IE...

    **confused**

  23. Live_U4
    Member
    Posted 6 years ago #

    Tested on Firefox 1.5, Opera 8.5... all it's working fine.

  24. Tijmen
    Member
    Posted 6 years ago #

    Wow deviant. Why haven't I thought of that...

    Just add this below the Import line in menu.php (and upload upload.php)

    $menu[50] = array(__('Upload'), 'read', 'upload.php');

  25. Live_U4
    Member
    Posted 6 years ago #

    Nice Tijmen!!! Much better than hacking the other files!! =)
    Kahil, you should try this!!!

  26. Kahil
    Member
    Posted 6 years ago #

    i got it working now...

    hmmm...

    i don't like the lil popup that covers the image...
    it would be nicer if when you clicked the image there were simple radial buttons or check boxes to select the featurs you want...

  27. Kahil
    Member
    Posted 6 years ago #

    i would if i could still download the old version...

  28. Live_U4
    Member
    Posted 6 years ago #

    E-mail??

  29. Kahil
    Member
    Posted 6 years ago #

    ok...

    i managed to find an old copy...

    and i did all that...but...i get a message saying "The admin disabled this function"

  30. Kahil
    Member
    Posted 6 years ago #

    honestly...

    this whole thing isn't worth the effort...

    i'll prolly just stick to doing it by ftp and coding by hand until its been fixed, replaced or something better comes along...

    in theory, the idea of it is good, it just doesn't seem well tested or planned out. it would be great if it the old and new were combined...

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic