Infopath Browser compatible form not getting published

Have you ever come across the error, that says:

"This form template is browser-compatible, but it cannot be browser-enabled on the selected site" .

The reason was we had a Publishing Portal with all the required features enabled out of the box (we did not enable one explicitly before we saw the error). Then we came across the one feature (infact two) which had to be enabled and we did it thru commandline, how? Here is the answer:

STSADM.EXE -o activatefeature -filename IPFSSiteFeatures\feature.xml -url sitecollection_URL -force

STSADM.EXE -o activatefeature -filename IPFSWebFeatures\feature.xml -url sitecollection_URL -force