This error occurs on line 915 in Openlayers.js.

If you get this error when using the moveTo method of an OpenLayers.Marker object  set the map on the marker first.

e.g.

mymarker.map = map ;
mymarker.moveTo(opx ) ;