Title: Possible Patch for WSOD error
Last modified: August 30, 2016

---

# Possible Patch for WSOD error

 *  [Jeffrey Zinn](https://wordpress.org/support/users/jeffreyzinn/)
 * (@jeffreyzinn)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/possible-patch/)
 * We had a WSOD when the plugin was accessed from outside the WordPress root. We
   found that the issue was related to using a relative path for the require_once
   call at the top of /types/embedded/common/toolset-forms/bootstrap.php starting
   at line 7. We were able to solve the issue by changing the reference to an absolute
   path. We changed lines 7-10 from
 *     ```
       require_once 'api.php';
   
       define('WPTOOLSET_FORMS_VERSION', '0.1.1');
       define('WPTOOLSET_FORMS_ABSPATH', dirname(__FILE__));
       ```
   
 * to
 *     ```
       define('WPTOOLSET_FORMS_VERSION', '0.1.1');
       define('WPTOOLSET_FORMS_ABSPATH', dirname(__FILE__));
   
       require_once WPTOOLSET_FORMS_ABSPATH . '/api.php';
       ```
   
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

The topic ‘Possible Patch for WSOD error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jeffrey Zinn](https://wordpress.org/support/users/jeffreyzinn/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/possible-patch/)
 * Status: not resolved