Comments (5)
A new core release will be done soon to revert the change which caused this problem. Until then you can pin the core to 3.9.6.
from footprint.
New 3.9 release has been done.
from footprint.
The 2.x verion of footprint does not work with cakephp 3.x
from footprint.
Same problem here.
Footprint version: 1.2.2
.
After upgrade CakePHP to 3.9.7 from 3.9.6:
1) App\Test\TestCase\Controller\ActionPrioritiesControllerTest::testIndex with data set #0 ('', 4)
Possibly related to RuntimeException: "Infinite recursion. Cannot call get() on Table that is being constructed."
#0 /path/to/project/vendor/cakephp/cakephp/src/ORM/TableRegistry.php(148): Cake\ORM\Locator\TableLocator->get('Users', Array)
#1 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(138): Cake\ORM\TableRegistry::get('Users')
#2 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(165): App\Controller\AppController->_circumventEventManager('getEntityClass')
#3 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(120): App\Controller\AppController->_checkUserInstanceOf(Array)
#4 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(107): App\Controller\AppController->_getUserInstance(Array)
#5 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(78): App\Controller\AppController->_setCurrentUser(Array)
#6 /path/to/project/vendor/muffin/footprint/src/Auth/FootprintAwareTrait.php(57): App\Controller\AppController->_getCurrentUser()
#7 /path/to/project/vendor/cakephp/cakephp/src/Event/EventManager.php(351): App\Controller\AppController->footprint(Object(Cake\Event\Event))
#8 /path/to/project/vendor/cakephp/cakephp/src/Event/EventManager.php(328): Cake\Event\EventManager->_callListener(Array, Object(Cake\Event\Event))
#9 /path/to/project/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php(112): Cake\Event\EventManager->dispatch(Object(Cake\Event\Event))
#10 /path/to/project/vendor/cakephp/cakephp/src/ORM/Table.php(301): Cake\ORM\Table->dispatchEvent('Model.initializ...')
#11 /path/to/project/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php(307): Cake\ORM\Table->__construct(Array)
#12 /path/to/project/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php(260): Cake\ORM\Locator\TableLocator->_create(Array)
#13 /path/to/project/vendor/cakephp/cakephp/src/Datasource/ModelAwareTrait.php(127): Cake\ORM\Locator\TableLocator->get('Users', Array)
#14 /path/to/project/src/Controller/AppController.php(108): Cake\Controller\Controller->loadModel('Users')
#15 /path/to/project/src/Controller/AppController.php(95): App\Controller\AppController->checkOwner()
#16 /path/to/project/vendor/cakephp/cakephp/src/Event/EventManager.php(351): App\Controller\AppController->beforeFilter(Object(Cake\Event\Event))
#17 /path/to/project/vendor/cakephp/cakephp/src/Event/EventManager.php(328): Cake\Event\EventManager->_callListener(Array, Object(Cake\Event\Event))
#18 /path/to/project/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php(112): Cake\Event\EventManager->dispatch(Object(Cake\Event\Event))
#19 /path/to/project/vendor/cakephp/cakephp/src/Controller/Controller.php(673): Cake\Controller\Controller->dispatchEvent('Controller.init...')
#20 /path/to/project/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(115): Cake\Controller\Controller->startupProcess()
#21 /path/to/project/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(94): Cake\Http\ActionDispatcher->_invoke(Object(App\Controller\ActionPrioritiesController))
#22 /path/to/project/vendor/cakephp/cakephp/src/Http/BaseApplication.php(256): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#23 /path/to/project/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\BaseApplication->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#24 /path/to/project/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(164): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#25 /path/to/project/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))
#26 /path/to/project/vendor/ozee31/cakephp-cors/src/Routing/Middleware/CorsMiddleware.php(32): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#27 /path/to/project/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))
#28 /path/to/project/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php(88): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#29 /path/to/project/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))
#30 /path/to/project/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php(100): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#31 /path/to/project/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#32 /path/to/project/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#33 /path/to/project/vendor/cakephp/cakephp/src/Http/Server.php(97): Cake\Http\Runner->run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#34 /path/to/project/vendor/cakephp/cakephp/src/TestSuite/MiddlewareDispatcher.php(201): Cake\Http\Server->run(Object(Cake\Http\ServerRequest))
#35 /path/to/project/vendor/cakephp/cakephp/src/TestSuite/IntegrationTestTrait.php(534): Cake\TestSuite\MiddlewareDispatcher->execute(Array)
#36 /path/to/project/vendor/cakephp/cakephp/src/TestSuite/IntegrationTestTrait.php(414): App\Test\TestCase\Controller\ActionPrioritiesControllerTest->_sendRequest('/v1/action_prio...', 'GET')
#37 /path/to/project/tests/TestCase/Controller/ActionPrioritiesControllerTest.php(53): App\Test\TestCase\Controller\ActionPrioritiesControllerTest->get('/v1/action_prio...')
#38 [internal function]: App\Test\TestCase\Controller\ActionPrioritiesControllerTest->testIndex('', 4)
#39 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestCase.php(1071): ReflectionMethod->invokeArgs(Object(App\Test\TestCase\Controller\ActionPrioritiesControllerTest), Array)
#40 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestCase.php(939): PHPUnit\Framework\TestCase->runTest()
#41 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestResult.php(698): PHPUnit\Framework\TestCase->runBare()
#42 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestCase.php(894): PHPUnit\Framework\TestResult->run(Object(App\Test\TestCase\Controller\ActionPrioritiesControllerTest))
#43 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestSuite.php(755): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#44 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestSuite.php(755): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#45 /path/to/project/vendor/phpunit/phpunit/src/Framework/TestSuite.php(755): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#46 /path/to/project/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(545): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#47 /path/to/project/vendor/phpunit/phpunit/src/TextUI/Command.php(195): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#48 /path/to/project/vendor/phpunit/phpunit/src/TextUI/Command.php(148): PHPUnit\TextUI\Command->run(Array, true)
#49 /path/to/project/vendor/phpunit/phpunit/phpunit(53): PHPUnit\TextUI\Command::main()
#50 {main}
Failed asserting that 500 is between 200 and 204.
from footprint.
Perfect @ADmad. I will be waiting for it, thank you!
from footprint.
Related Issues (20)
- Behaviour works in one model, does not in others HOT 1
- Does not work with Cake 3.5.* HOT 5
- Error on non existent element HOT 1
- Problem with foreign key constraint HOT 6
- CakePHP 3.6.12 Notice - Undefined property: UsersController::$_currentUserViewVar HOT 1
- Changing the _footprint option key HOT 2
- integration with authentication plugin HOT 1
- API Prefix routing error HOT 1
- updated_by field HOT 1
- Upgrade to cake 4.0.0 HOT 2
- Configuration problem HOT 6
- number of bound variables does not match number of tokens HOT 3
- Any way to make Muffin/Footprint work with CakeDC/Api?
- FootprintListener->handleEvent is never called HOT 3
- UnitTesting a controller whose model has footprint, fails under certain condition HOT 2
- Is the Authentication plugin required for this plugin to work? HOT 2
- (1.x) Add a configuration option for the Authentication event name to check HOT 1
- Cake5: Typed static property Muffin\Footprint\FootprintPlugin::$listener must not be accessed before initialization
- CakePHP 5 compatible stable release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from footprint.