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

Problem with default sorting of extensions list #2852

Closed
Guite opened this issue Apr 22, 2016 · 17 comments
Closed

Problem with default sorting of extensions list #2852

Guite opened this issue Apr 22, 2016 · 17 comments
Labels
Milestone

Comments

@Guite
Copy link
Member

Guite commented Apr 22, 2016

Q A
Zikula Version 1.4.3-dev
PHP Version 7.0.4

Expected behavior

Viewing the extensions list works.

Actual behavior

The following error appears:

An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT DISTINCT id_0 FROM (SELECT m0_.id AS id_0, m0_.name AS name_1, m0_.type AS type_2, m0_.displayname AS displayname_3, m0_.url AS url_4, m0_.description AS description_5, m0_.directory AS directory_6, m0_.version AS version_7, m0_.capabilities AS capabilities_8, m0_.state AS state_9, m0_.securityschema AS securityschema_10, m0_.core_min AS core_min_11, m0_.core_max AS core_max_12 FROM modules m0_) dctrn_result ORDER BY displayname_3 ASC LIMIT 40 OFFSET 0': SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'dctrn_result.displayname_3' which is not in SELECT list; this is incompatible with DISTINCT") in "/.../src/system/ExtensionsModule/Resources/views/Module/viewModuleList.html.twig" at line 13.

Steps to reproduce

After a fresh installation call /extensions/module/list

@Guite Guite added the Bug label Apr 22, 2016
@Guite Guite added this to the 1.4.3 milestone Apr 22, 2016
@craigh
Copy link
Member

craigh commented Apr 22, 2016

Any way to test this with PHP < 7 ? I'm not sure php 7 can technically be supported by us yet.

@Guite
Copy link
Member Author

Guite commented Apr 22, 2016

If you are using PHP 5 and not experiencing this error, it happens in PHP 7 only.

@craigh
Copy link
Member

craigh commented Apr 22, 2016

I've not tested yet

@Guite
Copy link
Member Author

Guite commented Apr 25, 2016

This seems not related to PHP 7, but to MySQL 5.7

@Guite
Copy link
Member Author

Guite commented Apr 25, 2016

See doctrine/orm#4846

@craigh
Copy link
Member

craigh commented Jul 14, 2016

@Guite please confirm this is not a php 7 issue. If it is, please move to Core-2.0.0-beta milestone. If a MySQL issue, then please look at MySQL versions supported by Symfony 2.x. If problem exists with supported version, then we can look into this further. My guess is this should be moved...

@Guite
Copy link
Member Author

Guite commented Jul 14, 2016

The referenced Doctrine issue shows clearly that this is related to MySQL 5.7 and not to PHP 7.

@craigh
Copy link
Member

craigh commented Jul 14, 2016

Doctrine tends to be impossibly slow in releasing bug fixes.

@craigh
Copy link
Member

craigh commented Jul 14, 2016

I don't know how to solve this then.

@Guite
Copy link
Member Author

Guite commented Jul 14, 2016

Postpone to 1.4.4 is fine for me, since it is a vendor problem.

@Guite Guite modified the milestones: 1.4.4, 1.4.3 Jul 14, 2016
@Guite
Copy link
Member Author

Guite commented Aug 19, 2016

Same problem in ZAuth admin list page.

@Guite Guite modified the milestones: 1.4.4, 1.4.6 Sep 2, 2016
@Guite
Copy link
Member Author

Guite commented Oct 21, 2016

The problem is gone.

@Guite Guite closed this as completed Oct 21, 2016
@Guite Guite modified the milestones: 1.4.4, 1.4.6 Oct 21, 2016
@gfr
Copy link
Contributor

gfr commented Dec 11, 2016

I have the same issue with following pages using the paginator:

  • /extensions/module/list
  • /adminpanel/categories
  • /zauth/admin/list

Zikula 1.4.4 / Symfony 2.8.14 / PHP 5.6.27-1+deb.sury.org~xenial+1 / Apache 2.4.18 / MySQL 5.7.16

@Guite Guite reopened this Dec 11, 2016
@Guite Guite modified the milestones: 1.4.5, 1.4.4 Dec 11, 2016
@gfr
Copy link
Contributor

gfr commented Dec 11, 2016

Related doctrine issue: doctrine/orm#4846

@craigh
Copy link
Member

craigh commented Dec 11, 2016

this is not a core problem but a MySQL 5.7 + Doctrine problem. we cannot fix it.

@Guite Guite added the Not core label Dec 12, 2016
@Guite Guite modified the milestones: 1.4.5, 1.4.6, 1.4.7 Dec 23, 2016
@Guite
Copy link
Member Author

Guite commented Mar 8, 2017

Probable fixes:
doctrine/orm#5622
doctrine/orm#5973

But still a vendor thing.

@craigh
Copy link
Member

craigh commented Apr 1, 2017

closing as NOT CORE

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

No branches or pull requests

3 participants