Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purchases by date: SQLSTATE[42000]: Syntax error or access violation #10

Closed
pixelmachine opened this issue Oct 2, 2023 · 5 comments
Closed

Comments

@pixelmachine
Copy link

pixelmachine commented Oct 2, 2023

Hi @dispositiontools we're getting the following error when running any products by date (products/purchases) report.

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'my_db_name.cvc.title' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

This is on Craft 3 and the plugin is up to date. Thanks.

@dispositiontools
Copy link
Owner

Hi @pixelmachine
I'm very sorry about this - I'll get this sorted this evening and the fix pushed.

@dispositiontools
Copy link
Owner

@pixelmachine why type of database are you using? MySQL or PostgreSQL

@pixelmachine
Copy link
Author

No, worries! I'm using MySQL

@dispositiontools
Copy link
Owner

Thanks for your patience. I've seen my error and i'm refactoring but it won't be finished until tomorrow now - sorry for the delay.

dispositiontools added a commit that referenced this issue Oct 6, 2023
…hlighting and totals to the product purchasers report
@dispositiontools
Copy link
Owner

Thank you @pixelmachine this has now been fixed in v1.0.13 plus a couple of other tiny updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants