WordPress.org

Forums

Media File Sizes
0 KB on Multisite (10 posts)

  1. joshmac
    Member
    Posted 3 years ago #

    I am using this plugin on a multisite install, but the size is at 0 KB for every file. Is there some other setting I am missing?

    http://wordpress.org/extend/plugins/media-file-sizes/

  2. Jason Lemahieu (MadtownLems)
    Member
    Plugin Author

    Posted 3 years ago #

    There are no settings, no - but I'll gladly help figure out what's going on.
    Are you using any non-standard configurations? Where are you media uploads being stored?

  3. joshmac
    Member
    Posted 3 years ago #

    @MadtownLems, no I am not using any non-standard configurations and uploads happen either through the media library or through the upload function of the post or page. So they get stored at /wp-content/blogs.dir/$blog_id/files/

  4. Jason Lemahieu (MadtownLems)
    Member
    Plugin Author

    Posted 3 years ago #

    @joshmac - Can you try updating to 1.2 and let me know if this resolves your issue?

  5. joshmac
    Member
    Posted 3 years ago #

    @MadtownLems, thanks for the update, but for me, it is still showing 0kb.

  6. Jason Lemahieu (MadtownLems)
    Member
    Plugin Author

    Posted 3 years ago #

    1) You do have files that are of at least some substantial size, right? Not only files under 1 KB?

    2) Do your uploads get put into year/month folders, like:
    blogs.dir/$blog_id/files/2011/7/foo.jpg

    Anybody else experiencing this issue? Hmmm... I'll keep digging!

  7. joshmac
    Member
    Posted 3 years ago #

    Actually, thanks for mentioning that. I only checked the main site instead of the other subblogs.

    1. yes
    2. yes

    However, when I am on a subblog, I get the following error message, which is similar for each item in my media library.

    Warning: filesize(): stat failed for /home/parkerj/public_html/classblogs.us/public/wp-content/blogs.dir/3/files//home/parkerj/public_html/classblogs.us/public/wp-content/blogs.dir/3/files/2011/07/shorturl_twitter.png in /home/parkerj/public_html/classblogs.us/public/wp-content/plugins/media-file-sizes/media_file_sizes.php on line 97

    It looks like it could be a path/directory issue.

  8. joshmac
    Member
    Posted 3 years ago #

    Ok, now it is working for me. I changed this:
    $orig_full_path = $upload_base_dir . "/" . $original_sub_path;

    to this:
    $orig_full_path = $original_sub_path;

  9. Jason Lemahieu (MadtownLems)
    Member
    Plugin Author

    Posted 3 years ago #

    Been looking some more into this, and can't replicate that error on single site, multisite, any kind of media file... etc.

    Hopefully some more people experience your problem so we can figure out what's causing it!

    In the meantime, glad you got something working for ya. Cheers

  10. joshmac
    Member
    Posted 3 years ago #

    @MadtownLems, my Nginx setup may be a little different and that being why the path is wrong. Thanks again for the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media File Sizes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic