Silverstripe 4
I’m getting a server error when trying to access the default reset password form via the url /Security/lostpassword
Log details: [2021-01-23 22:01:09] error-log.ERROR: Uncaught Exception BadMethodCallException: “Object->__call(): the method ‘forTemplate’ does not exist on ‘SilverStripe\ORM\ArrayList’” at /var/app/current/vendor/silverstripe/framework/src/Core/CustomMethods.php line 54 {“exception”:"[object] (BadMethodCallException(code: 0): Object->__call(): the method ‘forTemplate’ does not exist on ‘SilverStripe\ORM\ArrayList’ at /var/app/current/vendor/silverstripe/framework/src/Core/CustomMethods.php:54)"}
I’m a bit stumped because as far as I am aware I am just trying to access the core reset password form. I am extending the MemberLoginForm though, so could this possibly be causing the error?
mysite.yml
SilverStripe\Core\Injector\Injector:
MemberLoginForm:
class: MyCustomLoginForm
Any help will be greatly appreciated.
Thanks