Getting this error:

Warning: Invalid argument supplied for foreach() in theme_sharethis() (line 426 of /mysite/sites/all/modules/sharethis/sharethis.module).

It only shows up when trying to push the widget through the block system, but makes that block option completely unusable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tscholl’s picture

Thanks for reaching out to ShareThis. If you would email support@sharethis.com with your problem we would love to help you.

Gaofengzzz’s picture

Status: Active » Needs review
FileSize
1.05 KB

Thank you for reporting this critical bug.
patch attached.

mattsmith3’s picture

Status: Needs review » Reviewed & tested by the community

Is it reasonable to rtbc with one tester? changing status. this is great.

Thanks tscholl!

dsdeiz’s picture

sharethis_handler_field_link::render_sharethis_link() needs the update as well I think. Or should it be on a different issue?

dsdeiz’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
986 bytes
1.94 KB

I guess it's just a small update. Attaching patch.

Gaofengzzz’s picture

Thank you guys very much, The patch from #5 has been commited, see a951801. Feel free to re-open it if you have any further objections with this patch.

Gaofengzzz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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