I build the module search index, and I get the following error messages, after the batch operations are concluded.
warning: Parameter 1 to menu_nodeapi() expected to be a reference, value given in /Library/WebServer/Documents/dr63/includes/module.inc on line 462.
warning: Parameter 1 to path_nodeapi() expected to be a reference, value given in /Library/WebServer/Documents/dr63/includes/module.inc on line 462.
warning: Parameter 1 to search_nodeapi() expected to be a reference, value given in /Library/WebServer/Documents/dr63/includes/module.inc on line 462.
warning: Parameter 1 to trigger_nodeapi() expected to be a reference, value given in /Library/WebServer/Documents/dr63/includes/module.inc on line 462.
I am using PHP 5.3, but that doesn't cause Drupal to report such errors in other circumstances.
Comments
Comment #1
avpadernoThe error is shown from the development snapshot too, even during cron tasks. In this case I case a more explicit error that says
hook_nodeapi()should not be invoked throughmodule_invoke(), butnode_invoke_nodeapi().Comment #2
cpliakas commentedConfirmed. Unfortunately node_invoke_nodeapi() is not an option in this case because using it looses the module association with the extra text added to the index. I need to know the module that added the extra text so I can separate out things like taxonomy terms and comments into separate fields as opposed to having them bundled in the body test. I will review node_invoke_nodeapi() to try to implement my functionality in a similar manner without the nasty errors.
Thanks for all the tough love today. It is very much appreciated.
~Chris
Comment #3
cpliakas commentedFixed in commit #301006.