Event ECA Cron Event getting error "function get() on null"
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3460404. --> Reported by: [muaz7731](https://www.drupal.org/user/3392254) Related to !438 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Error: Call to a member function get() on null in Drupal\Core\Cache\CacheCollector-&gt;lazyLoadCache() (line 352 of /home/user/public_html/web/core/lib/Drupal/Core/Cache/CacheCollector.php).</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>1. Add new model<br> 2. Add event "ECA cron event"<br> 3. Save, will getting "Oops error"<br> 4. Go to Recent log messages, and getting the above error</p> <p>Additional note: I am using Drupal ver 10.3.1 and PHP 8.1</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3437321](https://www.drupal.org/node/3437321)
issue