I have this error on node view, and it appears also in the errorlog

Comments

rooby’s picture

Can you post the full error (mainly I'm just after the file name and line number of the error).

It is generally a good idea to post the error message into your post as well as the title anyway because someone can change the title down the line and then it makes it hard to search for the problem.

egarias’s picture

Warning: Missing argument 3 for location_node_node_view() en location_node_node_view() (línea 87 de /home/empresa/public_h

This message come from the watchdog, and also appears as errormessage in the page I have no further information, if you give me some indications i could extract more data maybe
I also have this other one in paralel:
Warning: Missing argument 3 for service_links_node_view() en service_links_node_view() (línea 111 de /home/empresa/public_html/sites/all/modules/service_links/service_links.module).

Thanks
Enrique

rooby’s picture

Priority: Major » Normal
Status: Active » Fixed

- Changing priority as it is a warning not an error.

Thanks I found the issue. Seems there is a problem with the documentation for hook_node_view().

If you are still seeing the message:

Warning: Missing argument 3 for service_links_node_view() en service_links_node_view() (línea 111 de /home/empresa/public_html/sites/all/modules/service_links/service_links.module).

then you will want to open an issue for that in the service links issue queue.
For reference in that issue you might want to link to #1102556: hook_node_view (maybe) has only two arguments

Fixed for location_node and location_addanother modules.
http://drupalcode.org/project/location.git/commit/1e998b6

egarias’s picture

Confirmed it works

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.