Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: techdivision_import_utils_entityStatus_memberName (4.0.0-alpha.2) #69

Closed
amenk opened this issue Sep 10, 2020 · 7 comments

Comments

@amenk
Copy link

amenk commented Sep 10, 2020

getting this error in 4.0.0-alpha2

PHP Notice:  Undefined index: techdivision_import_utils_entityStatus_memberName in /home/user/example/projects/shop.example.com/vendor/techdivision/import/src/Actions/GenericIdentifierAction.php on line 51
	PHP Fatal error:  Uncaught Error: Method name must be a string in /home/user/example/projects/shop.example.com/vendor/techdivision/import/src/Actions/GenericIdentifierAction.php:54
	Stack trace:
	#0 /home/user/example/projects/shop.example.com/vendor/techdivision/import-category/src/Services/CategoryBunchProcessor.php(1058): TechDivision\Import\Actions\GenericIdentifierAction->persist(Array, NULL)
	#1 /home/user/example/projects/shop.example.com/vendor/techdivision/import-category/src/Observers/CategoryObserver.php(411): TechDivision\Import\Category\Services\CategoryBunchProcessor->persistCategory(Array)
	#2 /home/user/example/projects/shop.example.com/vendor/techdivision/import-category/src/Observers/CategoryObserver.php(165): TechDivision\Import\Category\Observers\CategoryObserver->persistCategory(Array)
	#3 /home/user/example/projects/shop.example.com/vendor/techdivision/import-category/src/Observers/AbstractCategoryImportObserver.php(54): TechDivision\Import\Category\Observers\CategoryObserver->process()

Command

 vendor/bin/import-simple import:create:ok-file &&  vendor/bin/import-simple import:categories --debug-mode=1 --clear-artefacts=0 --log-level=warning

I will provide the CSV privately

@amenk
Copy link
Author

amenk commented Sep 10, 2020

test-testing-step_015

Debugging ... Category seems to be empty in my case for some reason

@amenk
Copy link
Author

amenk commented Sep 10, 2020

It fails getting the root category "1" .. via n98-magerun2 dev:console I can get it

>>> $cr =  $di->get(\Magento\Catalog\Model\CategoryRepository::class);
=> Magento\Catalog\Model\CategoryRepository\Interceptor {#24166}
>>> $cr->get(1)->debug();
=> [
     "entity_id" => "1",
     "attribute_set_id" => "3",
     "parent_id" => "0",
     "created_at" => "2017-05-29 17:35:16",
     "updated_at" => "2020-09-10 09:54:04",
     "path" => "1",
     "position" => "0",
     "level" => "0",
     "children_count" => "266",
     "name" => "Root Catalog",
     "include_in_menu" => "1",
     "use_name_in_product_search" => "1",
     "virtual_rule (Smile\ElasticsuiteVirtualCategory\Model\Rule)" => [
       "store_id" => 0,
     ],

Can you reproduce the problem with my CSV file? @wagnert

@wagnert
Copy link
Member

wagnert commented Sep 19, 2020

Hi @amenk, did you still face the problem again or can we close the issue?

@amenk
Copy link
Author

amenk commented Sep 19, 2020

Cannot reproduce currently

@amenk amenk closed this as completed Sep 19, 2020
@amenk
Copy link
Author

amenk commented Sep 24, 2020

Unfortunately we can now reproduce it again in our CI pipeline

@amenk amenk reopened this Sep 24, 2020
wagnert added a commit to techdivision/import that referenced this issue Oct 1, 2020
wagnert added a commit that referenced this issue Oct 1, 2020
wagnert added a commit to techdivision/import-cli-simple that referenced this issue Oct 1, 2020
wagnert added a commit that referenced this issue Oct 2, 2020
* Remove stack trace of exception for missing media directories > log a simple debug message instead
wagnert added a commit to techdivision/import-cli-simple that referenced this issue Oct 2, 2020
* Fixed #PAC-243: Fixed issue of attributes that can not be updated
* Switch log level for exception stack trace for missing media directories from warning to debug
@amenk
Copy link
Author

amenk commented Oct 10, 2020

@wagnert We can confirm the fix. Thank you very much!

@wagnert
Copy link
Member

wagnert commented Oct 10, 2020

@amenk Thanks for the feedback, like to hear that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants