Just Updated to the Sep192006 version from the previous, and it generated a conflict with gmap; the following warning message appears:

warning: Missing argument 3 for theme_views_handle_field() in /home/mysite/public_html/modules/views/views.module on line 1272

This was not a problem before updating.

Comments

merlinofchaos’s picture

Status: Active » Fixed

There was a slight change in the API.

Somewhere in the theming functions, there is a call to views_theme('views_handle_field', ...

Add the view (usually $view) as the last argument to that call. It'll fix the problem.

jasonwhat’s picture

Could you show the old code and new side by side?

sym’s picture

This is a problem with PHP 4 for me - it works fine in PHP 5 but breaks in 4 with:

warning: Missing argument 3 for theme_views_handle_field() in /*path/to/site*/modules/views/views.module on line 1272.

fangius’s picture

I'm getting the same error as the previous poster.
Running PHP Version 5.1.4 on XAMPP, latest version of Views module 4.7.0, 02/10/2006 - 02:01, 139.63 KB.
the map displays with the markers and a "warning: Missing argument 3 for theme_views_handle_field() in whatever\modules\views\views.module on line 1272.

yched’s picture

Project: Views (for Drupal 7) »
Version: 4.7.x-1.x-dev »
Status: Fixed » Active

This is a Gmap issue, actually.

$marker_label .= "<p>" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node) . "</p>";

needs to be replaced with

$marker_label .= "<p>" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view) . "</p>";

This is not a proper patch, I don't use this module and have no local copy...

fangius’s picture

Your info is correct, yched. I applied your code to gmap.module (line 1223) and everything works fine.
The err message was 'a bit misleading', I thought the 'somewhere in the theming functions' (by merlinofchaos) belonged to the views module.

suzan24k’s picture

Gmap.module fix worked for me too running PHP 4.4.0.

Thank you.

Suzan

Tobias Maier’s picture

Project: » GMap Module
Version: » 6.x-1.x-dev

you are talking about the gmap.module not googlemap.module?

yched’s picture

@Tobias : Er, right, this is for Gmap and not GoogleMap, thanks for correcting :-)

marcoBauli’s picture

Same problem, but the fix above (already included in latest GMap module version) does not solve the issue:

warning: Missing argument 3 for theme_views_handle_field() in /home/user/public_html/drupal/modules/views/views.module on line 1344.

Running Drupal 4.7.2, Latest Views (v 1.159.2.25) and latest GMap (v 1.49)

help apreciated, thank you

bdragon’s picture

Status: Active » Closed (fixed)

If this is still an issue, reopen the bug please.
Thank you.

--Brandon