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.
Problem/Motivation
/admin/modules -> Enabled RedHen Connection and received a syntax error.
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/crmem/web/modules/contrib/redhen/modules/redhen_connection/src/ConnectionHtmlRouteProvider.php on line 66
Proposed resolution
Remove ; at end of line 65
Remaining tasks
Create Patch ... power went out.
Comment | File | Size | Author |
---|---|---|---|
#5 | After.png | 28.39 KB | zalak.addweb |
#4 | Before.png | 24.29 KB | zalak.addweb |
#2 | 2884944-syntax-error.patch | 797 bytes | roberto_araya |
Comments
Comment #2
roberto_araya CreditAttribution: roberto_araya commentedComment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #4
zalak.addweb CreditAttribution: zalak.addweb at AddWeb Solution Pvt. Ltd. commented@roberto_araya, Thanks for the patch it corrects the errors As I checked it with Simplyetst.me, I've attached the screenshot for the result of after patch.
Comment #5
zalak.addweb CreditAttribution: zalak.addweb at AddWeb Solution Pvt. Ltd. commentedComment #6
arosboro CreditAttribution: arosboro at DropForge Labs commentedI must have created this error, and wrote a similar patch, I can also confirm this is the proper fix.
Comment #7
superlolo95 CreditAttribution: superlolo95 commentedFix worked also for me.
Comment #8
asherry CreditAttribution: asherry commented+1 for patch #2
Comment #10
gcbThanks all, committed.
Comment #11
gcb