Loading...


Related Products


Date Published: February 24, 2022

Content Hub null value during export

Issue

Content is exporting in my Production site, but not in my non-Production sites. 

Error 1: Entity configuration settings in non-production site are unselected and reverting back to an unselected state when settings are saved.

Error 2: Manually running the queue passes a null value

drush queue-run acquia_contenthub_export_queue --items-limit=3 --uri=mysite.test-mysubscription.acsitefactory.com
TypeError: Argument 1 passed to Drupal\acquia_contenthub\EntityManager::isEligibleEntity() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /mnt/www/html/mysubscription01test/docroot/modules/contrib/acquia_contenthub/src/Plugin/QueueWorker/ContentHubExportQueueBase.php on line 133 in Drupal\acquia_contenthub\EntityManager->isEligibleEntity() (line 513 of /mnt/www/html/mysubscription01test/docroot/modules/contrib/acquia_contenthub/src/EntityManager.php) #0

Resolution

Ensure that there are no hooks that are overriding the entity configurations.

Checking acquia_contenthub.entity.node to see if something is overriding the database, we can see that when --include-overridden is added, bundles comes back as false, where as the database comes back with an array

$ @mysubscription.01test drush --uri=mysite.test-mysubscription.acsitefactory.com cget acquia_contenthub.entity.node --include-overridden | grep "bundles"
bundles: false

$ @mysubscription.01test drush --uri=mysite.test-mysubscription.acsitefactory.com cget acquia_contenthub.entity.node
{{..SNIP..}}
bundles:
  accessory:
    enable_index: false
    enable_viewmodes: false
    rendering:
      default: default

Check your code especially for Site Factory customers who might have it under the post-settings-php directory.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation