lunar icon indicating copy to clipboard operation
lunar copied to clipboard

Hub Orders Not Displaying

Open AugmentBLU opened this issue 2 years ago • 3 comments

  • GetCandy version: 2.0-beta14
  • Laravel Version: 9.2.3
  • PHP Version: 8.1
  • Database Driver & Version: MariaDB

Expected Behaviour:

Should display a list of orders

Actual Behaviour:

Gives this error.

MeiliSearch\Exceptions\ApiException
Json deserialize error: unknown field `facetsDistribution`, expected one of `q`, `offset`, `limit`, `attributesToRetrieve`, `attributesToCrop`, `cropLength`, `attributesToHighlight`, `showMatchesPosition`, `filter`, `sort`, `facets`, `highlightPreTag`, `highlightPostTag`, `cropMarker` at line 1 column 30 (View: /var/www/html/vendor/getcandy/admin/resources/views/livewire/components/orders/index.blade.php)

Orders are showing in Meili Search.

Steps To Reproduce:

Install fresh Laravel project with Sail, install GetCandy as per instructions.

This also happens using the demo-store repo. You can see individual orders if clicking through from a customer's history so it seems to be only the index list that's effected.

AugmentBLU avatar Aug 08 '22 14:08 AugmentBLU

I think this is a known issue. Meilisearch seems to have broken compatibility. It may work if you try an earlier version of Meilisearch.

We're currently working on an update to simplify the Scout integration and offer a proper database option to get around the reliance on Meilisearch.

glennjacobs avatar Aug 08 '22 14:08 glennjacobs

I'll check that out, thanks for the heads-up.

AugmentBLU avatar Aug 08 '22 15:08 AugmentBLU

not sure if related, but check your Meilisearch and meilisearch-php version https://github.com/meilisearch/meilisearch-php/issues/351#issuecomment-1184725136

wychoong avatar Aug 08 '22 15:08 wychoong

This should be sorted on 0.1.0-rc.1 as we've moved away from Meilisearch by default.

alecritson avatar Sep 26 '22 14:09 alecritson