This question already has an answer here:
I downloaded a free shader setup from a site and after unwrapping it, the texture comes fine in the texture shading viewport. But when I shift to Material, or render shading, the object is just plain black. I cannot seem to understand where the mistake is. I am using cycles render.
When I tried using an another random image texture, there was no problem. I could see the texture in all modes. So idk where I am going wrong with this shader.
Edit: Sorry for being so vague. So I am using Blender Cycles v2.78. I downloaded a wood shader from a site called Chocofur, with the node setup as attached. This is how it looks in Texture Shading.
The node setup:
So I am guessing there is something within the shaders settings.The thing in red in the node setup is probably the problem since it says something isn't defined. I am not very thorough with using nodes and maybe that's why I can't figure it out. I hope I've been clearer this time. Let me know if I need to attach the blend file for reference.