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

MySQL 8 issues #389

Open
SnowCreative opened this issue Mar 17, 2022 · 1 comment
Open

MySQL 8 issues #389

SnowCreative opened this issue Mar 17, 2022 · 1 comment

Comments

@SnowCreative
Copy link

SnowCreative commented Mar 17, 2022

I just installed MIGX on a site that uses MySQL 8.0.28, and I’m getting errors. I remedied these by turning off security settings in MySQL, but looking forward, these errors should probably be addressed.

After selecting MIGX in the Extras menu, I get four of these errors:

(ERROR @ /home/jcstsonl/modxcore/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 'migxConfig.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
)

And I get this error when trying to save a new config:

ERROR @ /home/jcstsonl/modxcore/xpdo/om/xpdoobject.class.php : 1452) Error HY000 executing statement:
INSERT INTO mx_migx_configs (name, formtabs, contextmenus, actionbuttons, columnbuttons, filters, extended, permissions, fieldpermissions, columns, createdby, createdon, editedby, deleted, deletedby, published, publishedby, category) VALUES ('header slides', '', '', '', '', '', '{"migx_add":"","disable_add_item":"","add_items_directly":"","formcaption":"","update_win_title":"","win_id":"","maxRecords":"","addNewItemAt":"bottom","media_source_id":"","multiple_formtabs":"","multiple_formtabs_label":"","multiple_formtabs_field":"","multiple_formtabs_optionstext":"","multiple_formtabs_optionsvalue":"","actionbuttonsperrow":"4","winbuttonslist":"","extrahandlers":"","filtersperrow":"4","packageName":"","classname":"","task":"","getlistsort":"","getlistsortdir":"","sortconfig":"","gridpagesize":"","use_custom_prefix":"0","prefix":"","grid":"","gridload_mode":"1","check_resid":"1","check_resid_TV":"","join_alias":"","has_jointable":"yes","getlistwhere":"","joins":"","hooksnippets":"","cmpmaincaption":"","cmptabcaption":"","cmptabdescription":"","cmptabcontroller":"","winbuttons":"","onsubmitsuccess":"","submitparams":""}', '{"apiaccess":"","view":"","list":"","save":"","create":"","remove":"","delete":"","publish":"","unpublish":"","viewdeleted":"","viewunpublished":""}', '', '', 1, '2022-03-17 11:00:10', 0, 0, 0, 1, 0, '')
Array
(
[0] => HY000
[1] => 1364
[2] => Field 'editedon' doesn't have a default value
)

The error references "editedon", but none of the date fields have default values.

@sonicpunk
Copy link

I can reproduce this issue.

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