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

Session abstraction (Pr68 on previous repo) #2

Merged
merged 12 commits into from
Jul 11, 2016
Merged

Session abstraction (Pr68 on previous repo) #2

merged 12 commits into from
Jul 11, 2016

Conversation

PaulPoulain
Copy link
Member

@billdueber initial description:
I was having problems with session files not being unlocked when I needed them, resulting in waits of 30s for some of the Ajax calls. One solution (that allows you to stick with the file-based sessions) is to close the session for writing except for when you actually need to write it.

These changes localize the session stuff to a class (CoralSession.php) that takes care of opening sessions and closing them for writing (leaving them read-only) to avoid this.

This is a pretty big structural change, but I thought I'd at least get a ball in the air and start a discussion.

Conflicts:
	resources/admin/classes/domain/ResourceStep.php
	resources/import.php
	resources/index.php
	resources/templates/header.php
@jsavell jsavell merged commit 44d4880 into master Jul 11, 2016
fondrenlibrary pushed a commit that referenced this pull request Jul 14, 2016
jeffnm pushed a commit that referenced this pull request Jan 20, 2017
Require required db connection values (like hostname). Fixes #2
@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
@t4k t4k mentioned this pull request Apr 6, 2018
@t4k t4k deleted the pr68 branch April 6, 2018 21:29
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.

4 participants