Title: Fatal error while activating plugin
Last modified: December 8, 2021

---

# Fatal error while activating plugin

 *  Resolved [Aldo](https://wordpress.org/support/users/ab_lu/)
 * (@ab_lu)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/)
 * Hello
 * We are not able to active the plugin as it returns the following error:
 *     ```
       PHP Fatal error:  Uncaught Error: Call to undefined method Dotenv\Dotenv::createImmutable() in /home/httpd/vhosts/web/app/plugins/aspose-doc-exporter/plugin.php:22
       Stack trace:
       #0 /home/httpd/vhosts/web/wp/wp-admin/includes/plugin.php(2286): include_once()
       #1 /home/httpd/vhosts/web/wp/wp-admin/plugins.php(191): plugin_sandbox_scrape('aspose-doc-expo...')
       #2 {main}
         thrown in /home/httpd/vhosts/web/app/plugins/aspose-doc-exporter/plugin.php on line 22
       ```
   
 * Any idea?
 * Thanks
    Aldo

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

 *  Plugin Support [tilalahmad](https://wordpress.org/support/users/tilalahmad/)
 * (@tilalahmad)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/#post-15145656)
 * [@ab_lu](https://wordpress.org/support/users/ab_lu/)
 * Please ensure that you are using the latest version of the Plugin. If you still
   face the issue then please share your PHP and WP versions for investigation.
 *  Thread Starter [Aldo](https://wordpress.org/support/users/ab_lu/)
 * (@ab_lu)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/#post-15146174)
 * [@tilalahmad](https://wordpress.org/support/users/tilalahmad/)
 * We use the latest version (6.2.0).
    WP is 5.8.1 and PHP 7.3.33
 *  Plugin Support [tilalahmad](https://wordpress.org/support/users/tilalahmad/)
 * (@tilalahmad)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/#post-15148135)
 * [@ab_lu](https://wordpress.org/support/users/ab_lu/)
 * Thanks for your feedback. We have tested the latest plugin version(6.2.0) on 
   WordPress 5.8.1 with PHP 7.3 without any issue. Probably the plugin is conflicting
   with your web server configuration or some other plugin on your WordPress site.
   You may try the following two options:
 * 1. Open `aspose-doc-exporter/plugin.php` file in a code editor and delete `\Dotenv\
   Dotenv::createImmutable(__DIR__)->load();` line. Then try to activate the plugin.
 * 2. If the above change does not resolve the issue then please try to install 
   our plugin on some other web server (maybe your own computer) and activate it.
   If our plugin works fine, start installing other plugins that you installed on
   your original website one by one to see which plugin is causing the conflict 
   and share the information. We will try to investigate and fix the issue.`
 *  Thread Starter [Aldo](https://wordpress.org/support/users/ab_lu/)
 * (@ab_lu)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/#post-15148190)
 * Thanks! Perfect. Option 1. helped.
    We use bedrock ([https://roots.io/bedrock/](https://roots.io/bedrock/))
   who also uses Dotenv. Probably they conflict with each other.

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

The topic ‘Fatal error while activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/aspose-doc-exporter_6aadd2.svg)
 * [Aspose.Words - Import and Export word documents](https://wordpress.org/plugins/aspose-doc-exporter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aspose-doc-exporter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aspose-doc-exporter/)
 * [Active Topics](https://wordpress.org/support/plugin/aspose-doc-exporter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aspose-doc-exporter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aspose-doc-exporter/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Aldo](https://wordpress.org/support/users/ab_lu/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-while-activating-plugin-9/#post-15148190)
 * Status: resolved