When I search my site with the search module it gives the following warning:

warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in C:\wamp\www\drupal-6.15\includes\module.inc on line 462.

This message comes up once for each of the results displayed (ex. if the search displays 5 results that exact error message, with no variation, will be displayed 5 times). The results are all displaying correctly, its just there is a big red box of warnings at the top of the results page. How can I fix this?

I have checked line 462 of module.inc but can't seem to understand the problem. I have also searched but have not come across an issue which resolves this particular error message.

Comments

eftho’s picture

Status: Active » Closed (fixed)

Just found another node discussing the same issue.

francisconi.org’s picture

I solved simply by replacing in /modules/comment/comment.module

function comment_nodeapi(&$node, $op, $arg = 0) {

by:

function comment_nodeapi($node, $op, $arg = 0) {

which is what Mr. drasgardian proposed that the application of the patch did not work and node_search_php53_fix.patch spoiling me

superxain’s picture

Version: 6.15 » 6.19
Component: search.module » comment.module
Status: Closed (fixed) » Needs work

I found the problem with 6.19, with faceted search module installed.

botris’s picture

Faceted search problem is mentioned (not yet fixed) here: http://drupal.org/node/913558

markivbagav’s picture

Yeah .. its really working... nice...
thanks .

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.