Title: Fatal Error init after plugin active
Last modified: August 31, 2017

---

# Fatal Error init after plugin active

 *  Resolved [Sueneé](https://wordpress.org/support/users/suenee/)
 * (@suenee)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-init-after-plugin-active/)
 * Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)
   in /var/www/suenee/www/wp-includes/wp-db.php on line 1841
 * It is caused by
 * S:\nfs\www\suenee\www\wp-content\plugins\image-source-control-isc\isc.class.php
 *  public function init_image_posts_metafield()
    ….
 * This part of code is really wrong idea 🙁
 *     ```
             $args  = array(
               'post_type'   => 'any',
               'numberposts' => -1,
               'post_status' => NULL,
               'post_parent' => NULL,
             );
             $posts = get_posts($args);
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-init-after-plugin-active/#post-9461716)
 * Hi Sueneé,
 * I am definitely not happy with the initialization myself but lack the time to
   work on it. What would you suggest as a solution?
 * Thanks
    Thomas

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error init after plugin active’ is closed to new replies.

 * ![](https://ps.w.org/image-source-control-isc/assets/icon.svg?rev=2694143)
 * [Image Source Control Lite – Show Image Credits and Captions](https://wordpress.org/plugins/image-source-control-isc/)
 * [Support Threads](https://wordpress.org/support/plugin/image-source-control-isc/)
 * [Active Topics](https://wordpress.org/support/plugin/image-source-control-isc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-source-control-isc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-source-control-isc/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-init-after-plugin-active/#post-9461716)
 * Status: resolved