<br>Hi solve it!<div><br></div><div>To avoid this error it&#39;s important add the &#39;vendorParams&#39; like this example:</div><div><br></div><div><div>info = new OpenLayers.Control.WMSGetFeatureInfo(</div><div>  {url: &#39;<a href="http://localhost:9000/cgi-bin/mapserv.exe">http://localhost:9000/cgi-bin/mapserv.exe</a>&#39;,</div>
<div>   title: &#39;Identify features by clicking&#39;,</div><div>   layers: [Layer1, Layer2],</div><div>   queryVisible: true,</div><div>   <b>vendorParams: {map: &#39;/ms4w/apps/mapserv-demo/mapfile.map&#39;}</b>,</div>
<div>   eventListeners: {&#39;getfeatureinfo&#39;: function(event) {</div><div>                                                     map.addPopup(new OpenLayers.Popup.FramedCloud(&quot;chiken&quot;,</div><div>                                                                                                                                  map.getLonLatFromPixel(event.xy),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                        </span> <span class="Apple-tab-span" style="white-space:pre">                                                        </span>  null,<span class="Apple-tab-span" style="white-space:pre">                                </span> <span class="Apple-tab-span" style="white-space:pre">                                                                                </span>                                                          event.text,</div>
<div>                                                                                                                                  null,</div><div><span class="Apple-tab-span" style="white-space:pre">                                                                        </span> <span class="Apple-tab-span" style="white-space:pre">                                                        </span>  true));}});</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div>  map.addControl(info);</div><div>   info.activate();</div></div>