This is a minor issue, and only affects multisite installs. When this plugin is activated network-wide (“network activate”), the cached file size data is not removed upon (network) deactivation.
This is because the mediafilesizes_clear_metadata function doesn’t loop through all the blogs, and just processes the attachments on the main one.
This is not an issue when the plugin is activated/deactivated manually for each blog.
]]>The plugin generated xxx characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Genesis framework most recent. No theme.
Any ideas? Thank you so much!
]]>I added this small function to display the sizes not only in KB
public function sizeFilter( $bytes )
{
$label = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB' );
for( $i = 0; $bytes >= 1024 && $i < ( count( $label ) -1 ); $bytes /= 1024, $i++ );
return( round( $bytes, 2 ) . " " . $label[$i] );
}
line 62:
$displayoriginalspace = sizeFilter($originalspace);
line 67:
$displaytotalspace = sizeFilter($totalspace);
Hello,
I have tried your unique plugin for some time now and thought it was working fine. I mean I can see the file sizes on the library. I canNot see it on the file’s “edit media page” (although I have it checked on the Options Screen) but I can live with it.
What really bugs me though is that I noticed that the size displayed is much larger than what is should be.
For example a jpg file on the server reads 292kb while when downloaded is ONLY 72kb and 74kb on the disk.
Another one, on my computer reads 779kb but after being uploaded to the server it shows up as 1138kb.
There must be something wrong. I can not justify a x4 (on the smaller file) increase on the server?
Are you aware of the issue? Please enlighten.
It still behaves the same after upgrading to v1.2
Thanks for your time
]]>Hi,
first of all thanks for this very handy plugin – I would have expected something like that being core of WP, but very cool somebody took care of it ??
However, one suggestion regarding performance: Maybe you can add a check around the whole code whether a user is on the admin site…so for “normal” visitors there is no need to register all your actions.
if(is_admin()) {
// your whole plugin code
}
Not sure, if that makes a big difference, but maybe for sites used heavily it does…
]]>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?
]]>I hard coded issue mentioned above for my needs.
Nice plug-in, wish will include these options in next update.
=)
Hi, I just installed your media-file-sizes plugin that gives me a different than expected behavior. I use wordpress 3.1.1 on a non-multisite in Greek.
1. I does not show the percentage, but I guess that is because it is on a non-multisite.
But also
2. It does NOT pick up the correct translation for “space used”. Instead it shows the translation of “most common” (like as in categories, or tags).
Could you please look into it?
On the design side it presses everything to the left leaving a great empty space on the right hand side. Not an issue actually.
Thank you for your time.
]]>After upgrading to Version 1.0.1, I get this error message when viewing the Media Library:
Fatal error: Call to undefined function get_space_allowed() in /public_html/wp-content/plugins/media-file-sizes/media_file_sizes.php on line 94
Version 1.0.0 worked perfectly. Please let me know if you need any additional info to troubleshoot this problem.
Thanks,
Fred
]]>are the sizes cached? will they be recalculated every time the media library is accessed? does it calculate the sizes for the current page of the media library only or for all items in the library at once?
]]>