• Resolved micheledenise

    (@micheledenise)


    hi Dan,
    Linton + i are having a heckuva time getting the plugin to work on the wordpress Salient theme, which was requested by the client. Live + learn: I will never allow a client to select a theme again!
    That said, Are you familiar with themes that work particularly well with Legiserve? Our goal is to not only provide state legislators’ email addresses to the user, but also via 1 click,
    pop open the user’s email system + populate an email with a pre-written letter. (much like petitions MoveOn.org or change.org does)

    thank you!
    michele

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter micheledenise

    (@micheledenise)

    Hi there,

    When searching an address it returns this error:

    Warning: Invalid argument supplied for foreach() in /home/content/a2pnexwpnas02_data03/86/3555886/html/wp-content/plugins/wp-legisearch/public/functions.php on line 191

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/a2pnexwpnas02_data03/86/3555886/html/wp-content/plugins/wp-legisearch/public/functions.php:191) in/home/content/a2pnexwpnas02_data03/86/3555886/html/wp-includes/pluggable.php on line 1174

    Can you please point us in the right direction?

    Plugin Author Dan Roberts

    (@drobertsorg)

    Sorry for the delay. The Open States API is in transition as its owner, The Sunlight Foundation, is closing down. The error you are experiencing is due to a failure from the Open States API. I am unsure if they will be willing to fix it, but the issue has already been reported on the Google Group for the project.

    The only two workarounds I can think of right now are: (1) Remove the address lookup. The error is specific to the geo-lookup part of their API. You can still lookup legislators by their state and chamber. (2) Modify the plugin to do your own geolookup to match a latitude and longitude to a legislative district. This is obviously more technical.

    My plan with this plugin is to wait to see where the Open States API moves to and re-write the plugin to use the new API location.

    Plugin Author Dan Roberts

    (@drobertsorg)

    According to a Sunlight Labs Tweet:

    Location-based searches on @OpenStates are currently down, and we’re working on a fix now. Apologies for the inconvenience.

    Plugin Author Dan Roberts

    (@drobertsorg)

    Marking as resolved as the this happened from a temporary data problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wordpress themes that work with Legisearch’ is closed to new replies.