simonhamp / laravel-nova-csv-import

The best CSV import component for Laravel Nova
https://novapackages.com/packages/simonhamp/laravel-nova-csv-import
MIT License
168 stars 76 forks source link

Nova experienced an unrecoverable error. #79

Open khawala opened 1 year ago

khawala commented 1 year ago

hello all i got this error when i try to upload the csv file i don't know why it was work before Nova experienced an unrecoverable error. local.ERROR: foreach() argument must be of type array|object, null given {"userId":1,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at ...\vendor\laravel\framework\src\Illuminate\Http\Resources\ConditionallyLoadsAttributes.php:20)

simonhamp commented 1 year ago

@khawala Please if you can share:

It's only possible to investigate these issues with all of this.

khawala commented 12 months ago

@simonhamp hello sir this package was work with me before now whatever i choose as a csv file only after i click on upload and config image i got this error
image i don't have any customization in the import class and this is the csv file users.csv

prakhargvp commented 12 months ago

I'm also getting same issue and not able to find uploaded file in storage directory.

CleanShot 2023-11-07 at 06 52 17

khawala commented 11 months ago

any update

Bibesko commented 11 months ago

Because you have some error on one of the resources. Open the log file on the project and see what it is about, or add public static $canImportResource = false; foreach resource.