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

FormItSaveForm ERROR: Filter by form name and encrypted forms component causing SQL error #293

Open
travisbotello opened this issue Jun 17, 2024 · 1 comment · May be fixed by #295
Open

Comments

@travisbotello
Copy link

Bug report

Summary

Filter by form name and encrypted forms tabs are empty.

Step to reproduce

Submit a form using FormItSaveForm hook

Observed behavior

When checking the submitted forms in formit CMP the form name filter select box is empty + encrypted forms tab is empty. MODX error log reporting the following SQL error:

core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1055
    [2] => Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'modx_event.FormItForm.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
)

Expected behavior

Filter by from name and encrypted form tab should be working.

Environment

MODX 2.8.7 + FormIt 4.2.7
PHP 8.2 + MySQL 8

@halftrainedharry
Copy link

I created pull requests to fix the issue for the two MODX branches.
This error only occurs if the sql_mode "ONLY_FULL_GROUP_BY" is used. sql_mode can be changed in the MySQL configuration file "my.ini".
See also the related issue #178.

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

Successfully merging a pull request may close this issue.

2 participants