OFFLINE-GmbH / oc-mall-plugin

:convenience_store: E-commerce solution for October CMS
https://offline-gmbh.github.io/oc-mall-plugin
MIT License
169 stars 114 forks source link

array_slice() expects parameter 1 to be array, object given @ Category page #865

Closed RobertCh2 closed 2 years ago

RobertCh2 commented 3 years ago

On Category page I get exception error: »array_slice() expects parameter 1 to be array, object given«. Beginning of the Stack Trace:

40 | array_slice(…) | ~/plugins/offline/mall/classes/index/Filebase.php | 84 39 | OFFLINE\Mall\Classes\Index\Filebase->fetch(…) | ~/plugins/offline/mall/components/Products.php | 350 38 | OFFLINE\Mall\Components\Products->getItems() | ~/plugins/offline/mall/components/Products.php | 259

Earlier I have to manually install Filebase (by Composer), as after changing Index driver to Filesysystem, I also was getting errors.

October v2.1.15, Mall v1.4.2.

RobertCh2 commented 2 years ago

I have tried fresh install on different machine, with the following procedure:

Please help, as it seems to be pretty standard installation, and it is broken. Nobody experienced this?

tobias-kuendig commented 2 years ago

Please read our getting started guide:

https://offline-gmbh.github.io/oc-mall-plugin/getting-started/installation.html#optional-packages

If you want to use the filesystem based index, install tmarois/filebase and offline/jsonq (not nahid/jsonq) via composer.

If you still have issues using the correct packages, feel free to comment on this issue.