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.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | invalid-argument-warning-2018005-5.patch | 1.94 KB | dsdeiz |
#5 | interdiff.txt | 986 bytes | dsdeiz |
#2 | sharethis-7.x-2.x-dev-invalid_argument_warning-2018005-2.patch | 1.05 KB | Gaofengzzz |
Comments
Comment #1
tscholl CreditAttribution: tscholl commentedThanks for reaching out to ShareThis. If you would email support@sharethis.com with your problem we would love to help you.
Comment #2
Gaofengzzz CreditAttribution: Gaofengzzz commentedThank you for reporting this critical bug.
patch attached.
Comment #3
mattsmith3 CreditAttribution: mattsmith3 commentedIs it reasonable to rtbc with one tester? changing status. this is great.
Thanks tscholl!
Comment #4
dsdeiz CreditAttribution: dsdeiz commentedsharethis_handler_field_link::render_sharethis_link()
needs the update as well I think. Or should it be on a different issue?Comment #5
dsdeiz CreditAttribution: dsdeiz commentedI guess it's just a small update. Attaching patch.
Comment #6
Gaofengzzz CreditAttribution: Gaofengzzz commentedThank 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.
Comment #7
Gaofengzzz CreditAttribution: Gaofengzzz commented