Title: error in folders.php
Last modified: December 6, 2021

---

# error in folders.php

 *  Resolved [benmcd0nald](https://wordpress.org/support/users/benmcd0nald/)
 * (@benmcd0nald)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/)
 * Hey,
 * Firstly great plugin. Very easy to keep things organized with so thanks
 * I _believe_ there is an error in the below code in folder.php and the checks 
   in the second if statement should be the other way around. Otherwise it creates
   and exception warning:
 * > Exception has occurred.
   >  Warning: Attempt to read property “id” on null
 *     ```
        public function attachment_fields_to_edit($form_fields, $post) {
   
           $screen = null;
           if (function_exists('get_current_screen')) {
             $screen = get_current_screen();
   
             if ('attachment' === $screen->id && !is_null($screen)) {
               return $form_fields;
             }
           }
       ```
   
 * Also, do you know if the plugin should be set up to handle loading images over
   https correctly? I seem to be getting mixed content errors
 * > Mixed Content: The page at ‘<URL>’ was loaded over HTTPS, but requested an 
   > insecure element ‘<URL>’. This request was automatically upgraded to HTTPS,
   > For more information see <URL>
 * It’s possible it’s something on my end but I don’t think so…

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [benmcd0nald](https://wordpress.org/support/users/benmcd0nald/)
 * (@benmcd0nald)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15137941)
 * oh sorry, scratch the second part (https bit). That totally was me…the reason
   for the issue came to be about 2 seconds after I sent that message
 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15146697)
 * Hi [@benmcd0nald](https://wordpress.org/support/users/benmcd0nald/) ,
 * Thanks for the report and sorry for late reply!
    We have fixed that issue and
   it would be updated in upcoming update. Please watch out for the update.
 * Cheers,
    -Bruce-
 *  Plugin Author [Ninja Team](https://wordpress.org/support/users/ninjateam/)
 * (@ninjateam)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15149606)
 * Hi [@benmcd0nald](https://wordpress.org/support/users/benmcd0nald/)
 * The update has been released. You can have it now.
    Thank you.
 *  [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15152021)
 * Hello [@ninjateam](https://wordpress.org/support/users/ninjateam/)
    Where to 
   find the announced release? Notice about this error are scattered everywhere 
   where there is a request for post data (attachment).
 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15152229)
 * Hi [@gallerycreator](https://wordpress.org/support/users/gallerycreator/) ,
 * Sure, its always here:
    [https://wordpress.org/plugins/filebird/](https://wordpress.org/plugins/filebird/)
 * Thank you.
 * Kind regards,
    -Bruce-
 *  [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15152328)
 * Hi [@ninjateamwp](https://wordpress.org/support/users/ninjateamwp/)
    I was asking
   about the fixed version of the plugin that [@ninjateam](https://wordpress.org/support/users/ninjateam/)
   was talking about (above in the comments)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘error in folders.php’ is closed to new replies.

 * ![](https://ps.w.org/filebird/assets/icon-128x128.gif?rev=2299145)
 * [FileBird - WordPress Media Library Folders & File Manager](https://wordpress.org/plugins/filebird/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filebird/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filebird/)
 * [Active Topics](https://wordpress.org/support/plugin/filebird/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filebird/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filebird/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-folders-php/#post-15152328)
 * Status: resolved