Title: 2 PHP Errors on Latest Version
Last modified: November 10, 2025

---

# 2 PHP Errors on Latest Version

 *  Resolved [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/2-php-errors-on-latest-version/)
 * 
   Undefined array key 0 in wp-content/plugins/media-library-organizer/includes/
   global/class-media-library-organizer-common.php:453
 * as well as in
   wp-content/plugins/media-library-organizer/includes/global/class-
   media-library-organizer-media.php:202This is when you’re trying to check if someone
   is logged in as an administrator. You’re assuming the wp_get_current_user->roles
   array is non-empty. It can be empty in a MultiSite environment where a network
   administrator is viewing the dashboard of a site the aren’t technically a member
   of (but should still be able to access).Be sure to check if the roles array is
   populated before accessing roles[0]. But looking at roles[0] is pretty loose,
   anyway. At a minimum, I’d suggest using something like in_array.if (in_array(‘
   administrator’, $user_roles)) { ….

Viewing 1 replies (of 1 total)

 *  Plugin Support [Stefan Cotitosu](https://wordpress.org/support/users/stefancotitosu/)
 * (@stefancotitosu)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/2-php-errors-on-latest-version/#post-18725786)
 * Hi [@madtownlems](https://wordpress.org/support/users/madtownlems/),
 * Thank you for reporting this and for the detailed explanation. We’ve confirmed
   the issue on our side and have now logged it internally so we can get it fixed
   in an upcoming update.
 * Best regards,

Viewing 1 replies (of 1 total)

The topic ‘2 PHP Errors on Latest Version’ is closed to new replies.

 * ![](https://ps.w.org/media-library-organizer/assets/icon-256x256.png?rev=3377647)
 * [Media Library Organizer – Folders, File Manager & Media Categories](https://wordpress.org/plugins/media-library-organizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-organizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-organizer/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-organizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-organizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-organizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stefan Cotitosu](https://wordpress.org/support/users/stefancotitosu/)
 * Last activity: [6 months, 1 week ago](https://wordpress.org/support/topic/2-php-errors-on-latest-version/#post-18725786)
 * Status: resolved