Title: Fatal ERROR Version 4.2.2
Last modified: June 29, 2026

---

# Fatal ERROR Version 4.2.2

 *  Resolved [meinService](https://wordpress.org/support/users/meinservice/)
 * (@meinservice)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/)
 * ERROR breaks my WordPress complete
   $notices = Notices::getInstance();
 * (u dont use $notices in the functionm why u call it?)
 * public function plugin_actions()
   {$this->plugin_path = plugin_dir_path(EMR_ROOT_FILE);//
   $this->plugin_url = plugin_dir_url(EMR_ROOT_FILE);
 *     ```wp-block-code
                   // loads the dismiss hook.
                   $notices = Notices::getInstance();
   
         // init plugin
           add_action('admin_menu', array($this,'menu'));
                   add_action('submenu_file', array($this, 'hide_sub_menu'));
   
                   add_action( 'current_screen', array($this, 'setScreen') ); // annoying workaround for notices in edit-attachment screen
           add_action('admin_enqueue_scripts', array($this,'admin_scripts'));
   
   
         // content filters
           add_filter('media_row_actions', array($this,'add_media_action'), 10, 2);
           add_action('attachment_submitbox_misc_actions', array($this,'admin_date_replaced_media_on_edit_media_screen'), 91);
   
         // notices
   
         // editors
           add_action('add_meta_boxes_attachment', array($this, 'add_meta_boxes'), 10, 2);
           add_filter('attachment_fields_to_edit', array($this, 'attachment_editor'), 10, 2);
   
         /** Just after an image is replaced, try to browser decache the images */
           if (isset($_GET['emr_replaced']) && intval($_GET['emr_replaced'] == 1)) {
               add_filter('wp_get_attachment_image_src', array($this, 'attempt_uncache_image'), 10, 4);
   
             // adds a metabox to list thumbnails. This is a cache reset hidden as feature.
             //add_action( 'add_meta_boxes', function () {  );
               add_filter('postbox_classes_attachment_emr-showthumbs-box', function ($classes) {
                   $classes[] = 'closed';
                   return $classes;
               });
           }
       }
       ```
   

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

 *  Plugin Support [Adrian](https://wordpress.org/support/users/adrianrus/)
 * (@adrianrus)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18950656)
 * Hello [@meinservice](https://wordpress.org/support/users/meinservice/) ,
 * Thank you for your message and sorry to hear about this issue 🙁
 * This is really strange! Could you please confirm if you encountered this issue
   with the previous version too or it just started happening with 4.2.2?
 * Looking forward to your reply so we can investigate this in more detail!
 * All the best,
 *  Thread Starter [meinService](https://wordpress.org/support/users/meinservice/)
 * (@meinservice)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18950660)
 * Yes, definitely after 4.2.2 since this morning.
   First Solution for me now: comment
   the row.
 *     ```wp-block-code
       //$notices = Notices::getInstance();
       ```
   
 *  Thread Starter [meinService](https://wordpress.org/support/users/meinservice/)
 * (@meinservice)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18950662)
 * Testing:
   After comment, again WordPress is running After erase comment, WordPress
   is running tooMy conclusion, the error only comes one times, first call the website,
   but with hard break
 *  Plugin Support [Adrian](https://wordpress.org/support/users/adrianrus/)
 * (@adrianrus)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18950693)
 * Thank you for letting us know about this, we will continue investigating this
   on our end!
 *  Thread Starter [meinService](https://wordpress.org/support/users/meinservice/)
 * (@meinservice)
 * [1 week ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18951015)
 * Waiting for new Version, using this $notices inside the function
    -  This reply was modified 1 week ago by [meinService](https://wordpress.org/support/users/meinservice/).
 *  Plugin Author [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * (@petredobrescu)
 * [6 days, 12 hours ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18951702)
 * Hello [@meinservice](https://wordpress.org/support/users/meinservice/),
 * Since this error only appeared for you upon activation of the new version, we
   need the full error, including the stack trace, to understand what is going on.
   Do you still have it in your logs?
 * The `$notices` is just an init for the NoticeController class, and normally, 
   it should not affect anything or generate an error.
 *  Thread Starter [meinService](https://wordpress.org/support/users/meinservice/)
 * (@meinservice)
 * [6 days, 4 hours ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18952237)
 * Sorry, in dont have logs of what happens, only the white Screen and DIE – Message.
   But after that, the error again dont appears

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-version-4-2-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [meinService](https://wordpress.org/support/users/meinservice/)
 * Last activity: [6 days, 4 hours ago](https://wordpress.org/support/topic/fatal-error-version-4-2-2/#post-18952237)
 * Status: resolved