Title: WP Import All CLI support
Last modified: July 21, 2020

---

# WP Import All CLI support

 *  Resolved [drsdre](https://wordpress.org/support/users/drsdre/)
 * (@drsdre)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wp-import-all-cli-support/)
 * We would like to use this add-on running the import job with a CLI job. Unfortunately
   it errors out with the following message:
 *     ```
       PHP Fatal error:  Uncaught Error: Call to a member function can_update_meta() on null in /home/website/web/website.com/public_html/wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php:310
       Stack trace:
       #0 /home/website/web/website.com/public_html/wp-content/plugins/wpml-all-import/includes/rapid-addon.php(399): yoast_seo_addon_import(182749, Array, Object(PMXI_Import_Record), Array, Object(Closure))
       #1 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/models/import/record.php(3093): RapidAddon->import(Array, Array)
       #2 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/models/import/record.php(372): PMXI_Import_Record->process('<?xml version="...', Object(Closure), 2, true, '/pmxi_records', 1, Object(cli\progress\Bar))
       #3 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/classes/cli.php(84): PMXI_Import_Record->execute(Object(Closure))
       #4 [internal function]: PMXI_Cli->run(Array, Array)
       #5 phar:///u in /home/website/web/website.com/public_html/wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php on line 310
       Fatal error: Uncaught Error: Call to a member function can_update_meta() on null in /home/website/web/website.com/public_html/wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php:310
       Stack trace:
       #0 /home/website/web/website.com/public_html/wp-content/plugins/wpml-all-import/includes/rapid-addon.php(399): yoast_seo_addon_import(182749, Array, Object(PMXI_Import_Record), Array, Object(Closure))
       #1 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/models/import/record.php(3093): RapidAddon->import(Array, Array)
       #2 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/models/import/record.php(372): PMXI_Import_Record->process('<?xml version="...', Object(Closure), 2, true, '/pmxi_records', 1, Object(cli\progress\Bar))
       #3 /home/website/web/website.com/public_html/wp-content/plugins/wp-all-import-pro/classes/cli.php(84): PMXI_Import_Record->execute(Object(Closure))
       #4 [internal function]: PMXI_Cli->run(Array, Array)
       #5 phar:///u in /home/website/web/website.com/public_html/wp-content/plugins/yoast-seo-settings-xml-csv-import/yoast-addon.php on line 310
       ```
   
 * I’m suspecting that this is because the add on is not properly instantiated using
   a singleton (according to documentation at [https://www.wpallimport.com/documentation/addon-dev/best-practices/](https://www.wpallimport.com/documentation/addon-dev/best-practices/)).
 * Can this be updated?
 * Thanks,
    Andre
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-import-all-cli-support%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wp-import-all-cli-support/#post-13152043)
 * Hey [@drsdre](https://wordpress.org/support/users/drsdre/),
 * Yes, we plan on updating this add-on to work with WP-CLI, but I do not have an
   ETA for the update.

Viewing 1 replies (of 1 total)

The topic ‘WP Import All CLI support’ is closed to new replies.

 * ![](https://ps.w.org/yoast-seo-settings-xml-csv-import/assets/icon-256x256.png?
   rev=2570192)
 * [WP All Import – Import SEO Settings for Yoast SEO](https://wordpress.org/plugins/yoast-seo-settings-xml-csv-import/)
 * [Support Threads](https://wordpress.org/support/plugin/yoast-seo-settings-xml-csv-import/)
 * [Active Topics](https://wordpress.org/support/plugin/yoast-seo-settings-xml-csv-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yoast-seo-settings-xml-csv-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yoast-seo-settings-xml-csv-import/reviews/)

## Tags

 * [cli](https://wordpress.org/support/topic-tag/cli/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/wp-import-all-cli-support/#post-13152043)
 * Status: resolved