EEConf 2024 is around the corner! EEConf 2024
When I navigate to admin.php?/cp/members/profile/consent
I receive an error:
Error Caught
Call to a member function format() on null
ee/ExpressionEngine/View/account/consents.php:52
Stack Trace: Please include when reporting this error
#0 system\ee\ExpressionEngine\Service\View\View.php(137): include()
#1 system\ee\ExpressionEngine\Service\View\View.php(106): ExpressionEngine\Service\View\View->parse('D:\\webdev\\EE-De...', Array)
#2 system\ee\legacy\libraries\View.php(40): ExpressionEngine\Service\View\View->render(Array)
#3 system\ee\legacy\libraries\Cp.php(339): View->render('account/consent...', Array, false)
#4 system\ee\ExpressionEngine\Controller\Members\Profile\Consent.php(178): Cp->render('account/consent...', Array)
#5 [internal function]: ExpressionEngine\Controller\Members\Profile\Consent->index()
#6 system\ee\ExpressionEngine\Core\Core.php(255): call_user_func_array(Array, Array)
#7 system\ee\ExpressionEngine\Core\Core.php(111): ExpressionEngine\Core\Core->runController(Array)
#8 system\ee\ExpressionEngine\Boot\boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#9 admin.php(144): require_once('D:\\webdev\\EE-De...')
#9 admin.php(144): require_once('D:\\webdev\\EE-De...')
Running an upgraded version of EE 6.1.6 on localhost on Windows 10 Pro.
Upgraded from EE 3.5.17 with one-click updater.
I have set Require user consent to set cookies?
setting both on and off.
Tried on PHP versions 7.2.34 and 7.4.0.
Am I missing something or is it a bug?
I found it…
In CP -> Settings -> Consent Requests
two of the standard consent requests Performance Cookies
and Targeting Cookies
are missing.
And, maybe more significant, the Functionality Cookies
had no data in the Request
field.
After copying data from the Functionality Cookies -> Request
field from a fresh EE6 install and pasting it into the Functionality Cookies -> Request
field of my upgraded EE6 install, the error vanished.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.