getcandy / hub

GetCandy v1 Hub built on Nuxt.js
30 stars 9 forks source link

undefined is not an object #3

Closed sameh0 closed 4 years ago

sameh0 commented 4 years ago

Whenever i try to add a product undefined is not an object (evaluating '_vm.data[attribute.handle][_vm.fallbackChannel][ _vm.fallbackLanguage ]')

alecritson commented 4 years ago

Have you got channels and languages set up in the database on the API?

sameh0 commented 4 years ago

Have you got channels and languages set up in the database on the API?

Yes in the Initial setup , and i even created new to be sure using the API . doesn't solve the problem .

alecritson commented 4 years ago

Okay sorry about this, I'll try a fresh install and see if I can provide any insight/fix this for you!

dalholm commented 4 years ago

Whenever i try to add a product undefined is not an object (evaluating '_vm.data[attribute.handle][_vm.fallbackChannel][ _vm.fallbackLanguage ]')

@sameh0 i had the same problem, but after deleting the database and run the installation cli command once more it all worked.

sameh0 commented 4 years ago

Whenever i try to add a product undefined is not an object (evaluating '_vm.data[attribute.handle][_vm.fallbackChannel][ _vm.fallbackLanguage ]')

@sameh0 i had the same problem, but after deleting the database and run the installation cli command once more it all worked.

That worked. Thanks

dalholm commented 4 years ago

@alecritson maybe this is a bug? look at the database i sent you on discord and see if there are something missing from the first run.

Question, are there any migrations that depends on the env variables except the database variables?

alecritson commented 4 years ago

I think I managed to track this one down.

Just out of curiosity, when you reran the installer, did you opt for webstore as a channel name?

dalholm commented 4 years ago

@alecritson i don't remember the first run, but the second time I just run with defaults.

alecritson commented 4 years ago

This was an issue with the hub assuming webstore was the channel handle on the page, should be addressed for new installs now if you can upgrade.

https://guides.getcandy.io/hub-guides/0.9/introduction/upgrading#upgrading-from-091-to-092

alecritson commented 4 years ago

Going to close this, if updating doesn't solve the issue feel free to reopen