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.
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.
I have the same problem as sauerland. http://ww.wp.xz.cn/support/topic.php?id=53381&replies=5 I’m waiting for reply from my host administrator now.
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.
Live U4, thanksie so very much!
Works like a charm!!!!!!!!!!!!!!!
WOW!!! is there a hack for the upload folder?
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.
Cool … thanks so much, Live_U4.
Much appreciated. 🙂
Steve
Live_U4, you fucking ROCK!!!
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…
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…
lets give it a looksie
**EDIT**
That doesn’t do any more than the above fix… its still creating directories that way…
thanks though
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… 🙂
@spyn_et: it would be even more easier if that ‘Solution’ site ^^ was in English …
😉