Cakephp upgrade 3.5.18 to 3.6 error

Hi , i am upgrading cakephp from 3.5.18 to 3.6 but i am getting the following warning

[ Deprecated (16384)](javascript:void(0);): Use Cake\Http\ServerRequest instead of Cake\Network\Request. - C:\wamp64\www\develop\vendor\composer\ClassLoader.php, line: 444 You can disable deprecation warnings by setting Error.errorLevel to E_ALL & ~E_USER_DEPRECATED in your config/app.php. [ CORE\src\Core\functions.php , line 311 ]

When i go to see the file classLoader.php then there is following code on Line 444

include $file;

i am upgrading via composer

composer require --update-with-dependencies “cakephp/cakephp:3.6.*”

in your app / bootstrap find

and replace with

Cake\Http\ServerRequest

also: Request::addDetector. to ServerRequest::addDetector

1 Like

I managed to upgrade to 3.6 but deprecations warnings are there which i need to fix perhapse manually
Following steps worked for me

  1. Existing folder of cakephp 3.5
  2. create new folder for 3.6 installation ```

composer create-project --prefer-dist cakephp/app:^3.6 my_app_name

  1. Used winmerge and copied the missing folder/Files to 3.6 folder

read: https://book.cakephp.org/3/en/appendices/3-6-migration-guide.html

1 Like

Normally in logs/debug.log you should find more details about where in you app (not in the vendor folder) is using Cake\Network\Request, see the stacktrace