Payload error
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3306168. -->
Reported by: [Youcanlearnit](https://www.drupal.org/user/3647537)
Related to !2
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>After disabling DANSE log -module got these errors and white screen on /admin/reports/danse</p>
<pre>Error: Class "Drupal\danse_log\Payload" not found in Drupal\danse\PayloadBase::fromArray() (line 18 of /var/www/html/site/web/modules/contrib/danse/src/PayloadBase.php)<br>#0 /var/www/html/site/web/modules/contrib/danse/src/Entity/Event.php(86): Drupal\danse\PayloadBase::fromArray()<br>#1 /var/www/html/site/web/modules/contrib/danse/src/Plugin/views/field/EventLabel.php(20): Drupal\danse\Entity\Event->getPayload()...</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Enable</p>
<p>1. DANSE Content, danse Log, danse user and the main module.<br>
2. Not sure is this needed, Add to default comments create event: create, publish<br>
3. access to /admin/reports/danse and it is showing log events<br>
4. Uninstall danse log -module<br>
5. clear caches, and try to access to /admin/reports/danse - does not work</p>
<p>ALSO, if running "drush cron" gives error:</p>
<p>TypeError: Drupal\danse\PluginBase::subscriptionKey(): Argument #2 must be of type string, null given, called in /var/www/html/site/web/modules/contrib/danse/modules/content/src/Payload.php on line 68 in Drupal\danse\PluginBase->subscriptionKey() (line 231 of /var/www/html/site/web/modules/contrib/danse/src/PluginBase.php) #0 /var/www/html/site/web/modules/contrib/danse/modules/content/src/Payload.php(68): Drupal\danse\PluginBase->subscriptionKey()</p>
<p><strong>Tried to fix the situation:</strong><br>
1. Enabled the module Danse Log again, and the /admin/reports/danse started to work.<br>
But the site cron is not running, running cron gives the same error message as mentioned above and white screen, so the site is unusable.<br>
2. Uninstalled all Danse modules and the main module, and cron is able to run again</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>
issue