Notice: Undefined index: override_facebook&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).
Notice: Undefined index: override_twitter&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).
Notice: Undefined index: override_linkedin&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).
Notice: Undefined index: override_email&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).
Notice: Undefined index: override_sharethis&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).
Notice: Undefined index: override_pinterest&quot in sharethis_configuration_form_submit() (line 70 of /home/sitename/public_html/sites/all/modules/sharethis/sharethis.module).

CommentFileSizeAuthor
error.png280.42 KBlocalnetwork
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

localnetwork created an issue. See original summary.

Christian DeLoach’s picture

I'm having the same problem. As you can see by your screenshot, the "Choose Your Services" UI does not load. All scripts leading up to https://ws.sharethis.com/share5x/js/stcommon.js execute but all scripts after https://ws.sharethis.com/share5x/js/stcommon.js loads do not, including the stlib_picker.js script. As a result, the stlib_picker is undefined. I've confirmed through console that stcommon.js loads but no errors are thrown so I don't know what is causing the scripts to fail.

Jonathan Lauer’s picture

Same for me ! :(

antonino-ragona’s picture

I have the same error!!!!!

localnetwork’s picture

Better to use Add to Any

Christian DeLoach’s picture

localnetwork,

When something in Drupal doesn't work we don't post 'Better to use WordPress'. Let's keep this issue post on topic with a goal to fix the module for those who prefer to use ShareThis. When something is broken let's fix it, not replace it.

juanjo4’s picture

See here https://www.drupal.org/node/2759221

Possible related to that, they recommend to downgrade to 7.x-2.12 or apply some of the latest patches with a specific process.

Hope that helps!

Best,
Juan

Christian DeLoach’s picture

Thank you Juan,

I suspect you are correct. Thank you for sharing the related issue. I think we can close this issue and refer others to issue 2759221.

localnetwork’s picture

Hi Christian,

Sorry for the misunderstanding. Let's just refer to this link then: https://www.drupal.org/node/2759221

localnetwork’s picture

Status: Active » Fixed
Jonathan Lauer’s picture

I apply this differents patches and nothing !
I downgrade at 7.x-2-.12 and nothing too !

I can see some errors JS in my console :

Uncaught TypeError: jQuery(...).find(...).live is not a function
at HTMLDocument.addEvents (ShareThisForm.js?omjhiu:107)
at c (jquery.min.js?v=1.10.2:4)
at Object.fireWith [as resolveWith] (jquery.min.js?v=1.10.2:4)
at Function.ready (jquery.min.js?v=1.10.2:4)
at HTMLDocument.q (jquery.min.js?v=1.10.2:4)

Jonathan Lauer’s picture

But, with patch I didn't see this Undefined index line 70 ! :)

It's just impossible to select a social network and impossible to click on left arrow to choose !

In the textfield "Choose your services:" it's strange too :
"Facebook:facebook","Tweet:twitter","LinkedIn:linkedin","Email:email","ShareThis:sharethis","Pinterest:pinterest"

Christian DeLoach’s picture

Wizzu,

Which version of jQuery are you using, specifically with the Administration interface (e.g. are you using jQuery Update)?

Jonathan Lauer’s picture

All is ok now ! :)

I followed the goods steps like #68 https://www.drupal.org/node/2759221#comment-11791706

NancyDru’s picture

Make sure you use the DEV version. I saw many of these issues before I switched; now it's working.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

TarKHaoS’s picture

I found the issue was with the global variable which was broken after an export/import of database.
My solution:
- install/activate Devel module
- go to /devel/variable/edit/sharethis_service_option
- Replace all wrong characters.

The string should look like that:

"Facebook:facebook","LinkedIn:linkedin","Twitter:twitter","Google +:googleplus","Email:email"

ezoulou’s picture

Be also carefull to the version of JQuery you're using (cf JQuery update).
Here is a possibly related issue : https://www.drupal.org/project/sharethis/issues/2759221

Rick Hood’s picture

#17 worked for me. Thanks!
In my case it was changing this:
"ShareThis:sharethis","Print:print"
...to this:
"ShareThis:sharethis","Print:print"
...here: /devel/variable/edit/sharethis_service_option

apaderno’s picture

Assigned: localnetwork » Unassigned
Issue tags: -sharethis