Log message #4203847

# At Username Text
# Sep 18th 2019, 13:27 alexdd55976 i expected something like that... this a lot of weird stuff going on with those tests
# Sep 18th 2019, 13:26 neon1024 Not too sure then, sorry
# Sep 18th 2019, 13:26 alexdd55976 all tests look like that. All unit tests are fine, no errors
# Sep 18th 2019, 13:26 alexdd55976 ```2) LoginCest: Login with invalid user Test tests\acceptance\LoginCest.php:loginWithInvalidUser [Error] Class 'AcceptanceTester' not found```
# Sep 18th 2019, 13:26 alexdd55976 yes
# Sep 18th 2019, 13:25 neon1024 ..and you run with `vendor/bin/codecept run`
# Sep 18th 2019, 13:24 alexdd55976 ```actor: AcceptanceTester paths: tests: / output: _output data: _data support: _support envs: _envs modules: enabled: - PhpBrowser - \Helper\Acceptance```
# Sep 18th 2019, 13:24 neon1024 I’m using `"codeception/codeception": "^2.5"`
# Sep 18th 2019, 13:23 neon1024 Also check the paths in your codeception.yml
# Sep 18th 2019, 13:23 neon1024 Well AcceptanceTester is declared in acceptance.suite.yml
# Sep 18th 2019, 13:22 alexdd55976 seems to be fine. unit tests are running fine. acceptance tests keep missing the class
# Sep 18th 2019, 13:21 neon1024 I would check your Codeception bootstrap file, and that your composer is loading the correct things
# Sep 18th 2019, 13:17 alexdd55976 there is no hint
# Sep 18th 2019, 13:16 alexdd55976 possible.. but no idea how to fix it
# Sep 18th 2019, 13:15 neon1024 This looks like a class autoloader issue to me
# Sep 18th 2019, 13:13 alexdd55976 isn'T that happen automatically? `users/login?redirect=somestuff` should be called if not authorized and after login you get redirected
# Sep 18th 2019, 13:10 jotpe Yes, but i don't want a static redirect. I want to redirect to the requested page
# Sep 18th 2019, 13:09 alexdd55976 @jotpe ```'loginRedirect' => [ 'controller' => 'Pages', 'action' => 'display', 'dashboard' ],```` in your loadComponent
# Sep 18th 2019, 13:08 alexdd55976 i have no idea how to get this working
# Sep 18th 2019, 13:08 jotpe For the Authentication Plugin: How can I redirect to the referer page after successful login? `$this->request->referer()` gives me the login page, since I get redirected to this, if a page needs authentication. F.e. PageXYZ needs Authentication -> Redirect to Login -> Successful Login -> Redirect to PageXYZ
# Sep 18th 2019, 13:08 alexdd55976 ´[Error] Class 'AcceptanceTester' not found´
# Sep 18th 2019, 13:08 alexdd55976 who does have a bit (or more) knowledge of codeception?
# Sep 18th 2019, 13:04 nils @conehead I think that’s for 3.x - however, I think I got it. Thanks tho :slightly_smiling_face:
# Sep 18th 2019, 13:02 jotpe You can try to find a VERSION.txt in vendor folder or so. There you find the CakePHP Version ;)
# Sep 18th 2019, 13:01 chupa ty very much
# Sep 18th 2019, 13:01 chupa Anyways, I'm gonna use the config file and create a new one as per your suggestion. :)
# Sep 18th 2019, 13:00 chupa as for the version, I don't know. The site's using the latest version of CakePHP and of Croogo, but I guess Croogo is being abandoned as a project...
# Sep 18th 2019, 12:59 jotpe https://book.cakephp.org/3.0/en/development/configuration.html#writing-configuration-data
# Sep 18th 2019, 12:59 jotpe You can set variables in app.php, but would be cleaner to add a separate config file and load it
# Sep 18th 2019, 12:59 jotpe Hm. Which Cake Version does Croogo use?
# Sep 18th 2019, 12:56 chupa can i add custom stuff to app.php? All i need is 2 or 3 variables that I use accross the site
# Sep 18th 2019, 12:55 chupa i get the value and can "read" it but then it throws this error on all sites
# Sep 18th 2019, 12:55 chupa yeah, it's all there
# Sep 18th 2019, 12:53 jotpe I'm not into Croogo, but it I guess it's a path error. Is the .env file located in Config folder?
# Sep 18th 2019, 12:44 chupa I'm not entirely sure why it's requesting the Install plugin from Croogo as this is a working site and has been "installed" 2 years ago
# Sep 18th 2019, 12:44 chupa line 403]
# Sep 18th 2019, 12:44 chupa Basically, when I create the .env file and uncomment the block of code in bootstrap.php to enable loading .env files, I get an error: <MY-PROJECT-PATH>/vendor/croogo/croogo/Install/config/routes.php) [<a href='https://secure.php.net/function.include'>function.include</a>]: failed to open stream: No such file or directory [CORE/src/Core/Plugin.php,
# Sep 18th 2019, 12:42 chupa Hey, has anyone done anything with Croogo (Cake CMS)? I've inherited a project and I think it might be messed up. I'm trying to load the .env file and I'm running into some issues.
# Sep 18th 2019, 12:10 conehead @nils Where exactly is the problem? Can't you just set `I18n::locale('en_EN');`?
# Sep 18th 2019, 12:07 jeremy.payne @dereuromark found my issue,t hanks for pointing me in the correct direction ;)
# Sep 18th 2019, 12:05 nils Basically, how can I change the locale before a find so it makes the find in the locale I want. The problem is that the index is being ran 2 times and the second time the locale stays the same even though I’m changing it on the fly.