Ticket UUID: a750e344bcfa27bc26df601243b373e4b7fd8f32
Title: Delete member with registered subscription
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2015-04-17 21:25:18
Version Found In: Garradin version: 0.6.2
Target version:
User Comments:
clement.jeanne added on 2014-10-25 21:00:14:
- Create a member
- Create a subscription
- Add a subscription to the member
- Delete the member

Error : 
http://localhost/admin/membres/supprimer.php?id=50

#0 /usr/share/garradin/include/class.membres.php(699): SQLite3->exec('DELETE FROM mem...')
#1 /usr/share/garradin/include/class.membres.php(513): Garradin\Membres::_deleteMembres(Array)
#2 /usr/share/garradin/www/admin/membres/supprimer.php(29): Garradin\Membres->delete(50)
#3 {main}
-------------
Garradin version: 0.6.2
Garradin manifest: 
PHP version: 5.5.9-1ubuntu4.4
HTTP_HOST: localhost
HTTP_USER_AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_REFERER: http://localhost/admin/membres/supprimer.php?id=50
HTTP_COOKIE: PHPSESSID=unpgu0bpa8373qn5ui83eaakl7
HTTP_CONNECTION: keep-alive
CONTENT_TYPE: application/x-www-form-urlencoded
CONTENT_LENGTH: 106
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE: <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</address>

SERVER_SOFTWARE: Apache/2.4.7 (Ubuntu)
SERVER_NAME: localhost
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: /usr/share/garradin/www
REQUEST_SCHEME: http
CONTEXT_PREFIX: 
CONTEXT_DOCUMENT_ROOT: /usr/share/garradin/www
SERVER_ADMIN: webmaster@localhost
SCRIPT_FILENAME: /usr/share/garradin/www/admin/membres/supprimer.php
REMOTE_PORT: 35815
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: POST
QUERY_STRING: id=50
REQUEST_URI: /admin/membres/supprimer.php?id=50
SCRIPT_NAME: /admin/membres/supprimer.php
PHP_SELF: /admin/membres/supprimer.php
REQUEST_TIME_FLOAT: 1414270352.016
REQUEST_TIME: 1414270352