When adding a ShareThis Link field to a view, we're getting the following error:
The handler for this item is broken or missing. The following details are available:
Enabling the appropriate module will may solve this issue. Otherwise, check to see if there is a module update available.
On the backend, we're seeing this trace:
PHP Fatal error: Unsupported operand types in core/modules/views/src/Plugin/views/field/FieldPluginBase.php on line 1168
Not sure what to make of this. We've tried uninstalling and re-installing the module. Steps to reproduce:
- Install ShareThis module
- Configure a View with a "Fields" display
- Add ShareThis link field
After which the above error displays, and "Broken/missing handler" is the field listed. View fails to render and returns HTTP code 500.
Proposed commit message :
git commit -m 'Issue #2659250 by heddn, naveenvalecha, Corregidor, edysmp: Cannot add ShareThis field to View' --author="lucashedding <lucashedding@1463982.no-reply.drupal.org>"
Comment | File | Size | Author |
---|---|---|---|
#11 | sharethis-cannot_add_sharethis_views-2659250-11.patch | 223 bytes | heddn |
|
Comments
Comment #2
Corregidor CreditAttribution: Corregidor commentedComment #3
naveenvalechaComment #4
Corregidor CreditAttribution: Corregidor commentedFWIW, we can only reproduce this issue on Drupal instances running on a remote host but not when the instance runs locally. Very strange. The services and code bases are identical on both machines, and yet adding this field only fails on the remote instance. We also see an AJAX error on the browser console when this fails, but this is likely just a symptom of the issue.
Comment #5
Corregidor CreditAttribution: Corregidor commentedConfirmed issue also affects 8.x-dev.
Comment #6
naveenvalechaComment #7
TanvirAhmad CreditAttribution: TanvirAhmad as a volunteer commentedSubscribing.
Comment #8
heddnHmm, this would explain why it works locally in #4 and not on server. Local must be a filesystem that doesn't care about case sensitivity of folder names.
Comment #10
naveenvalechaThanks for the patch.
nit views two times. it should be "views"
Comment #11
heddnRe: #10:
That isn't a nit. It is an important thing. Making the adjustment.
Comment #12
heddnAnd it seems like there are/were tests. Since it failed with the wrong name. Maybe we want something more?
Comment #13
naveenvalechalooking good to me.
+1 for RTBC. Assigning to neetu-morwani to get this committed into 8.x-2.x
Comment #14
heddnCan this get committed, it is making it hard to apply other patches without re-rolls since it renames a file. Specifically, #2755679: Sharethis no share nodes..
Comment #15
naveenvalechadoing RTBC as per #13.
Will do my hands dirty and commit it.
Comment #17
naveenvalechaThanks!
It will now unblocks you there.
Comment #18
edysmp@naveenvalecha No removed src/Plugin/Views/field/SharethisNode.php? is duplicate.
Comment #19
naveenvalecha@edysmp
No.
Have you done the git pull?
Check by downloading the development tarball from project page.
Comment #20
edysmp@naveenvalecha using mac? please see http://cgit.drupalcode.org/sharethis/tree/src/Plugin?h=8.x-2.x
Comment #21
naveenvalecha#20 Nice find. yup I'm using .Setup linux in VM. On fixing it.
Comment #22
naveenvalechaupdating commit message.