Steps to reproduce:
- Install Cloudinary
- Install Static Publish Queue
- run
sake dev/tasks/SilverStripe-StaticPublishQueue-Task-StaticCacheFullBuildTask
- run
sake dev/tasks/ProcessJobQueueTask
results in error:
error-log.ERROR: Cookie 'alc_enc' can't be set. The site started outputting content at line 108 in /var/www/html/vendor/silverstripe/framework/src/Dev/TaskRunner.php {"exception":"[object] (LogicException(code: 0): Cookie 'alc_enc' can't be set. The site started outputting content at line 108 in /var/www/html/vendor/silverstripe/framework/src/Dev/TaskRunner.php at /var/www/html/vendor/silverstripe/framework/src/Control/CookieJar.php:181)"} []
[2025-03-13T12:40:48.359764+13:00] error-log.WARNING: Job paused at 2025-03-13 12:40:48 [] []
I've tried to track down what causes this in the Cloudinary module, but cannot find it. However, queuing the build task (instead of running it) does not produce the error, ie.
- queue
sake dev/tasks/queue/SilverStripe-StaticPublishQueue-Task-StaticCacheFullBuildTask
- then run
sake dev/tasks/ProcessJobQueueTask
appears to work fine.
Also, if I add the following to _config.php, it suppresses the error - maybe this is all that's needed somewhere in the Cloudinary module, I'm just not sure where.
use SilverStripe\Control\Cookie;
Cookie::config()->set('report_errors', false);
Hoping someone can help with this, as this bug is currently causing each build job triggered by a page republish to result in that error and fail. Is it ok to simply leave the Cookie::config()->set('report_errors', false); setting in my _config.php or is this a bad idea?
Steps to reproduce:
sake dev/tasks/SilverStripe-StaticPublishQueue-Task-StaticCacheFullBuildTasksake dev/tasks/ProcessJobQueueTaskresults in error:
I've tried to track down what causes this in the Cloudinary module, but cannot find it. However, queuing the build task (instead of running it) does not produce the error, ie.
sake dev/tasks/queue/SilverStripe-StaticPublishQueue-Task-StaticCacheFullBuildTasksake dev/tasks/ProcessJobQueueTaskappears to work fine.
Also, if I add the following to
_config.php, it suppresses the error - maybe this is all that's needed somewhere in the Cloudinary module, I'm just not sure where.Hoping someone can help with this, as this bug is currently causing each build job triggered by a page republish to result in that error and fail. Is it ok to simply leave the
Cookie::config()->set('report_errors', false);setting in my_config.phpor is this a bad idea?