Title: Fatal Error
Last modified: January 22, 2024

---

# Fatal Error

 *  [xltrax](https://wordpress.org/support/users/xltrax/)
 * (@xltrax)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/)
 * The plugin was working for some time and then now it is creating a fatal error
   and not activating. Running latest php

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

 *  Plugin Author [Wp Enhanced](https://wordpress.org/support/users/wpenhanced/)
 * (@wpenhanced)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17363841)
 * Sorry to hear this
 * What is the fatal error message? Can you send it here and we can then work out
   what is causing this and fix it for you?
 * Thanks
 *  Thread Starter [xltrax](https://wordpress.org/support/users/xltrax/)
 * (@xltrax)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17363851)
 * it says this on the plugin page when activating : Plugin could not be activated
   because it triggered a **fatal error**.
 *  somewhere I can get more details?
    -  This reply was modified 2 years, 4 months ago by [xltrax](https://wordpress.org/support/users/xltrax/).
 *  Thread Starter [xltrax](https://wordpress.org/support/users/xltrax/)
 * (@xltrax)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17370754)
 * Just wondering if there is any idea here? thanks
 *  Plugin Author [Wp Enhanced](https://wordpress.org/support/users/wpenhanced/)
 * (@wpenhanced)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17373674)
 * You can find it in your error.log file on the server or ask your host for it.
 * Let me know how you get on
 *  Thread Starter [xltrax](https://wordpress.org/support/users/xltrax/)
 * (@xltrax)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17375544)
 * **Fatal error**: Uncaught Error: Call to undefined function file_put_contents()
   in /home/djdropsa/public_html/wp-content/plugins/download-now-for-woocommerce/
   Includes/Legacy/somdn-file-functions.php:49 Stack trace: #0 /home/djdropsa/public_html/
   wp-content/plugins/download-now-for-woocommerce/Includes/Legacy/somdn-file-functions.
   php(61): somdn_create_empty_index_files() #1 /home/djdropsa/public_html/wp-includes/
   class-wp-hook.php(324): somdn_on_activate_file_cron(”) #2 /home/djdropsa/public_html/
   wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #3 /home/
   djdropsa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #
   4 /home/djdropsa/public_html/wp-content/plugins/download-now-for-woocommerce/
   Includes/Plugin.php(86): do_action(‘somdn_on_activa…’) #5 /home/djdropsa/public_html/
   wp-includes/class-wp-hook.php(324): SOM\FreeDownloads\Plugin->somdnActivated(
   false) #6 /home/djdropsa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters(”, Array) #7 /home/djdropsa/public_html/wp-includes/plugin.php(
   517): WP_Hook->do_action(Array) #8 /home/djdropsa/public_html/wp-admin/includes/
   plugin.php(693): do_action(‘activate_downlo…’, false) #9 /home/djdropsa/public_html/
   wp-admin/plugins.php(58): activate_plugin(‘download-now-fo…’, ‘[https://djdrops…&#8217](https://djdrops…&#8217);,
   false) #10 {main} thrown in **/home/djdropsa/public_html/wp-content/plugins/download-
   now-for-woocommerce/Includes/Legacy/somdn-file-functions.php** on line **49**
 *  Plugin Author [Wp Enhanced](https://wordpress.org/support/users/wpenhanced/)
 * (@wpenhanced)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17383536)
 * What PHP version are you using on your server?
 * It should be at least 7.4.0
 * It could also be that file_put_contents() is restricted by your host, can happen
   when shared hosting. Contact your hosting provider for more information.
 * Hope this helps
 *  Thread Starter [xltrax](https://wordpress.org/support/users/xltrax/)
 * (@xltrax)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17454187)
 * I am using 8.2 PHP. How is this done in cpanel root?
 *  Plugin Author [Wp Enhanced](https://wordpress.org/support/users/wpenhanced/)
 * (@wpenhanced)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17454368)
 * Contact your host and ask them if there are restrictions and then check any security
   plugins or anything that is related to this.
 * Not sure about your set up

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

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

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

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 8 replies
 * 2 participants
 * Last reply from: [Wp Enhanced](https://wordpress.org/support/users/wpenhanced/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4606/#post-17454368)
 * Status: not resolved