CopyNShare impossible to enable

Created on 20 January 2015, about 10 years ago
Updated 23 January 2025, 3 months ago

I've been trying to set ShareThis up to allow an anchor in the URL I'm sharing. From what I understand, I need to enable "Measure copy & shares of your site's Content" on the admin page. The problem is if I enable either option and try to save, nothing happens. I think this is because the admin page will never allow for sharethis_cns to be set. In sharethis_configuration_form_validate() line 334 the CNS settings are getting unset:

  if($form_state['values']['sharethis_callesi'] == 1){
  unset($form_state['values']['sharethis_cns']);
  }

sharethis_callesi is a hidden field passed in that gets it's value from sharethis_get_options_array() line 539:

  'sharethis_callesi' => (NULL == variable_get('sharethis_cns'))?1:0,

It seems that the code is determining if it should configure sharethis_cns based on if sharethis_cns has already been configured. And if it hasn't been configured, then it won't configure it?

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jnettik Denver, CO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024