Title: Broken include for wp-load.php
Last modified: June 22, 2017

---

# Broken include for wp-load.php

 *  Resolved [schliflo](https://wordpress.org/support/users/schliflo/)
 * (@schliflo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/)
 * Hi, i am using this plugin with the bedrock stack for wordpress: [https://roots.io/bedrock/](https://roots.io/bedrock/)
   
   This has a slightly altered folder structure for security and some other reasons(
   composer compatibility etc..). Your plugin is trying to load wp-load.php on line
   2 of emefs-locations-search.php from a hardcoded path -> `require_once('../../../
   wp-load.php');`. This does not work because of the altered folder structure my
   setup has. I wrote a composer patch to fix this issue on my end, however as such
   an include you are doing is [widely considered as bad practice](http://ottopress.com/2010/dont-include-wp-load-please/)
   I wanted to make you aware of it. A proper fix would be very much appreciated.

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

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9251450)
 * You’re correct. This is old code and I’ll make a change asap to fix this.
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9253195)
 * This change should fix this:
    [https://plugins.trac.wordpress.org/changeset/1683681/](https://plugins.trac.wordpress.org/changeset/1683681/)
 *  Thread Starter [schliflo](https://wordpress.org/support/users/schliflo/)
 * (@schliflo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9254686)
 * Thank very much! You didn’t tag a new release though, did you?
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9254763)
 * Not yet, but if you confirm this works OK for you, then I will.
 *  Thread Starter [schliflo](https://wordpress.org/support/users/schliflo/)
 * (@schliflo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9254792)
 * Can confirm this works!
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9257110)
 * Ok, new version released.

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

The topic ‘Broken include for wp-load.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/events-made-easy-frontend-submit.
   svg)
 * [Events Made Easy Frontend Submit](https://wordpress.org/plugins/events-made-easy-frontend-submit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy-frontend-submit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy-frontend-submit/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy-frontend-submit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy-frontend-submit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy-frontend-submit/reviews/)

## Tags

 * [EME](https://wordpress.org/support/topic-tag/eme/)
 * [emefs](https://wordpress.org/support/topic-tag/emefs/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * 6 replies
 * 2 participants
 * Last reply from: [Franky](https://wordpress.org/support/users/liedekef/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/broken-include-for-wp-load-php/#post-9257110)
 * Status: resolved