• Resolved drsdre

    (@drsdre)


    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/ ).

    Can this be updated?

    Thanks,
    Andre

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP Import All CLI support’ is closed to new replies.