The circuit is as follows
I'm powering the op-amp from a 9V battery.
It gives me constant 3.6V at the output and it doesn't change with changing the illumination of the diode.
I tried replacing the 1M resistor with 10K and 10R, but it doesn't change anything.
I've double checked the pinout and it appears to be correct based on the datasheets that I can find.
The offset pins are floating in my circuit if this is of importance in this case.
When I swap LF356N with LM258N or CA3140 it works as expected with the output reacting to changes in the illumination.
What am I doing wrong?