WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with uploading media (28 posts)

  1. xbloggerx
    Member
    Posted 4 years ago #

    Hi, i currently use the lastest version of MU wordpress. My website is online but my visitor cannot upload her content. Can you help me?
    my server:
    CORE2 Duo E7400 2.8GHz

    RAM
    4096 MB

    HDD
    2x 2 TB SATA

    BANDWIDTH INCLUDED
    750.00 Mbit/s per Mon.

    CPANEL!!!!!!!! this is the problem!!
    When i try to uploading something. i see a X on my image but my image is in my http://FTP.... So i need your help PLEASEEEEEEEEEEEE

    thank you very much for your help...
    when i fix this, my website is ready 2 use...

    Best regards,

    Martin
    XbloggerX.com

  2. xbloggerx
    Member
    Posted 4 years ago #

    ho i forget to say my wp-content/blogs.dir/ is 775
    i cannot set 777 because i have a 500 error

  3. Well you gave lots of detail, but not the ones we need. :)

    What error does the user receive?
    Can you give us a link to her blog?

    Can you clarify if you're using 3.0 or if you upgraded from wordpressmu?

  4. xbloggerx
    Member
    Posted 4 years ago #

    My version is a fresh new installation from
    http://mu.wordpress.org/download/
    2.9.2

    and this is what i see when i upload images or any file.

    (NSFW) http://www.silverstar-industry.com/error.jpg

    thank you very much

  5. You can upgrade WPMU 2.9.2 to WordPress 3.0 with Multisite (IIRC you can just upgrade via the built in upgrade feature).

    Can you right click on the broken image icon and grab the path of the image? Verify if it's there.

    Also, verify if the file is created in blogs.dir.

  6. xbloggerx
    Member
    Posted 4 years ago #

    here is a exemple of my file uploaded folder
    (right click on image, proprity)

    (NSFW) http://xbloggerx.com/files/2010/07/xporn-150x150.jpg
    (used the main account)

  7. xbloggerx
    Member
    Posted 4 years ago #

    i have the 3.0 sorry... ;)

  8. NSFW links, great. :)

    As noted in another thread, your .htaccess file needs to be correct.

  9. xbloggerx
    Member
    Posted 4 years ago #

    i dont find the other thread... too many tread on this forum lol

  10. xbloggerx
    Member
    Posted 4 years ago #

    my .htaccess of my root folder (xbloggerx.com)

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

  11. Thank you for the NSFW warning, Andrea. I work for a corporation who frowns on that stuff :)

    Are you using Subdomains or Subfolders?

    You get a slightly different .htaccess depending on which one

  12. tdjcbe
    Member
    Posted 4 years ago #

    Could someone put the NSFW warning by the links please? Further down the page doesn't do a whole lot of good. Librarians like their rulers.

    thanks

  13. was just getting to it. :)

  14. xbloggerx
    Member
    Posted 4 years ago #

    Hi, i use subdomain
    sorry for the content posted

  15. if you're on 3.0, you skipped the step to correct your .htaccess.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
  16. Person
    Member
    Posted 4 years ago #

    Ipstenu, if your host suddenly disables mod_rewrite, your WordPress install is going to fail. The IfModule part should be kept separate from the rest. Either way, xbloggerx's htaccess is fine, with the exception of not having done the following:

    1) delete wp-content/blogs.php
    2) Change this line in your .htaccess
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    To this:
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    The above changes apply to WordPress 3.0 only.

  17. Person ... Yeah, and if your host disables mod-rewrite, none of that code will work anyway, and in fact, having it will cause wackiness in your site.

  18. The above lines only apply if you are upgrading from WPMU 2.9.x to WP 3.0. ;)

    Just extra clarification.

    Good catch person, I skimmed it earlier.

  19. edava
    Member
    Posted 4 years ago #

    hi andrea can you help me with adiffrent task i m trying to get the titles of the latest blogs and display them in the home page of my site which is in php ..the home page is not in word pressmu
    I m using the code in http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website#The_Loop

    but when i tried this the index page automatically redirects to the blog home page ...
    my site is http://www.aaa.com
    and blog site is blog.aaa.com

    so when i use the code http://www.aaa.com redirects to blog.aaa.com
    is it something in the header files , i was not able to get it

  20. Schaeffer
    Member
    Posted 4 years ago #

    Hello. I was about to post a similar problem, so I'll add it to this thread. Unfortunately, I wasn't able to connect the dots from the previous posts.

    I'm running WP 3.0 upgraded from the most recent release of WP MU (subdomains). I have Buddypress installed, and I've been prepping a blog prototype here.

    Just recently, I've encountered problems uploading media. I have been active in the command-line editing to change permissions and ownership of uploaded plugin zip files in trouble-shooting mode and I'm sure I did a chown -R to my user:group for /wp-content/. I ran across an old blog post on the need to have the /wp-content/blogs.dir directory owned by 'nobody' instead of the admin user, which I have changed as a fix. I've also changed permissions from 755 to 775. I still seem to have a permissions/ownership issue: The uploaded file could not be moved to /var/www/manifold/wp-content/blogs.dir/2/files/2010/07

    I'm concerned I have an htaccess issue. My uploaded filed script is:
    # uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    The whole permissions/ownership thing is the bain of my WordPress existence. Thanks for any assistance forthcoming!

  21. edava - Please make a new topic for your issue. Also, if it's not MultiSite or WPMU, I would suggest posting in http://wordpress.org/support/forum/3

    Schaeffer -This too should probably be a separate topic :) You shouldn't need to have the wp-content/blogs.dir folder owned by nobody, your normal account should be just fine for this. Try putting the permissions to 777 for all folders in blogs.dir.

    (Off topic: Person - I think I came off as bitchy. Please accept my apology. I was being a brat with no excuse.)

  22. edava
    Member
    Posted 4 years ago #

    u r right

  23. Schaeffer
    Member
    Posted 4 years ago #

    I've been paranoid about permissions = 777, but I'll give it a try. I'll re-post as a separate thread if necessary. thanks for the response!

  24. Person
    Member
    Posted 4 years ago #

    @Schaeffer, was the problem occuring previously when you were using WPMU (i.e. before you upgraded)?

    (@ipstenu, nah not at all, your point was very well valid. :) I'm surprised it didn't occur to me, must be the lack of sleep ><)

  25. Schaeffer
    Member
    Posted 4 years ago #

    @person: this was not an issue prior to upgrade to 3.0, and the site was fully functional up until I was trouble-shooting some plugin installs with ownership/permission tweeks (as far as I know).

    The upload seems to be working again, but I went ahead and re-posted as a separate thread. It's hard to imagine leaving permissions set to 777.

    Thanks for the responses.

  26. xbloggerx
    Member
    Posted 4 years ago #

    This is the fix problem

    modify the .htaccess...
    replace #upload by this

    # uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    thank you very much schaeffer :)

  27. @xblogger yes that exact message is displayed for you when you upgrade from MU to WP 3.0 and is also outlined in my post on upgrading:
    http://wpmututorials.com/how-to/upgrading-from-wpmu-to-wp-3-0/

  28. Schaeffer
    Member
    Posted 4 years ago #

    @xbloggerx & Andrew_r: That's how my htaccess reads from the upgrade, but I went ahead and replaced in case I am not seeing straight.

    In multi-site mode, what should the permissions be set for blogs.dir content? I changed my permissions back to 775 and so far, so good.

    Is this article in the codex the best reference for assigning permissions for the WP directory/file structure?

    thanks for the all the contributions -- it's a good forum with great moderation.

Topic Closed

This topic has been closed to new replies.

About this Topic