![]() |
Notice: Undefined property: Config \ App :: $ cookieSameSite - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Notice: Undefined property: Config \ App :: $ cookieSameSite (/showthread.php?tid=78693) |
Notice: Undefined property: Config \ App :: $ cookieSameSite - Smirnov48 - 02-27-2021 Hello. Why appears this notice? Notice: Undefined property: Config\App::$cookieSameSite in C:\xampp\r_crm\vendor\codeigniter4\codeigniter4\system\HTTP\Response.php on line 168 Tested on my local machine. Xampp, Spark, it is in both. I was fix it by adding this line to App.php public $cookieSameSite = ''; But I don't understand what's happening at all. Help me, please. PS. Solution from https://forum.codeigniter.com/thread-76585.html?highlight=cookieSameSite doesn't work. PSS. I found this site with same notice - https://www.qio.kr/ RE: Notice: Undefined property: Config \ App :: $ cookieSameSite - Smirnov48 - 02-27-2021 I understood a little! When I do "composer update" App folder doesn't update and file .env too. I took new .env and app\Config\App.php, and it's work. RE: Notice: Undefined property: Config \ App :: $ cookieSameSite - InsiteFX - 02-27-2021 I am running the CodeIgniter 4 develop version and it runs fine that key should be. PHP Code: public $cookieSameSite = 'Lax'; If your on an older version of CodeIgniter 4 that could be why your getting that error. RE: Notice: Undefined property: Config \ App :: $ cookieSameSite - kenjis - 02-27-2021 It must be a bug. RE: Notice: Undefined property: Config \ App :: $ cookieSameSite - kenjis - 02-28-2021 I sent PR: https://github.com/codeigniter4/CodeIgniter4/pull/4371 This notice is a bug, but it is better you add new config items to your Config/App.php. |