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.
Greetings!
In opengraph_meta.module
121 '#attributes' => array('class' => 'opengraph-thumbs-wrapper clearfix'),
should be:
121 '#attributes' => array('class' => array('opengraph-thumbs-wrapper','clearfix')),
or you get this when you edit a node:
Warning: array_merge(): Argument #1 is not an array in array_merge() (line 4044 of /var/lib/drupal-7.12/includes/form.inc).
Rightfully so! It isn't an array.
Thank for your work!!
Chad Matsalla
Comment | File | Size | Author |
---|---|---|---|
#6 | opengraph_meta-1427430-6.patch | 973 bytes | joostvdl |
Comments
Comment #1
alfaiataria CreditAttribution: alfaiataria commentedI'm getting the warning and I tried to edit the opengraph_meta.module (copy/pasted, double checked) but I got an internal 500 error after the changes.
Any ideas why?
Comment #2
Goekmen CreditAttribution: Goekmen commentedI think there is a missing bracket:
'#attributes' => array('class' => array('opengraph-thumbs-wrapper','clearfix')),
The fix worked for me!
Comment #3
candotri CreditAttribution: candotri commentedGood call people. I was sloppy with cutting and pasting.
Comment #4
carl.brown CreditAttribution: carl.brown commentedI too was getting this same problem, only the PHP error read slightly differently, so it took me a while to find this issue:
I've updated the title to make this issue easier to find in search engines (to hopefully save someone else the same headache I've just had!).
Thanks for the fix, it works perfectly now.
Comment #5
candotri CreditAttribution: candotri commentedHi Everyone,
I added the missing ")" in the original post to make sure that copy-and-paste'rs are getting the correct code.
Chad Matsalla
Comment #6
joostvdl CreditAttribution: joostvdl commentedPatch attached
Comment #7
larowlanWorks for me
Comment #8
richardj CreditAttribution: richardj commentedWorks for me
Comment #9
dcolin CreditAttribution: dcolin commentedWorks for me too ! Thx a lot.
Comment #10
karc2009 CreditAttribution: karc2009 commentedYour are my hero!
Comment #11
jlea9378 CreditAttribution: jlea9378 commentedsetting title back
Comment #12
bryancasler CreditAttribution: bryancasler commented#6 worked for me
Comment #13
nicholasThompson#6 also worked for me too. Please commit and tag a 1.3 :-)
Comment #14
Cameron Tod CreditAttribution: Cameron Tod commentedWould love a 1.3 with this in it :)
Comment #15
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedStrictly speaking #6 needs work because a space is missing after comma otherwise it looks good to commit :-)
Comment #15.0
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedAdded the missing ")"
Comment #17
torotil CreditAttribution: torotil at more onion commentedThis has been fixed for a long time.