Our WP development team ran into a problem with the Media File Manager plugin by Atsushi Ueda in which the code was attempting to read from an array index that did not exist. This resulted in a Notice level error from PHP, and thus broke the file manager.  We think this utility is very useful to our CMS development, so we investigated a fix.



Here is the issue we ran into:
Notice: Undefined offset: -1 in /path-to-wordpress/wp-content/plugins/media-file-manager/media-relocator.php on line 236

Line 236 contains the following:
$dir1[$i]['thumbnail_url'] = mrelocator_path2url($dir . $dir1[$min_child]['name']);


Change this to the following to resolve the issue:
if (isset($dir1[$min_child])) {
$dir1[$i]['thumbnail_url'] = mrelocator_path2url($dir . $dir1[$min_child]['name']);




WP, plugin, PHP, CMS development

For information about how Acumen can help with your Software needs, contact us today!