Everything works as it should, but when sending messages, I get this warning:
Warning: Missing argument 4 for entity_property_verbatim_get(), called in /home/ftp/sites/all/modules/entity/includes/entity.property.inc on line 589 and defined in entity_property_verbatim_get() (Zeile 372 von /home/ftp/sites/all/modules/entity/includes/entity.property.inc).
Warning: Missing argument 5 for entity_property_verbatim_get(), called in /home/ftp/sites/all/modules/entity/includes/entity.property.inc on line 589 and defined in entity_property_verbatim_get() (Zeile 372 von /home/ftp/sites/all/modules/entity/includes/entity.property.inc).
Entity API is on 7.x-1.0-rc2.
Messages are getting sent correctly. Does anybody have an idea what the problem is?
Thanks in advance!
Comment | File | Size | Author |
---|---|---|---|
#5 | privatemsg-update-deprecated-entity-api-calls-1557626-5.patch | 1.31 KB | ptmkenny |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI tracked it a bit down and really spent some time with no significant success. All I can do is provide what I found:
Entity-API has changed. entity_metadata_verbatim_get() is depricated. Privatemsg should use entity_property_verbatim_get() instead. Same for entity_metadata_verbatim_set(). See privatemsg.module @ 2989
Just replacing the callbacks doesn't seem to work.
And a fix might require the latest Drupal version, since there was a bug in entity info caching.
Comment #2
adel-by CreditAttribution: adel-by commentedyou have to empty your cache after replacing the callback.
Comment #3
ptmkenny CreditAttribution: ptmkenny commentedI'm unable to reproduce this using the latest version of Privatemsg and Entity 1.1. The error no longer appears, but the function calls are still deprecated.
Comment #4
ptmkenny CreditAttribution: ptmkenny commentedComment #5
ptmkenny CreditAttribution: ptmkenny commentedAdding patch that replaces the callbacks as per #1. As reported in #2, after clearing the cache, things seem to work. All credit goes to Shnapoo.
Comment #6
ptmkenny CreditAttribution: ptmkenny commentedComment #7
ptmkenny CreditAttribution: ptmkenny commentedComment #8
BerdirCommitted and pushed to 7.x-2.x and 7.x-1.x, thanks!
Comment #9.0
(not verified) CreditAttribution: commented.