---
title: "Content Hub null value during export"
date: "2022-02-24T17:48:22+00:00"
summary:
image:
type: "article"
url: "/drupal-starter-kits/add-ons/content-hub/help/94291-content-hub-null-value-during-export"
id: "82dfccd9-1483-467b-91e9-031c80c83313"
---

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.