-
Notifications
You must be signed in to change notification settings - Fork 65
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
Correct broken mysql_query (Pr/71 on old resources module) #1
Conversation
Can't duplicate the issue with the master branch in the PHP 5.4.40 environment whereas this PR 71 does not produce new problem either in the same PHP 5.4.40 environment. |
We need to remove this "mysql_query" function because the PHP mysql API is deprecated in PHP 5.5 (now the oldest supported version) and is fully removed from PHP 7.0 (released 5 months ago). For lots more details, see http://stackoverflow.com/questions/12859942/why-shouldnt-i-use-mysql-functions-in-php. |
Fix issue of admin user being inserted into auth db when ldap enabled (solves related todo)
PHP message: PHP Fatal error: Uncaught Exception: There was a problem with the database: Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'coral_organizations.OHP.parentOrganizationID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/coral/organizations/admin/classes/common/DBService.php:39 Stack trace: #0 /var/www/coral/organizations/admin/classes/common/DBService.php(71): DBService->checkForError() #1 /var/www/coral/organizations/admin/classes/domain/Organization.php(550): DBService->processQuery('SELECT O.organi...', 'assoc') #2 /var/www/coral/organizations/ajax_htmldata.php(895): Organization->search(Array, 'TRIM(LEADING 'T...', '') #3 {main} thrown in /var/www/coral/organizations/admin/classes/common/DBService.php on line 39
The “Starts with” letter list was not working… Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'coral_organizations.O.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
When I try to install this module, I am getting the error "Fatal error: Call to undefined function mysql_query() in /var/www/html/resources/install/install.php on line 64"
I suspect this was broken by 26ae17c which changes a lot of mysql_query calls, and also the commit message says "not yet tested"