Hi,
I want to set up a block mapping all my node locations.

My first problem arise while setting the view style to 'Mapstraction Map'. I'm getting the following error message:

warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/shyrdakadventures/includes/form.inc on line 1207.

Then, under 'Information', it looks like the style output 'mapstraction-views-map.tpl.php (File not found, in folder sites/all/modules/mapstraction_cck/modules/mapstraction_views/), is missing, giving the following error message while clicking on 'Style output' :

warning: file_get_contents(./sites/all/modules/mapstraction_cck/modules/mapstraction_views/mapstraction-views-map.tpl.php) [function.file-get-contents]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/shyrdakadventures/sites/all/modules/views/plugins/views_plugin_display.inc on line 1358.

I'm using the dev version after getting the same problem with the beta.

Will be happy if anyone can help. I like this module.

Cheers

Comments

plopesc’s picture

Hi!

I never have seen this problem while I was developing&testing the module,
¿Can you explain how to reproduce this error message?

Thanks!

dan_metille’s picture

StatusFileSize
new70.66 KB

Hi!

Well, I'm using Acquia Slate (Fusion) as theme. It use also the Skinr module, maybe it has something to do with that?

I've done now a new install and I'm still getting the same warning as above:
file_get_contents(./sites/all/modules/mapstraction_cck/modules/mapstraction_views/mapstraction-views-map.tpl.php) [function.file-get-contents]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/shyrdak2/sites/all/modules/views/plugins/views_plugin_display.inc on line 1358.

And if I click on 'Theme: Information' in my view panel, it says under 'Style output' : mapstraction-views-map.tpl.php (File not found, in folder sites/all/modules/mapstraction_cck/modules/mapstraction_views/) (see screenshoot).

Sorry not to be able to explain better, but I don't have enough experience to give more valuable feedback. Neither I can guess what kind of effect have all this on my view.

There is however one more thing that I've noticed: under my view 'Basic settings' - 'Style: Mapstraction Map' settings, when I enter the wanted 'Dimensions' (888x350) it has no effect and the map always appears with a 400x400 dimension who is given by the brother (inline style).

I could only get ride of this while forcing the inline style with the following css code:

.mapstraction_map[style] {
width: 888px ! important;
height: 350px ! important;
}

Any idea why?

Thanks Plopesc for caring.
.sahaj

chrsnlsn’s picture

I'm running into this issue as well, where is the mapstraction-views-map.tpl.php file that it is looking for? Can't find it in the module anywhere.

edit[I am also using the location module to provide latt and long which is providing the correct values to the view just no values to select from in the mapstraction Geographic fields: (wkt fields) section and the following warning displays.
warning: Invalid argument supplied for foreach() in /www/teach.gov/drupal/includes/form.inc on line 1207.]

Works if I use the mapstraction module but fails with mapstraction cck because of the missing wkt fields.

Thanks for any insight.

plopesc’s picture

Status: Active » Needs work

When I build the Mapstraction CCK module, I was newbie working with Drupal
I needn't to write a tpl.php file and all the test was passed. I have been reading code of other modles and includes a tpl.php file.

I will read more code and docummentation and I will try to fix this issue

Thanks for your collaboration!!

dan_metille’s picture

Status: Needs work » Active

Hi,
when adding a new display in views I'm still getting the warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/shyrdak2/includes/form.inc on line 1207. as soon as I set up the 'Mapstraction Map' as Style. Then the message disappears while updating the Style options.

But if going under 'Theme: Information' it shows that the first Style output file is missing :
mapstraction-views-map.tpl.php (File not found, in folder sites/all/modules/mapstraction_cck/modules/mapstraction_views/), following by this warning
warning: file_get_contents(./sites/all/modules/mapstraction_cck/modules/mapstraction_views/mapstraction-views-map.tpl.php) [function.file-get-contents]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/shyrdak2/sites/all/modules/views/plugins/views_plugin_display.inc on line 1358. when clicking on the Style output link.

From this point, it become very difficult to style the map as the fix I applied (see #2) is interfering with my new page.

Could maybe someone tells what are the $ variable to include to mapstraction-views-map.tpl.php?

Thx

chrsnlsn’s picture

sahaj
Download the regular mapstraction module and create a view using that. It contains the tpl file that mapstraction cck is looking for.

plopesc’s picture

Status: Active » Fixed

Hi!

Today I have released the 6.x-1.x-dev module version. The issues included in this list have been fixed:
* Warning in View creation form
* mapstraction-views-map.tpl.php file included

Thanks for your collaboration. Enjoy the module!!

Status: Fixed » Closed (fixed)

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