How to get Terrain Layers

I have a terrain and I followed this tutorial Painting Our Terrain! - #22 Creating A Survival Horror (Unreal Engine 4) - YouTube, and then at 8:09 I got the error saying "[SM5] (Node LandscapeLayerBlend) Arithmetic between types float3 and float4 are undefined
" after I put in the preview values.

be sure that you are connecting the alpha node (it is a simple A in texture sample ) to the layer blend and not the RGBA node!

Thx for answering, sorry for the late response. I will be back from my holiday in a few days and then I will update you if this works.