Octolapse not working with DSLR camera

Octolapse isn't working with my camera. I can manually trigger my camera (Canon EOS 1300d) using gphoto2 code in terminal and /home/pi/scripts/take-snapshot.sh 1 1 "" "/home/pi/scripts" "" "/home/pi/scripts/test.jpg" command but when I test run octolapse the snapshots fail and it says The 'DSLR - Snapshot Camera Script' process returned errors. See plugin_octolapse.log for details

Please can someone help.
thanks

Its working now, the visudo code was wrong