Title: Plugin causing a fatal error
Last modified: April 1, 2023

---

# Plugin causing a fatal error

 *  Resolved [Micah Wood](https://wordpress.org/support/users/wpscholar/)
 * (@wpscholar)
 * [3 years ago](https://wordpress.org/support/topic/plugin-causing-a-fatal-error/)
 * I was surprised when activating this plugin caused all front-end pages on my 
   site to return a fatal error. I did some investigating on my local environment
   and was able to find the problem.
 * This code is currently used to load the Composer autoload file:
 *     ```wp-block-code
       require 'vendor/autoload.php';
       ```
   
 * Simply adding the `__DIR__` in front ensures that the the file is properly loaded.
 *     ```wp-block-code
       require __DIR__ . '/vendor/autoload.php';
       ```
   
 * If you can get this updated, I’d love to use this plugin on some sites.
 * Thanks!
    -  This topic was modified 3 years ago by [Micah Wood](https://wordpress.org/support/users/wpscholar/).

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

 *  Plugin Author [Greg](https://wordpress.org/support/users/freshbrewedweb/)
 * (@freshbrewedweb)
 * [3 years ago](https://wordpress.org/support/topic/plugin-causing-a-fatal-error/#post-16625813)
 * This is fixed in 0.4.4, thanks for bringing it to my attention!
 *  Thread Starter [Micah Wood](https://wordpress.org/support/users/wpscholar/)
 * (@wpscholar)
 * [3 years ago](https://wordpress.org/support/topic/plugin-causing-a-fatal-error/#post-16626251)
 * Awesome. Thanks!

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

The topic ‘Plugin causing a fatal error’ is closed to new replies.

 * ![](https://ps.w.org/tailpress/assets/icon-256x256.png?rev=2836881)
 * [TailPress – Tailwind for WordPress](https://wordpress.org/plugins/tailpress/)
 * [Support Threads](https://wordpress.org/support/plugin/tailpress/)
 * [Active Topics](https://wordpress.org/support/plugin/tailpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tailpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tailpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Micah Wood](https://wordpress.org/support/users/wpscholar/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/plugin-causing-a-fatal-error/#post-16626251)
 * Status: resolved