Title: Fatal Error
Last modified: March 5, 2022

---

# Fatal Error

 *  Resolved [EliteGent](https://wordpress.org/support/users/gentlemako/)
 * (@gentlemako)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4097/)
 * Hello there
 * We are receiving a fatal error on our woo commerce logs everyday from your plugin,
   the error is as follows.
 *     ```
       2022-03-04T23:29:59+00:00 CRITICAL Uncaught TypeError: unlink(): Argument #1 ($filename) must be of type string, WP_Error given in /var/www/gg/wp-content/plugins/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-download.php:138
       Stack trace:
       #0 /var/www/gg/wp-content/plugins/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-download.php(138): unlink(Object(WP_Error))
       #1 /var/www/gg/wp-content/plugins/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-download.php(115): CR_Reviews_Media_Download->download_media_file(Object(stdClass), Array, Array)
       #2 /var/www/gg/wp-includes/class-wp-hook.php(307): CR_Reviews_Media_Download->download_media_frontend('')
       #3 /var/www/gg/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #4 /var/www/gg/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #5 /var/www/gg/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       #6 {main}
         thrown in /var/www/gg/wp-content/plugins/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-download.php on line 138
       ```
   
 * These errors started happening when you switched to media download. lately, we
   are seeing that the plugin is trying to allocate way more memory for this and
   breaking our backend.
 * 2022-03-04T23:54:25+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted(
   tried to allocate 8388648 bytes) in /var/www/gg/wp-includes/wp-db.php on line
   2128
 * Please Advise.

Viewing 1 replies (of 1 total)

 *  Plugin Support [cusrev](https://wordpress.org/support/users/cusrev/)
 * (@cusrev)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4097/#post-15428129)
 * Thanks for using our plugin!
 * Based on the error log that you shared, it looks like you aren’t using the latest
   version of the plugin. Please keep the plugin updated to receive all bug fixes
   and the newest features.

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/customer-reviews-woocommerce/assets/icon-256x256.png?rev
   =2532349)
 * [Customer Reviews for WooCommerce](https://wordpress.org/plugins/customer-reviews-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/customer-reviews-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/customer-reviews-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/customer-reviews-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/customer-reviews-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/customer-reviews-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [cusrev](https://wordpress.org/support/users/cusrev/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-4097/#post-15428129)
 * Status: resolved