Hi,

Clicking Style: Nice map in Views generates this:

An error occurred at /admin/build/views/ajax/display/test/page_2/style_plugin

I also got a Call-time pass-by-reference error on install:

If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in \all\modules\nicemap\nicemap_admin.inc on line 77.

I'm using Drupal 6.6 and 6.x-2.x-dev

Comments

jmiccolis’s picture

Thanks for reporting this. Can you tell me what version of php you are using?

spython’s picture

Both errors are probably caused by a typo in nicemap_admin.inc at line 77:

        _nicemap_layer_style_form(&$form, $l, $settings['layers'], $settings['styles'], $settings['weights'], $bgcolor);

instead of

        _nicemap_layer_style_form($form, $l, $settings['layers'], $settings['styles'], $settings['weights'], $bgcolor);

and in nicemap_views_plugin.inc at line 83:

      _nicemap_layer_style_form(&$form, $l, $this->options['layers'], $this->options['styles'], 

instead of

      _nicemap_layer_style_form($form, $l, $this->options['layers'], $this->options['styles'], 

Anyway, I changed it and it works for me. Great module!

jmiccolis’s picture

Status: Active » Fixed

Thanks to you both for pointing out the problem and it's solution. The fix has been committed.

Status: Fixed » Closed (fixed)

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