Title: functions.php loaded twice
Last modified: August 14, 2020

---

# functions.php loaded twice

 *  [marcusjwilson](https://wordpress.org/support/users/marcusjwilson/)
 * (@marcusjwilson)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/functions-php-loaded-twice/)
 * Hi – Great plugin! But we’ve having issues in the latest few releases.
 * We have some htaccess code on our site that intercepts any requests to .pdf documents
   which calls some PHP to check if the user is logged in and eligible to download
   the file.
 * Since the last few updates of WooCommerce Email Test this functionality throws
   a Fatal Error… essentially there’s something about the plugin that causes functions.
   php to be loaded multiple times, causing function redeclaration errors.
 * I’ve not been able to take a deep dive into the plugin code to see what causes
   this in recent versions, but disabling the plugin does stop the issue occurring.

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

 *  Plugin Author [raiserweb](https://wordpress.org/support/users/raiserweb/)
 * (@raiserweb)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/functions-php-loaded-twice/#post-13256014)
 * Hi [@marcusjwilson](https://wordpress.org/support/users/marcusjwilson/) I’ve 
   just pushed an update that hopefully will fix this – let me know
    Raiserweb
 *  Thread Starter [marcusjwilson](https://wordpress.org/support/users/marcusjwilson/)
 * (@marcusjwilson)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/functions-php-loaded-twice/#post-13256053)
 * Thanks so much for getting on to that so quickly.
 * Whatever you’ve changed seems to have done the trick.
 * Best wishes
    Marcus

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

The topic ‘functions.php loaded twice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-email-test_252526.svg)
 * [WooCommerce Email Test](https://wordpress.org/plugins/woocommerce-email-test/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-email-test/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-email-test/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-email-test/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-email-test/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-email-test/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [marcusjwilson](https://wordpress.org/support/users/marcusjwilson/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/functions-php-loaded-twice/#post-13256053)
 * Status: not resolved