• Hi, We have been using the petfinder plugin for quite a while and it has been of great benefit. We have received a couple of emails from Petfinder that say they have updated the API to V 2.0 and wanted to ask if Petfinder Listings will support this new API????

    Many Thanks, the plugin has helped us so much over the years. See below:

    “Thank you for being a valued user of Petfinder’s API. We are excited to announce that a new version of the API, version 2.0, is now available at https://www.petfinder.com/developers/

    You will need to register for a new API key and update existing applications to use version 2.0.

    Beginning 1/20?/2020, Petfinder will no longer support earlier versions of the API. We ask that you update all of your development projects to the new version well in advance to avoid any problems for your users.

    Please refer to our API documentation at https://www.petfinder.com/developers/v2/docs/ for more information. Should you need assistance, please contact [email protected] with any questions.”

    Thank you,
    Petfinder Help Desk
    Petfinder.com

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • I tried to update with a new API key a couple of days ago and it won’t work anymore, so I had to revert to my old API key. I hope there’s an answer as to how to use the new API with the plugin before 1/20. Please post here is anyone knows a solution.

    Same here. Any kind of update on this would be appreciated.

    Thread Starter Greg’s Cloud

    (@greg1usa)

    The author did respond to an email I sent and said she does plan on updating the plugin and has been really busy. She told me there will be an update before the cut off date.

    Plugin Author bridgetwes

    (@bridgetwes)

    Hi – I just updated the Petfinder Listings plugin to use Petfinder’s API v2.0. If you have a version 1.0 key, it will continue to work as is after the update. Once you have updated to version 1.0.13, there is a setting for your Petfinder API v2.0 key and secret, which you can get here: https://www.petfinder.com/developers/ (this link is also noted on the Petfinder Listings Settings page).

    Please note, after you set your API v2.0 keys, your pets’ full description will not display anymore. Petfinder returns an excerpt of the pets’ descriptions in API v2.0. I emailed [email protected] to confirm this is expected behavior with API v2.0. I am keeping my sites on API v1.0 until it stops working because I think the pets descriptions are important. However, you can’t generate API v1.0 keys anymore so if you don’t have one, you have to use API v2.0, and v1.0 is supposed to stop working in Jan 2020. Please feel free to email [email protected] and ask them to return the pets’ full description in API v2.0. I’ve included a link to the pet on Petfinder after the shortened description, but that seems like a pain for your potential adopters.

    I’m working on a new website so I don’t have v 1.0 key. I’ve installed the plugin and entered everything properly. When I hit Save Changes all of the fields are filled in with “Y”, if I’ve selected to display “Powered by Petfinder”.

    If I select no all of the fields are filled in with an “N”.

    If I don’t select either, the fields are set to the last option selected.

    I’m running WP 5.3.1, theme Divi

    Thanks so much for your assistance.

    Plugin Author bridgetwes

    (@bridgetwes)

    Hi @pentechcoach – can you link to a screenshot (you can share with https://snipboard.io/) of what fields are filled with “Y” and “N”? I’m not following your description of what is happening. Also, can you try switching to one of the WordPress themes – TwentyTwenty or TwentyNineteen to see if it changes this behavior you are seeing?

    Hi – thanks for getting back to me so quickly. I really appreciate your help.

    The screenshot is here – https://snipboard.io/fW2xHp.jpg

    As far as switching to another theme, I need to clone the system 1st, as it’s in use.

    I also noticed that when I switched the API from version 1 to 2 on a different site I maintain, the featured Pet Widget stopped working, so I went back to version 1.

    It there perhaps a setting in Petfinder I don’t have set correctly?

    I’ll get a screenshot there as well.

    Thanks again!

    Plugin Author bridgetwes

    (@bridgetwes)

    That is really weird. If you can clone, try disabling all other plugins too to see if it is another plugin. Where are you hosted?

    For the other site, did you try resaving/changing the featured Pet Widget – or removing the widget and adding it back?

    Hi Bridget –

    Okay I’ll make a clone and disable everything but Petfinder Listings and see if it works. We’re hosted on Liquid Web LLC – I’ve never worked with that company. I’ve requested a clone for experimentation from our admin person.

    On the other site I didn’t do any debugging – I just went right back to v1 as it is working fine. I’m really busy setting up a new rescue group so that one has to wait.

    I will keep you posted. Thank you again!

    Hi Bridget –

    Our sysadmin guy did what you suggested and wanted me to share this…

    I really don’t think it’s a plugin issue. I backed up the database and then deactivated all plugins. I then tried to change the settings with no luck.

    I’m checking error logs and here is what I’m getting. Can you pass this along to the developer, please?

    [14-Dec-2019 13:40:00 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, string given in /home/teddy12/public_html/wp-content/plugins/petfinder-listings/petfinder-listings.php on line 628
    [14-Dec-2019 13:40:00 UTC] PHP Warning: Illegal string offset ‘apikey’ in /home/teddy12/public_html/wp-content/plugins/petfinder-listings/featuredpet-widget.php on line 131
    [14-Dec-2019 13:40:00 UTC] PHP Warning: Illegal string offset ‘shelter_id’ in /home/teddy12/public_html/wp-content/plugins/petfinder-listings/featuredpet-widget.php on line 131

    Thanks again for your assistance!

    Hi! I’m having the same issue as pentechcoach where the first 4 Settings fields autofill with “Y” and don’t keep any entered values.
    I entered this shortcode [shelter_list shelter_id=”NJ736″ count=200 include_info=”no”] into a WP page. When previewed, it showed this message:
    Petfinder is down at the moment. Please check back shortly.
    Error Code returned: 300
    Thanks for any assistance you can supply. We love this plugin!

    Plugin Author bridgetwes

    (@bridgetwes)

    Ah, I found the issue. Thank you for helping with debugging this. I was working/testing on sites that already had the settings saved, and missed this issue that happens if you are saving the settings for the first time. If you update to the latest version of the plugin, you should be able to save your settings now.

    Hi Bridget,
    Thank you so much for your quick response!
    I’m happy to say the featured pet widget is now working!!
    Unfortunately the WP page with the shortcode [shelter_list shelter_id=”NJ736″ count=200 include_info=”no”] now shows this message: No pets available at this time.
    Thanks again!

    Plugin Author bridgetwes

    (@bridgetwes)

    Hi @lisatcr – looks like Petfinder errors if you set the count to more than 100. Try:

    [shelter_list shelter_id="NJ736" count=50 include_info="no" ]

    I’m getting pets with that shortcode that start with cats named “Drifter” and “Trickster”

    Interesting. Count of 200 works just fine on the “old” site: https://www.trentoncats.org/our-adoptable-cats/ using the old API.

    We hardly ever have less than 100 adoptable cats. I don’t think the rescue will be very happy if we can’t display them all. Maybe we could do something with pagination?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Petfinder API update to V 2.0’ is closed to new replies.