# Cake php 7.4 error 

**URL:** <https://discourse.cakephp.org/t/cake-php-7-4-error/10546>\
**Category:** Need Help\
**Created:** [July 28, 2022, 8:34pm UTC](https://discourse.cakephp.org/t/cake-php-7-4-error/10546 "2022-07-28T20:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amoahjeff2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@amoahjeff2](https://discourse.cakephp.org/u/amoahjeff2)\
**Post date:** [July 28, 2022, 8:34pm UTC](https://discourse.cakephp.org/t/cake-php-7-4-error/10546/1 "2022-07-28T20:34:33Z")

</div>

I uploaded a website running on php 7.4 version but this is the error i get

**Fatal error** : Uncaught Error: Unknown named parameter $subject in /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Utility/ObjectCollection.php:129 Stack trace: #0 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Event/CakeEventManager.php(244): ObjectCollection-\>trigger() #1 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Controller/Controller.php(682): CakeEventManager-\>dispatch() #2 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Error/ExceptionRenderer.php(158): Controller-\>startupProcess() #3 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Error/ExceptionRenderer.php(95): ExceptionRenderer-\>\_getController() #4 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Error/ErrorHandler.php(126): ExceptionRenderer-\>\_\_construct() #5 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Error/ErrorHandler.php(269): ErrorHandler::handleException() #6 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Error/ErrorHandler.php(212): ErrorHandler::handleFatalError() #7 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Core/App.php(970): ErrorHandler::handleError() #8 /home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Core/App.php(943): App::\_checkFatalError() #9 [internal function]: App::shutdown() #10 {main} thrown in **/home/ceedghan/domains/ceedghana.org/public\_html/admin/lib/Cake/Utility/ObjectCollection.php** on line **129**

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [July 28, 2022, 8:44pm UTC](https://discourse.cakephp.org/t/cake-php-7-4-error/10546/2 "2022-07-28T20:44:40Z")

</div>

This seems to be a very old CakePHP 2 application.  
See [php-8.0-compat: fix "Error: Unknown named parameter $subject" · cakephp/cakephp@d201312 · GitHub](https://github.com/cakephp/cakephp/commit/d201312a0ecc584410410ae458ff2d71b3ef3d7e) for the explenation why this error happens.

The solution for you is to update to at least CakePHP 2.10.23 because in there the fix is present for your problem.

But I have to remind you (If you haven’t already noticed) - CakePHP 2 is EOL since **June 15, 2021**

Even CakePHP 3 EOL is coming nearer which is December 15, 2022

So I would highly recommend you to try a rework of your app in the current latest CakePHP 4.4 to be up2date

---

<div class="post-metadata">

**Author:** ![amoahjeff2](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@amoahjeff2](https://discourse.cakephp.org/u/amoahjeff2)\
**Post date:** [August 1, 2022, 10:27am UTC](https://discourse.cakephp.org/t/cake-php-7-4-error/10546/3 "2022-08-01T10:27:26Z")

</div>

Well noted but with the change of the lib folder to the current version should fix the issue. It works perfectly on my local. But i get that error when i upload it online

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [August 1, 2022, 10:43am UTC](https://discourse.cakephp.org/t/cake-php-7-4-error/10546/4 "2022-08-01T10:43:36Z")

</div>

It would be good to tell us that error then… Can’t really tell that out of the blue
