Project

General

Profile

Actions

Bug #14521

closed

Registration step for "ShareThis Social Share Buttons" plugin not working

Added by scott voth almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2021-06-02
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

When I try to set up the plugin, the register step is throwing a CORS error. See screenshot attached.

Registration seems to be required to use the plugin.

When I fill in the form, it appears to be working, and then it just comes back to the registration page.


Files

share this registration.jpg (262 KB) share this registration.jpg scott voth, 2021-06-02 04:17 PM
sharethis head script.jpg (52.2 KB) sharethis head script.jpg scott voth, 2021-06-04 04:10 PM
Actions #1

Updated by Boone Gorges almost 3 years ago

Thanks for the report. I just sent the following email to :

I had a report from a user indicating that it's not possible to authenticate with or register for a ShareThis account using the WordPress plugin. A "CORS request did not succeed" error is taking place. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSDidNotSucceed indicates that this is a problem with the request, and I wonder if perhaps ShareThis is blocking requests from our domains for some reason. Requests would be coming from subdomains of the form: *.commons.gc.cuny.edu. Could you please let me know whether this is the case, or if you have another way of troubleshooting this issue?

Actions #2

Updated by Boone Gorges almost 3 years ago

  • Status changed from New to Reporter Feedback

Hi Scott - So, after some back-and-forth with the ShareThis people, and some testing on my own, I found that I was able to make the connection to ShareThis only if I disabled all the tracker-blocking tools on my computer. In this case, it meant disabling Firefox's default behavior of blocking trackers (see https://winaero.com/disable-content-blocking-for-individual-sites-in-firefox/) and also removing my extensive /etc/hosts block list for tracking websites. Can you check to see whether, on your setup, you have similar blocks in place?

Actions #3

Updated by scott voth almost 3 years ago

Thanks Boone. I was finally able to register and spent considerable time trying to get it to work. Then I noticed that to use it, you need to paste a script into the head of your site. See attached. The plugin is way too complicated to set up. I think we should remove it from the Commons.

We have other options - Atomic Blocks has an easy to use block called "Sharing." And there is another plugin called "WP Social Sharing." I'm glad we got rid of the old version of the plugin that didn't work, but we shouldn't replace it with this new and improved version.

Actions #4

Updated by Boone Gorges almost 3 years ago

  • Target version set to 1.18.12

Thanks for plugging away at this, Scott. I've removed the plugin in https://github.com/cuny-academic-commons/cac/commit/8f37fcf9fe9c15fc8260d5eb82ceca12a810a968 and it will be off the site after today's release.

Since it sounds like the existing Atomic Blocks may be a good alternative, I'm going to close this ticket. If it looks like we need to try a different plugin, please open a new ticket.

Actions #5

Updated by Boone Gorges almost 3 years ago

  • Status changed from Reporter Feedback to Staged for Production Release
Actions #6

Updated by Boone Gorges almost 3 years ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF