Viewport render is correct while rendering scene shows materials as white
One of the objects was hidden in the view but visible in the render  , you have to uncheck the camera icon in the outliner :



the render layer didn't include all scene layers, excluding some objects from the final render, for this you have to check these layers in the render-layers tab :