The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\node_export\NodeExport::export() must be of the type array, null given, called in /var/www/mydomain/modules/node_export/src/Form/BulkNodeExport.php on line 105 in Drupal\node_export\NodeExport::export() (line 60 of modules/node_export/src/NodeExport.php).

single from node export works but from bulk export - this error please help I love this module for selected nodes which I want export from view

Comments

hristos created an issue. See original summary.

gaurav.kapoor’s picture

Thanks for raising the issue @hristos. I will work on this as soon as I get time.

gaurav.kapoor’s picture

@hristos Can you share the exact steps to reproduce this issue?

hristos’s picture

select any nodes by Views Bulk Operations in view, choose node export and appears this error

hristos’s picture

StatusFileSize
new97.85 KB

Look at attached file . When click apply to selected items appears The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\node_export\NodeExport::export() must be of the type array, null given, called in /var/www/mydomain/modules/node_export/src/Form/BulkNodeExport.php on line 105 in Drupal\node_export\NodeExport::export() (line 60 of modules/node_export/src/NodeExport.php).
After last update now too.
When click back on browser arrow see second attached file

hristos’s picture

StatusFileSize
new61.8 KB
hristos’s picture

Issue summary: View changes
rasikap’s picture

Assigned: Unassigned » rasikap
rasikap’s picture

Assigned: rasikap » Unassigned
Status: Active » Needs review
StatusFileSize
new543 bytes

Please find the patch that fix this issue.

Thanks!

hristos’s picture

Used Content: Node operations bulk form (Node operations bulk form) in view its ok
Used module : Views Bulk Operations Version: 8.x-3.8 in view - the same error
But it doesn't matter it works
Thanks

sajid_007’s picture

#9 worked for me. Thanks @rasikap

  • rasikap authored 6f5efa6 on 8.x-1.x
    Issue #3150254 by rasikap, hristos: TypeError: Argument 1 passed to...
  • rasikap authored 6f77fa7 on 8.x-1.x
    Issue #3150254 by rasikap, hristos: TypeError: Argument 1 passed to...
gaurav.kapoor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

chuck_theobald’s picture

I am still getting this error on one of my sites. Trying to export using the VBO action Node Export gives a WSOD with "The website encountered an unexpected error. Please try again later."

Log entries as are previously documented. I have confirmed that my site build is using revision 6f77fa7d45940c7c0369f9dc4c2d2a04d05131c8. I suspect that the null rather than an Array is being supplied by something external to this module, perhaps in the VBO interface.

I did find a work-around. Export the desired nodes by Node ID. IMO, it was a brilliant decision to provide that method of export, thank you!

Big caveat: When importing to the target site, be sure the configuration When importing a node that already exists is set to "Create a new node."