Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002983Piwigousers & groupspublic2013.10.22 19:002013.10.22 20:27
Assigned To 
PlatformWINNTOSWindowsOS Version7 x64
Product Version2.5.2 
Target VersionFixed in Version 
Summary0002983: Cleaning opened sessions when deleting user
DescriptionIf I delete a user that has an open session, the next refresh or link he clicks displays a crash.
Even if the user tries to load the base URL of the gallery.
He has to clean his cookies in order to be able to access the gallery again :

[code]Warning: array_merge(): Argument 0000001 is not an array in [...]\include\functions_user.inc.php on line 348 Warning: Invalid argument supplied for foreach() in [...]\include\functions_user.inc.php on line 350 Notice: Undefined index: id in [...]\include\functions_user.inc.php on line 376 Notice: Undefined index: status in [...]\include\functions_user.inc.php on line 376 Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

SELECT cat_id
  FROM piwigo_user_access
  WHERE user_id =
; in [...]\include\dblayer\functions_mysqli.inc.php on line 834

Fatal error: Call to a member function fetch_assoc() on a non-object in [...]\include\dblayer\functions_mysqli.inc.php on line 181[/code]

His session should be terminated when user account is deleted.
Steps To Reproduce - Open a session with a user account
 - On admin session (other browser/computer), delete that account
 - Back on the first browser/computer, refresh the page.
TagsNo tags attached.
Database engine and versionMySQL: 5.5.28
PHP versionPHP: 5.3.14
Web serverApache 2.2.22
Attached Files

- Relationships

-  Notes
mistic100 (developer)
2013.10.22 20:27

Add a test for the result of the first query of build_user()
If needed, destroy the session and reload the page.

- Issue History
Date Modified Username Field Change
2013.10.22 19:00 Jalil New Issue
2013.10.22 19:00 Jalil browser => any
2013.10.22 19:00 Jalil Database engine and version => MySQL: 5.5.28
2013.10.22 19:00 Jalil PHP version => PHP: 5.3.14
2013.10.22 19:00 Jalil Web server => Apache 2.2.22
2013.10.22 20:27 mistic100 Note Added: 0007163

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker