RannRann MemberComments: 3 Received thanks: 0 Member since: April 16

Hi,

I'm rather new to Shopware, and Im currently performaning a migration from Magento 1.9 to Shopware6. The import of all products and categories is going fine, only I'm encountering some issues on the front end.
I can see the categories on the front-end, but when clicking one, i'm getting a error.

Uncaught PHP Exception Shopware\Core\Content\Category\Exception\CategoryNotFoundException: "Category "b2d0f8a8c2864437a3ad68a54dd172c6" not found


I'm not quite sure on how to solve this. 

Also when browsing the cateogries, a 'drop down' arrow is not appearing to see the child categories. Only when seleting 'add new subcategory' the other childs appear.

 

Any tips on how to act on this?

1 Answer

  • Moritz NaczenskiMoritz Naczenski AdministratorsComments: 9369 Received thanks: 2822 Member since: September 2013

    Can you try ececuting "php dal:refresh:index" via CLI? It seems like there is an issue with the imported category tree.

    Quote
    Accepted Answer
  • Accepted Answer

Answers

  • Moritz NaczenskiMoritz Naczenski AdministratorsComments: 9369 Received thanks: 2822 Member since: September 2013

    Can you try ececuting "php dal:refresh:index" via CLI? It seems like there is an issue with the imported category tree.

    Quote
    Accepted Answer
  • RannRann MemberComments: 3 Received thanks: 0 Member since: April 16

    Cheers, that fixed most part of it! ;-) Good to know a thing like that exists also for Shopware ;-)

     

    Page now loads fine, and in the back-end the categories load properly. In the back-end I can also see the product attached to the category. Only on the front-end there aren't products visible. I've tried adding the store in 'visibility' because it was blank, but to no avail so far..

    Another idea perhaps ? ;-)

  • Moritz NaczenskiMoritz Naczenski AdministratorsComments: 9369 Received thanks: 2822 Member since: September 2013

    The "visibility" is empty in your shop? This is something that needs to be set during the import. If the visibility is missing after the import, this might be a sign for an inclomplete migration. If you get it working, you could assign it in the database. 

    Please make sure to clean the cache via "php bin/console cache:clear", because the full-page cache is activated by default. For the development phase you can deativate it in the .env file: https://github.com/shopware/production/blob/master/.env.dist#L31

     

  • RannRann MemberComments: 3 Received thanks: 0 Member since: April 16

    When I select the products its not filled in, I can select a option though, but by default nothing seems to be selected.

     

    So you would suggest to remigrate everything ?

     

    Cleared the cache to be sure, and running in dev mode with cache disabled now :-)

  • RannRann MemberComments: 3 Received thanks: 0 Member since: April 16

    Just found out that all products were also set to 'inactive', and have not been assigned to any store, so that was the problem.

     

    Allthough I cant recall seeing that during the migration..

  • htkassnerhtkassner ModeratorComments: 71 Received thanks: 17 Member since: May 2016

    Hi. Could you deliver me a dump of your swag_migration_logging table? You could write me a pm about that. 

    Greetings,
    Holger

  • KrispinKrispin MemberComments: 277 Received thanks: 86 Member since: September 2018

    Hi Rann,

    did you remove some sales channels, maybe?

    Greetings,

    Krispin

Sign In or Register to comment.