Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
While loading any page on my website I get an error while the page is trying to retrieve
GET http://w.sharethis.com/share4x/js/local/en/message.js
I checked directly in the browser the above path and it's not available.
I also checked in the module folder of sharethis on my drupal, and there is no message.js script there...
Am I doing something wrong?
Many thanks for looking into this
Comments
Comment #2
gcalex5 CreditAttribution: gcalex5 at Inclind Inc commentedI was getting the same error as you, and it looks like my issue was that the 'button.js' isn't being loaded at the right time in the header. So, weighting it to be towards the end of my list seems to of resolved this for me.
TL;DR: Added this to
hook_preprocess_html()
and the issue is goneComment #3
pureh2o CreditAttribution: pureh2o commentedThank you gcalex5,
I applied the following change in the sharethis.module at line 439 and it solved the error:
// drupal_add_js($external, 'external');
drupal_add_js($external,
array(
'type' => 'file',
'scope' => 'header',
'weight' => 5,
));
Could this be added as a fix of the module?