Log message #4159225

# At Username Text
# Jul 15th 2018, 11:30 kitcat711 Bonjour, proud to succeed in my migration from 3.3 to 3.6.7 on my DEV environment, still having some deprecation warnings but less and less
# Jul 14th 2018, 21:05 Martin` oh he is gone already
# Jul 14th 2018, 21:04 martin offcourse :)
# Jul 14th 2018, 16:26 mr_smith anyone here?
# Jul 14th 2018, 16:18 admad The result was a forgone conclusion bit good job predictioning the score :slightly_smiling_face:
# Jul 14th 2018, 15:42 josbeir @neon1024 you are going to be right
# Jul 14th 2018, 15:42 josbeir :flag-be: :flag-be: :soccer: :soccer:
# Jul 14th 2018, 15:35 ando_suguru @admad Yes, it was placed in `src / Api / Crud / Action / Users / TokenAction.php`. I could not solve this solution properly, but I could solve it by specifying a namespace and a path to `autolaod` in composer.json. Thank you very much!
# Jul 14th 2018, 14:30 admad your file should be `src/Api/Crud/Action/Users/TokenAction.php`
# Jul 14th 2018, 14:28 admad are you sure you have put the action class file in proper location according to your namespace?
# Jul 14th 2018, 14:28 admad nvm, it will be same as what you have.
# Jul 14th 2018, 14:24 admad @ando_suguru `$this->Crud->mapAction('token', ['className' => '\App\Api\Crud\Action\Users\TokenAction']);`
# Jul 14th 2018, 14:14 ando_suguru https://gist.github.com/sktbcbbs/73cefa1e8c910edd3fb70c934ce92652
# Jul 14th 2018, 14:06 ando_suguru @admad I understand. Sorry.
# Jul 14th 2018, 14:05 admad @ando_suguru please use gist or pastebin in future instead of spamming the channel with a wall of code
# Jul 14th 2018, 14:04 josbeir also :soccer: :soccer: :soccer:
# Jul 14th 2018, 14:04 josbeir spam much
# Jul 14th 2018, 14:04 josbeir wow wtf
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/webroot/index.php(40): Cake\Http\Server->run() #23 {main} ```
# Jul 14th 2018, 13:55 slackebot Object(Cake\Http\Runner)) #20 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #21 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Server.php(98): Cake\Http\Runner->run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #22
# Jul 14th 2018, 13:55 ando_suguru #18 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php(53): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #19 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): DebugKit\Middleware\DebugKitMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response),
# Jul 14th 2018, 13:55 slackebot Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot #16 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php(98): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #17 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response),
# Jul 14th 2018, 13:55 slackebot #14 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php(88): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #15 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\AssetMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot #12 /Users/beyond-system/GitRepositories/yakushima-api/vendor/ozee31/cakephp-cors/src/Routing/Middleware/CorsMiddleware.php(31): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #13 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cors\Routing\Middleware\CorsMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(157): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #11 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\RoutingMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/BaseApplication.php(232): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #9 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\BaseApplication->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner)) #10
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/ControllerFactory.php(46): ReflectionClass->newInstance(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #7 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(91): Cake\Http\ControllerFactory->create(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #8
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(295): Crud\Controller\Component\CrudComponent->action('token') #2 /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(405): Crud\Controller\Component\CrudComponent->enable('token') #3
# Jul 14th 2018, 13:55 slackebot /Users/beyond-system/GitRepositories/yakushima-api/src/Controller/Api/UsersController.php(43): Crud\Controller\Component\CrudComponent->mapAction('token', Array) #4 /Users/beyond-system/GitRepositories/yakushima-api/vendor/cakephp/cakephp/src/Controller/Controller.php(272): App\Controller\Api\UsersController->initialize() #5 [internal function]: Cake\Controller\Controller->__construct(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response)) #6
# Jul 14th 2018, 13:55 ando_suguru *logs/error.log* ``` 2018-07-14 22:31:52 Error: [Error] Class 'App\Api\Crud\Action\Users\TokenAction' not found Request URL: /api/users/token Stack Trace: #0 /Users/beyond-system/GitRepositories/yakushima-api/vendor/friendsofcake/crud/src/Controller/Component/CrudComponent.php(281): Crud\Controller\Component\CrudComponent->_loadAction('token') #1
# Jul 14th 2018, 13:55 slackebot public function initialize() { parent::initialize(); $this->Crud->mapAction('add', 'Crud.Add'); $this->Crud->mapAction('delete', 'Crud.Delete'); $this->Crud->mapAction('edit', 'Crud.Edit'); $this->Crud->mapAction('index', 'Crud.Index'); $this->Crud->mapAction('token', '\App\Api\Crud\Action\Users\TokenAction'); // get error here $this->Crud->mapAction('view', 'Crud.View'); } } ```
# Jul 14th 2018, 13:55 ando_suguru *src/Controller/Api/UsersController.php:* ``` <?php namespace App\Controller\Api; use Cake\Event\Event; /** * Users Controller * * @property \App\Model\Table\UsersTable $Users * * @method \App\Model\Entity\User[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class UsersController extends AppController { /** * Initialization hook method. * * @return void */
# Jul 14th 2018, 13:55 ando_suguru *src/Action/Users/TokenAction.php:* ``` <?php namespace App\Api\Crud\Action\Users; class TokenAction extends \Crud\Action\BaseAction { // Processing related to authentication } ```
# Jul 14th 2018, 13:54 ando_suguru Hello! ! * If the question on this workspace or channel is inappropriate, please tell me where to ask the appropriate questions. I am having this problem, but is there any solution? https://github.com/FriendsOfCake/crud/issues/568 The same error occurs even if `composer dump-autoload` is executed. The code is as follows.
# Jul 14th 2018, 13:52 kitcat711 and just to be sure: the seetings is done in the default.ctp file?
# Jul 14th 2018, 13:46 kitcat711 josbeir : ok, I just want to make it like the "non pre-existing" template in 3.4 :)
# Jul 14th 2018, 13:41 admad what changed in breadcrumbshelper between 3.5 and 3.6?
# Jul 14th 2018, 13:39 josbeir funny thing is, when migrating to 3.6 i found that updating breadcrumbhelper was the most 'repetitive' work i had during migration :)
# Jul 14th 2018, 13:39 josbeir override the templates, see the breadcrumbshelper class
# Jul 14th 2018, 13:39 josbeir but its easily changable