Skip to content

Trouble indexing/reindexing #9

@emdahlstrom

Description

@emdahlstrom

Hi! having some trouble indexing/reindexing on with the newest cockpit-next and newest detektivo.

Regardless engine, the indexing spinner just keeps going and checking the network tab I can find the following response:

<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>cockpit-next/addons/Detektivo/Storage/Algolia.php</b> on line <b>30</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>cockpit-next/addons/Detektivo/vendor/algolia/algoliasearch-client-php/src/AlgoliaSearch/Index.php</b> on line <b>1447</b><br />
{"finished":true,"imported":1}

I also get the following javascript error:

Uncaught (in promise) TypeError: Cannot read property 'imported' of null
    at <anonymous>:13:33

Any idea what this might be about?

It worked on a clean install but when I copied over my storage directory from production it broke. I'm just indexing simple text fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions