Title: Error when implementing
Last modified: August 22, 2016

---

# Error when implementing

 *  [mx_wp](https://wordpress.org/support/users/mx_wp/)
 * (@mx_wp)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/)
 * Hi,
 * I’ve installed CongressLookup and was successful with the API, when I go to the
   page with the shortcut I get an error. Any ideas?
 * [http://www.hfsa.org/hfsa-wp/wp/congressional-lookup/](http://www.hfsa.org/hfsa-wp/wp/congressional-lookup/)
 * [https://wordpress.org/plugins/congresslookup/](https://wordpress.org/plugins/congresslookup/)

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

 *  Plugin Author [ConstructiveGrowth](https://wordpress.org/support/users/constructivegrowth/)
 * (@constructivegrowth)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/#post-5848672)
 * Warning: require_once(../../../wp-load.php): failed to open stream: No such file
   or directory in /home/name/name-wp/content/plugins/congresslookup/getData.php
   on line 5
 * Have you changed your directory structure for your WP install? The wp-load.php
   is part of core WP and is in the main WP directory which is usually named /wp-
   content/ (which you have apparently changed the name of in your install). If 
   your core WP files are in /name-wp/ then you need to open /plugins/congresslookup/
   getData.php file and on line 5 add another directory level to the relative path.
 * IOW: change `(../../../wp-load.php)` to `(../../../../wp-load.php)`
 * If you did not change the directory structure of your WP install, and wp-load.
   php is in your /contents/ directory, then let me know and I’ll have a developer
   look into the error you are receiving.
 *  Thread Starter [mx_wp](https://wordpress.org/support/users/mx_wp/)
 * (@mx_wp)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/#post-5848720)
 * Thanks for the quick response. Our install for this site is very funky – for 
   some reason it was setup by a consultant this way. We changed the directory to
   the wp-load.php file and now we are no longer getting that error. However when
   we put in an address, we are now getting the message:
 * Address or zip code not found. Please try again..
 * This happens at [http://www.hfsa.org/hfsa-wp/wp/congressional-lookup/](http://www.hfsa.org/hfsa-wp/wp/congressional-lookup/).
   You think we need to change any other values?
 * Thanks,
    Bob
 *  Plugin Author [ConstructiveGrowth](https://wordpress.org/support/users/constructivegrowth/)
 * (@constructivegrowth)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/#post-5848721)
 * I’m glad we got it partially working.
 * The MOST common reason for the error you are having is API activation. In the
   email that Sunlight Foundation sent you (that has in it your API key) there is
   also a link that MUST be clicked to activate the API. Please make sure you click
   that link and try the plugin again. NOTE: some users have found it might take
   a few minutes for it connect the first time.
 * If the plugin still does not work then please work through the rest of these 
   troubleshooting tasks: [https://wordpress.org/plugins/congresslookup/other_notes/](https://wordpress.org/plugins/congresslookup/other_notes/)
 * If you still can not get it activated then please contact me again.
 * BTW, if you want, you can contact me at [plugins@constructivegrowth.net](https://wordpress.org/support/topic/error-when-implementing/plugins@constructivegrowth.net?output_format=md)
   and we can talk more about your general website issues.
 *  Thread Starter [mx_wp](https://wordpress.org/support/users/mx_wp/)
 * (@mx_wp)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/#post-5848722)
 * Thanks for the quick followup. I’ll try deactivating the plugins after hours.
   My key was fine and it was activated.

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

The topic ‘Error when implementing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/congresslookup_b89295.svg)
 * [CongressLookup](https://wordpress.org/plugins/congresslookup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/congresslookup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/congresslookup/)
 * [Active Topics](https://wordpress.org/support/plugin/congresslookup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/congresslookup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/congresslookup/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mx_wp](https://wordpress.org/support/users/mx_wp/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/error-when-implementing/#post-5848722)
 * Status: not resolved