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.
After applying the proposed patch https://www.drupal.org/node/2646540
I've got this error: Recoverable fatal error: Argument 9 passed to Drupal\colorbox\Plugin\Field\FieldFormatter\ColorboxFormatter::__construct() must be an instance of Drupal\colorbox\PageAttachmentInterface, instance of Drupal\colorbox\ColorboxAttachment given
Comment | File | Size | Author |
---|---|---|---|
#8 | colorbox-2648424-7.patch | 2.31 KB | Sam152 |
| |||
#2 | colorbox-2648424-8.0.2.patch | 1.67 KB | emanuelrighetto |
Comments
Comment #2
emanuelrighetto CreditAttribution: emanuelrighetto commentedI solved with the attached code
Comment #3
rodrigoaguileraSolved it for me too. Thanks :)
Comment #4
glynster CreditAttribution: glynster commented+1 RTBC colorbox now working!
Comment #5
Sam152 CreditAttribution: Sam152 commentedTestbot ahoy.
Comment #6
Sam152 CreditAttribution: Sam152 commentedLooks like the tests picked this up already. The HEAD results are here: https://www.drupal.org/pift-ci-job/132870
Comment #8
Sam152 CreditAttribution: Sam152 commentedThis should pass.
Comment #9
Sam152 CreditAttribution: Sam152 commentedComment #10
Sam152 CreditAttribution: Sam152 commentedThe patch was good, just needed hinting to ElementAttachmentInterface. This seemed to be working before, just with an error in the logs. Anyway, now that it's green it can go in, thanks for your contribution.