When enableCsrfProtection is set to false in general.php saving entries with categories or assets causes queue failures:
This is the error that I see when I hover over the failed tasks in dev mode:
session_start(): Cannot send session cookie - headers already sent by (output started at /Applications/MAMP/htdocs/www/project/vendor/craftcms/cms/src/web/Response.php:185)
enableCsrfProtection => falseAnd you鈥檙e definitely not seeing the same error when you re-enable the enableCsrfProtection setting?
Definitely not. I verified in two environments with my project and a brand new project locally.
I鈥檓 not able to reproduce this. Followed your steps to a T and the entry saves just fine 鈥撀營 even tested creating the category directly from within the Categories field鈥檚 selection modal.
We have seen that error before as a result of an Xdebug bug. Can you try disabling that, if you have it installed?
Sorry nevermind, we鈥檙e able to reproduce.
Alright that鈥檚 been fixed for the next release.
To get the fix early, change your craftcms/cms requirement in composer.json to:
"require": {
"craftcms/cms": "dev-develop#c9e1115f941f3b103c99bbfb3014da64f8e03957 as 3.3.0.1",
"...": "..."
}
Then run composer update.
I have experienced same issue on Craft 3.3.7 when csrfTokenName is set to custom value
@intoeetive Can you please post as a new issue with steps to reproduce?
Most helpful comment
Alright that鈥檚 been fixed for the next release.
To get the fix early, change your
craftcms/cmsrequirement in composer.json to:Then run
composer update.