Hello!
Thank you very much for this usefull project.
I faced i problem. facebook sharing is working perfect when i am logged in but is not working good for visitors they have not logged in (it shares not the current node but an other). What can i do?
Thank you very much!!!

Comments

ShareThis Support’s picture

Hello,
Can you please provide the link to your website so that we can have a look at this issue ?

The ShareThis Support Team
http://support.sharethis.com

lwalley’s picture

Version: 7.x-2.4 » 7.x-2.5

Hi there, I think I can offer an example of this issue:

Using Facebook Share on this page: http://history.archives.mbl.edu/archives/items/1895-zoology-course-photo... or any other page of the site results, in my case, to a link to this page: http://history.archives.mbl.edu/archives/formats/photographs

I can confirm that this issue does not appear to affect logged in users.

lwalley’s picture

@ShareThis Support regarding my previous post, I'm going to have to turn sharing off until this is resolved so the example links I provided will not be applicable anymore. Please let me know if you get a chance to look at this in the next week or so and I'll turn them back on.

Gaofengzzz’s picture

Sorry, I can't reproduce in my env. could anybody tell how to reproduce this issue? @lwalley, have you try to clean server cache? maybe you can try to use dev version see if still have this bug.
Thank you.

lwalley’s picture

@gaofengzzz I was able to recreate this issue by turning on "Cache pages for anonymous users" in /admin/config/development/performance - did I miss something in the docs for this module that says not to use caching? Perhaps a rather obvious issue that I overlooked!

Gaofengzzz’s picture

Assigned: kwstasm83 » Unassigned
Status: Active » Postponed (maintainer needs more info)

Sorry, I tried to reproduce the issue again by turning on caching, aggregation and all other performance parameters and I still wasn't able to reproduce the issue.

I'm afraid we might have to go much deeper in the debugging of this issue.

Could you potentially list out all of your modules installed together with the version?
Could you please provide the Drupal Core version?
Could you please try maybe disabling other contributed modules one by one and check if the issue is still happening?
Could you please try changing the theme to Garland? (I assume it's not a theme related issue.... but .... we never know)?

lwalley’s picture

Interesting. Below is a list of enabled core and contributed modules, but note that I have a number of patches and custom modules not listed here. Let me know if you see any potential culprits, but otherwise I suspect I will need to do some digging myself to find the cause. I'll try to do that over the next week or so and get back to you.

Chaos tool suite Chaos tools (ctools) Module Enabled 7.x-1.3
Chaos tool suite Page manager (page_manager) Module Enabled 7.x-1.3
Chaos tool suite Views content panes (views_content) Module Enabled 7.x-1.3
Core Block (block) Module Enabled 7.22
Core Contact (contact) Module Enabled 7.22
Core Contextual links (contextual) Module Enabled 7.22
Core Database logging (dblog) Module Enabled 7.22
Core Field (field) Module Enabled 7.22
Core Field SQL storage (field_sql_storage) Module Enabled 7.22
Core Field UI (field_ui) Module Enabled 7.22
Core File (file) Module Enabled 7.22
Core Filter (filter) Module Enabled 7.22
Core Help (help) Module Enabled 7.22
Core Image (image) Module Enabled 7.22
Core List (list) Module Enabled 7.22
Core Menu (menu) Module Enabled 7.22
Core Node (node) Module Enabled 7.22
Core Number (number) Module Enabled 7.22
Core Options (options) Module Enabled 7.22
Core Path (path) Module Enabled 7.22
Core RDF (rdf) Module Enabled 7.22
Core Statistics (statistics) Module Enabled 7.22
Core Syslog (syslog) Module Enabled 7.22
Core System (system) Module Enabled 7.22
Core Taxonomy (taxonomy) Module Enabled 7.22
Core Text (text) Module Enabled 7.22
Core Toolbar (toolbar) Module Enabled 7.22
Core Update manager (update) Module Enabled 7.22
Core User (user) Module Enabled 7.22
Date/Time Date (date) Module Enabled 7.x-2.6
Date/Time Date All Day (date_all_day) Module Enabled 7.x-2.6
Date/Time Date API (date_api) Module Enabled 7.x-2.6
Date/Time Date Views (date_views) Module Enabled 7.x-2.6
Features Features (features) Module Enabled 7.x-1.0
Feeds Feeds (feeds) Module Enabled 7.x-2.0-alpha8
Feeds Feeds Admin UI (feeds_ui) Module Enabled 7.x-2.0-alpha8
Feeds Feeds Self Node Processor (feeds_selfnode_processor) Module Enabled
Feeds Feeds XLSX (feeds_xlsx) Module Enabled
Feeds Feeds XPath Parser (feeds_xpathparser) Module Enabled
Fields Address Field (addressfield) Module Enabled 7.x-1.0-beta4
Fields Entity Reference (entityreference) Module Enabled 7.x-1.0
Fields Fences (fences) Module Enabled 7.x-1.0
Fields Field collection (field_collection) Module Enabled 7.x-1.0-beta5
Fields Field Validation (field_validation) Module Enabled 7.x-2.3
Fields Fieldgroup (field_group) Module Enabled 7.x-1.1
Fields Geofield (geofield) Module Enabled 7.x-1.1
Fields Link (link) Module Enabled 7.x-1.1
Input filters WYSIWYG Filter (wysiwyg_filter) Module Enabled 7.x-1.6-rc2
javascript Behavior weights (behavior_weights) Module Enabled 7.x-1.0
Media IMCE (imce) Module Enabled 7.x-1.7
Other Adaptive Image (adaptive_image) Module Enabled 7.x-1.4
Other Administer Users by Role (administerusersbyrole) Module Enabled
Other Advanced help (advanced_help) Module Enabled 7.x-1.0
Other Diff (diff) Module Enabled 7.x-3.2
Other Entity API (entity) Module Enabled 7.x-1.1
Other Entity tokens (entity_token) Module Enabled 7.x-1.1
Other Geocoder (geocoder) Module Enabled 7.x-1.2
Other geoPHP (geophp) Module Enabled 7.x-1.7
Other Job Scheduler (job_scheduler) Module Enabled 7.x-2.0-alpha3
Other Lexicon (lexicon) Module Enabled 7.x-1.10
Other Libraries (libraries) Module Enabled 7.x-2.1
Other Menu position (menu_position) Module Enabled 7.x-1.1
Other Override node options (override_node_options) Module Enabled 7.x-1.12
Other Pathauto (pathauto) Module Enabled 7.x-1.2
Other Redirect (redirect) Module Enabled 7.x-1.0-rc1
Other Strongarm (strongarm) Module Enabled 7.x-2.0
Other Sub-pathauto (subpathauto) Module Enabled 7.x-1.3
Other Token (token) Module Enabled 7.x-1.5
Other Transliteration (transliteration) Module Enabled 7.x-3.1
Panels Panels (panels) Module Enabled 7.x-3.3
Printer, email and PDF versions PDF version (print_pdf) Module Enabled 7.x-1.2
Printer, email and PDF versions Printer-friendly pages (print) Module Enabled 7.x-1.2
Printer, email and PDF versions Send by email (print_mail) Module Enabled 7.x-1.2
Rules Rules (rules) Module Enabled 7.x-2.3
Rules Rules Scheduler (rules_scheduler) Module Enabled 7.x-2.3
Rules Rules UI (rules_admin) Module Enabled 7.x-2.3
Search Search API (search_api) Module Enabled 7.x-1.6
Search Search facets (search_api_facetapi) Module Enabled 7.x-1.6
Search Search views (search_api_views) Module Enabled 7.x-1.6
Search Solr search (search_api_solr) Module Enabled 7.x-1.0-rc5
Search Toolkit Facet API (facetapi) Module Enabled 7.x-1.3
Search Toolkit Facet API Bonus (facetapi_bonus) Module Enabled 7.x-1.1
SEO Metatag (metatag) Module Enabled 7.x-1.0-beta7
Sharing ShareThis (sharethis) Module Enabled 7.x-2.5
Statistics Google Analytics (googleanalytics) Module Enabled 7.x-1.3
Taxonomy Taxonomy CSV import/export (taxonomy_csv) Module Enabled 7.x-5.10
Taxonomy menu Taxonomy menu (taxonomy_menu) Module Enabled 7.x-1.4
User interface IMCE Wysiwyg API bridge (imce_wysiwyg) Module Enabled 7.x-1.0
User interface jQuery Update (jquery_update) Module Enabled 7.x-2.3
User interface Wysiwyg (wysiwyg) Module Enabled 7.x-2.2
Views Views (views) Module Enabled 7.x-3.7
Views Views Bulk Operations (views_bulk_operations) Module Enabled 7.x-3.1
Views Views RSS (views_rss) Module Enabled 7.x-2.0-rc3
Views Views RSS: Core Elements (views_rss_core) Module Enabled 7.x-2.0-rc3
Views Views UI (views_ui) Module Enabled 7.x-3.7

mstef’s picture

I'm getting this too. No page caches on or aggregation of css/js. I'm only able to see the widget as anonymous.

zip207’s picture

Same issue here as well. After turning off Cache for Blocks & Anonymous users I was able to get ShareThis working as intended.

Maybe you need to clear the Cache as well to get it to start working again.

mstef’s picture

Nothing works at all. Tried with the latest dev too. Doesn't even always work for anonymous. No caches are enabled and I've cleared everything several times.

mstef’s picture

It's working for me now - turned out to be my browser settings that I completely forgot about.

ernesto.algar’s picture

I had the same problem after enabling the page cache for anonymous users, the block cache, and the CSS and JavaScript compression.

To solve this, I installed the Block Cache Alter module to avoid the ShareThis block is cached.

AlfTheCat’s picture

I have the same issue. Not working for anonymous. Tested in FF and Chrome.

quantos’s picture

Issue summary: View changes

Hi guys. How this issue doing? I have the same problem (ShareThis 2.5 that is, Drupal 7.26, lots of modules) although more specifically for me is that:

1. Works fine throughout for logged in users, but
2. For anonymous users, regardless of which share ink they click on, are always presented with a link to the latest added content (a blog).

The site URL is http://www.bcidigital.com which is live although we're just polishing off this site right now. Will keep checking other threads for any other solutions although thanks @si1ver, will look at that "Block Cache Alter" which I'd never heard of but might be useful in lots of scenarios.

Q.

quantos’s picture

Any news? Meantime, the "Block Cache Alter" module mentioned by si1ver #12 was a great workround for this. Clearly the problem resides in the caching of this block for anonymous users (which you can override block by block using "Block Cache Alter" which also enables caching by role, permission or page (which is the option I used).

Q.

AlfTheCat’s picture

@quantos
I missed that solution, since I don't speak Spanish. Thanks for translating it.

I noticed by the way that 'after a while' things started to work. Even though I cleared caches and performed cron runs vigorously. All it took was time in my case.

AlfTheCat’s picture

Oops, I stand corrected. I just noticed the issue is "back" and in firefox it's again not working for anonymous.
I'll have a go at the solution proposed in #15

mmartinov’s picture

The following change implemented in the 7.x-2.x branch fixes the issue for me.

function sharethis_block_info() {
  $blocks['sharethis_block'] = array(
    'info' => t('ShareThis'),
+   'cache' => DRUPAL_CACHE_PER_PAGE,
  );
  return $blocks;
}