I was creating some collections and fieldset when statamic suddenly gave an error 'Call to a member function in()'. After I refreshed the error disappeared but the website kept refreshing, when it refreshes, it gives no errors or information (check both valet and statamic project log).

When I use php please i get the full 'Call to a member function in()' error, shown below. Can anyone help me out here, because I have no idea at all, what is wrong.


[2018-01-29 23:23:50] dev.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function in() on null in 
Answered by Rick van der Burg! Go to answer.