Strict warning: Declaration of entityreference_plugin_row_fields::pre_render() should be compatible with views_plugin_row::pre_render(&$result) in _registry_check_code() (line 36 of entityreference_plugin_row_fields.inc).

Called from /var/aegir/platforms/7/servers/sng-contrib/sng-oa-2.51/includes/bootstrap.inc, line 3228

I get this randomly on my site on pages that deploy entityreference

Comments

SocialNicheGuru created an issue. See original summary.

howards’s picture

Status: Active » Needs review
StatusFileSize
new768 bytes

I was getting this same error too. Simple patch attached which worked for me.

socialnicheguru’s picture

Status: Needs review » Reviewed & tested by the community

Had to run drush registry-rebuild but it seemed to work

minoroffense’s picture

Added PHP5.6 test to see if warnings are resolved or not.

donquixote’s picture

Status: Reviewed & tested by the community » Needs work

Please be careful with this! It seems that Views itself has changed this code over time.
http://cgit.drupalcode.org/views/log/plugins/views_plugin_row.inc
http://cgit.drupalcode.org/views/commit/plugins/views_plugin_row.inc?id=...
http://cgit.drupalcode.org/views/commit/plugins/views_plugin_row.inc?id=...

It looks like the latest version in Views is without the "&".

This would mean that all you need to make this go away is update Views.