You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in the process of testing one of my controllers using the FunctionalTest class. One of my tests makes use of the ::logInWithPermission method. Running this alone causes: TypeError "Return value must be of type bool, null returned.
I tested allowing the null to return, returning true and returning false in the function that produces this error. All of these ends up producing SilverStripe\Core\Injector\InjectorNotFoundException: Class SilverStripe\Versioned\RecursiveStagesInterface does not exist
I have silverstripe/versioned installed via composer so I am not sure why this next error is occuring.
I am providing a PR with this, I believe the config should return false on default in this scenario. The InjectionNotFoundException I am not sure about though.
Additional Context
This is a custom silverstripe install without the cms as we are not using Pages
1) Ordino\Lib\Tests\OControllerTests::testCheckUserPerms
TypeError: SilverStripe\ORM\Connect\DBQueryBuilder::shouldBuildTraceComment(): Return value must be of type bool, null returned
1) Ordino\Lib\Tests\OControllerTests::testCheckUserPerms
SilverStripe\Core\Injector\InjectorNotFoundException: Class SilverStripe\Versioned\RecursiveStagesInterface does not exist
SilverStripe\Core\Injector\InjectorNotFoundException: Class SilverStripe\ErrorPage\ErrorPageControllerExtension does not exist in /srv/http/fresh/vendor/silverstripe/framework/src/Core/Injector/InjectionCreator.php:29
Got this error weirdly when doing an update from v5.0. Although it was a caching issue, it gave me a fright. If this issue is still outstanding, can it be merged please 🙂 /cc @GuySartorelli
Module version(s) affected
5.2.7
Description
I am in the process of testing one of my controllers using the
FunctionalTest
class. One of my tests makes use of the::logInWithPermission
method. Running this alone causes:TypeError "Return value must be of type bool, null returned
.I tested allowing the null to return, returning true and returning false in the function that produces this error. All of these ends up producing
SilverStripe\Core\Injector\InjectorNotFoundException: Class SilverStripe\Versioned\RecursiveStagesInterface does not exist
I have
silverstripe/versioned
installed via composer so I am not sure why this next error is occuring.How to reproduce
Test:
Possible Solution
I am providing a PR with this, I believe the config should return false on default in this scenario. The InjectionNotFoundException I am not sure about though.
Additional Context
This is a custom silverstripe install without the cms as we are not using Pages
Expand to see stack trace
Expand to see stack trace
Fresh install with similar composer:
Expand to see stack trace
Expand to see composer.json
composer (fresh):
Validations
silverstripe/installer
(with any code examples you've provided)PRs
The text was updated successfully, but these errors were encountered: