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

Correct broken mysql_query (Pr/71 on old resources module) #1

Merged
merged 2 commits into from
May 10, 2016
Merged

Conversation

PaulPoulain
Copy link
Contributor

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"

@PaulPoulain PaulPoulain changed the title Correct broken mysql_query (Pr/71 on resources module previously) Correct broken mysql_query (Pr/71 on old resources module) Mar 10, 2016
@fondrenlibrary
Copy link
Contributor

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.

PaulPoulain pushed a commit that referenced this pull request Apr 6, 2016
@remocrevo
Copy link
Contributor

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.

@jeffnm jeffnm removed the question label May 10, 2016
@jeffnm jeffnm merged commit fbd70a1 into master May 10, 2016
@tuxayo tuxayo mentioned this pull request Jun 28, 2016
jcuenod referenced this pull request in wc-library/Coral Aug 27, 2016
jeffnm pushed a commit that referenced this pull request Jan 20, 2017
Fix issue of admin user being inserted into auth db when ldap enabled (solves related todo)
@PaulPoulain PaulPoulain added this to the Version 2.0.0 milestone Mar 19, 2018
jeffnm pushed a commit that referenced this pull request Apr 4, 2018
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
jeffnm pushed a commit that referenced this pull request Apr 4, 2018
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
@t4k t4k mentioned this pull request Apr 6, 2018
@t4k t4k deleted the pr71 branch April 6, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants