You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now if you disable GeoMate and check the same page you will not get any errors but will get null as you are not authenticated.
It appears that the CustomerBehavior registered by Commerce plugin is missing for some reason.
Disabling this part in RedirectService makes it work again:
if ($this->shouldIgnoreUser()) {
GeoMate::log('Redirect ignored because of user credentials (user is either an admin or in a usergroup that was configured to be ignored).', Logger::LEVEL_INFO);
return null;
}
I would guess its related to init order, calling getIdentity() caches the user object before commerce registers the behavior so when user is used in tpl it is missing the required methods and causes the error, changing
Setup:
Add
{{ dump(currentUser.getPrimaryBillingAddress()) }}
totemplates/index.twig
Now open homepage, result:
Now if you disable GeoMate and check the same page you will not get any errors but will get
null
as you are not authenticated.It appears that the
CustomerBehavior
registered byCommerce
plugin is missing for some reason.Disabling this part in RedirectService makes it work again:
I would guess its related to init order, calling
getIdentity()
caches the user object before commerce registers the behavior so when user is used in tpl it is missing the required methods and causes the error, changingto
or
Fixes the issue, but I am not sure how it affects other parts of the plugin.
The text was updated successfully, but these errors were encountered: