We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error Consent settings (Bug?)

News and General

Zignature's avatar
Zignature
28 posts
4 years ago
Zignature's avatar Zignature

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?

       
Yuri's avatar
Yuri
315 posts
4 years ago
Yuri's avatar Yuri

@Zignature it looks like for some reason the create_date on your consent version is set to NULL.

So far, I don’t have any ideas why this could have happened. Did you spot any errors elsewhere on your system that might be related?

       
Zignature's avatar
Zignature
28 posts
4 years ago
Zignature's avatar Zignature

Didn’t spot any errors…

And create_date in exp_consent_request_versions is set to 1637419690 which is a fine timestamp.

In exp_consent_request_version_cookies there aren’t any entries. No rows at all. Could that be the problem?

       
Zignature's avatar
Zignature
28 posts
4 years ago
Zignature's avatar Zignature

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.

       
Yuri's avatar
Yuri
315 posts
4 years ago
Yuri's avatar Yuri

That’s certainly not expected. Was this an update or fresh install? If an update, which version did you update from?

       
Zignature's avatar
Zignature
28 posts
4 years ago
Zignature's avatar Zignature

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.

As mentioned in the original post 😉

       
Zignature's avatar
Zignature
28 posts
4 years ago
Zignature's avatar Zignature

There was a glitch during the upgrade process when it reached around v6.

The page didn’t refresh and stopped. I manually refreshed the page with F5. After that the process continued.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.