Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Customer Login getting Fatal error - Call to undefined method setSameSite() #23

Open
WebDweller opened this issue Jan 8, 2021 · 1 comment

Comments

@WebDweller
Copy link

WebDweller commented Jan 8, 2021

Hello,

After installing the extension, this error appears when Customer Login is attempted.

Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Stdlib\Cookie\PublicCookieMetadata::setSameSite() in /home/customer/www/mysomesite.com/public_html/app/code/Veriteworks/CookieFix/Plugin/SwitchSameSite.php:67 Stack trace: #0 /home/customer/www/mysomesite.com/public_html/vendor/magento/framework/Interception/Interceptor.php(121): Veriteworks\CookieFix\Plugin\SwitchSameSite->beforeSetPublicCookie(Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor), 'private_content...', '07c029ee82b5d34...', Object(Magento\Framework\Stdlib\Cookie\PublicCookieMetadata)) #1 /home/customer/www/mysomesite.com/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor->Magento\Framework\Interception\{closure}('private_content...', '07c029ee82b5d34...', Object(Magento\Framework\Stdlib\Cookie\PublicCookieMetadata)) #2 /home/customer/www/mysomesite.com/public_html/generated/code/Magento/Framework/Stdlib/Cookie/PhpCookieManager/In in /home/customer/www/mysomesite.com/public_html/app/code/Veriteworks/CookieFix/Plugin/SwitchSameSite.php on line 67

Magento Community 2.3.6
CookieFix latest version installed today
HTTPS is enabled

Checked on:
Mozilla Firefox: 84.0.2 (32-bit)
Microsoft Edge: Version 87.0.664.66 (Official build) (64-bit)
Chrome: Version 87.0.4280.88 (Official Build) (64-bit)

@WebDweller WebDweller changed the title Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Stdlib\Cookie\PublicCookieMetadata::setSameSite() On Customer Login getting Fatal error - Call to undefined method setSameSite() Jan 8, 2021
@HirokazuNishi
Copy link
Contributor

@WebDweller Magento2.3.x doesn't have official same site cookie implementation. Do not install latest codes into 2.3.x. Please install 2.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants