nystudio107 / craft-similar

Similar for Craft lets you find elements, Entries, Categories, Commerce Products, etc, that are similar, based on... other related elements.
https://nystudio107.com/
MIT License
26 stars 5 forks source link

3.2 update - column craft_relations.sourceid does not exist #18

Closed himynameisphil closed 3 years ago

himynameisphil commented 5 years ago

Getting this error after updating to the latest Craft version (3.2.0).

SQLSTATE[42703]: Undefined column: 7 ERROR: column craft_relations.sourceid does not exist

julienmarie commented 4 years ago

Did you manage to fix it? I have the same error

julienmarie commented 4 years ago

It's been like 6 months ?

khalwat commented 4 years ago

if I had to guess, the issue would be here:

https://github.com/nystudio107/craft-similar/blob/v1/src/services/Similar.php#L102

Or here:

https://github.com/nystudio107/craft-similar/blob/v1/src/services/Similar.php#L136

@julienmarie PRs are welcome!

khalwat commented 3 years ago

This should be fixed in the dev-develop branch

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-similar": "dev-develop as 1.1.0”,

Then do a composer update

Let me know how you go...

khalwat commented 3 years ago

Fixed in https://github.com/nystudio107/craft-similar/releases/tag/1.1.0