Just found annoying bug while trying to make LDAP_Views and Views_PHP work together. I don't sure if this is related to LDAP Project, because I used Views_PHP, which is unstable now. But PHP returns errors for dap_views_plugin_query_ldap file, so I put this issue here.

First I created LDAP Query view (display type is Block) and added some LDAP Attributes to Fields. At this point View worked as it supposed to.
Then I added PHP Field with ANY (even empty) code block, and saved my View. Everything still worked fine, i.e. LDAP queries Ok and my PHP has been executed, but Drupal began to display messages:

Notice: Undefined index: views_php_6 in function ldap_views_plugin_query_ldap->execute() (line 277 in file/var/www/html/sites/all/modules/ldap/ldap_views/plugins/ldap_views_plugin_query_ldap.inc).
Notice: Undefined index: views_php_6 in function ldap_views_plugin_query_ldap->execute() (line 324 in file/var/www/html/sites/all/modules/ldap/ldap_views/plugins/ldap_views_plugin_query_ldap.inc).

View seems to work fine, so all I need is to get rid of these annoying messages. Any workaround would be appreciated!

Comments

simon georges’s picture

Status: Active » Closed (duplicate)