FYI - Elgg 2.2.1 Login Problem

I will tell you about my experience with updating my plugin from Elgg 1.8  to 2.2.1. 
Today it was the second time, that i can not login to my elgg website on localhost.
If I want to login the browser makes an endless loop.
At the first occurrence of that phenomenon I made a complete install of elgg.
Today I tried to debug with x-debug unable to locate the reason for that error.
But in the apache error log I read:



[Fri Jul 15 08:24:09.081105 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] ERROR: 'delete, member' event is no longer triggered. Update your event registration to use 'delete, relationship', referer: http://localhost/elgg/
[Fri Jul 15 08:24:09.317277 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] PHP WARNING: 2016-07-15 06:24:09 (UTC): "Argument 3 passed to elgg_register_notification_event() must be of the type array, string given, called in C:\\xampp\\htdocs\\elgg\\mod\\audit\\start.php on line 404 and defined" in file C:\\xampp\\htdocs\\elgg\\vendor\\elgg\\elgg\\engine\\lib\\notification.php (line 65), referer: http://localhost/elgg/
[Fri Jul 15 08:24:09.326630 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] PHP WARNING: 2016-07-15 06:24:09 (UTC): "Argument 3 passed to Elgg\\Notifications\\NotificationsService::registerEvent() must be of the type array, string given, called in C:\\xampp\\htdocs\\elgg\\vendor\\elgg\\elgg\\engine\\lib\\notification.php on line 66 and defined" in file C:\\xampp\\htdocs\\elgg\\vendor\\elgg\\elgg\\engine\\classes\\Elgg\\Notifications\\NotificationsService.php (line 79), referer: http://localhost/elgg/
[Fri Jul 15 08:24:09.330405 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] PHP WARNING: 2016-07-15 06:24:09 (UTC): "array_merge(): Argument #2 is not an array" in file C:\\xampp\\htdocs\\elgg\\vendor\\elgg\\elgg\\engine\\classes\\Elgg\\Notifications\\NotificationsService.php (line 90), referer: http://localhost/elgg/
[Fri Jul 15 08:24:09.342752 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] PHP WARNING: 2016-07-15 06:24:09 (UTC): "array_unique() expects parameter 1 to be array, null given" in file C:\\xampp\\htdocs\\elgg\\vendor\\elgg\\elgg\\engine\\classes\\Elgg\\Notifications\\NotificationsService.php (line 90), referer: http://localhost/elgg/
[Fri Jul 15 08:24:09.832257 2016] [:error] [pid 7684:tid 1712] [client 127.0.0.1:49412] ERROR: 'delete, member' event is no longer triggered. Update your event registration to use 'delete, relationship', referer: http://localhost/elgg/


 

So I asume that appache has trouble with the user account and so I logged in as a different user and Elgg must make a new session-id and it works.

So, what I think what happend: Elgg can not delete a session-id for the user, if the session-id is expired and traps into an error. The reason for that could be my pc-configuration or elgg himself. I don't know.

 

  • Did you upgrade through all minor versions? E.g. first to 1.9, then to 1.10, 1.11...

    Did you turn off all caching first?

    Did you move the app to a different path? Because that introduces complexity.

  • BTW, if you have some 3rd party plugins that have to be upgraded for 2.x, the time to swap them out is before running the upgrade to 2.0. Once that works, continue on. All these versions sounds like a lot of work, but most recent upgrades are a snap besides the hassle of updating files.

  • Forgot to mention, none of those errors look related to me. Mostly harmless deprecations or bugs fixed in later versions.

  • Sorry, for answering so late Steve.
    Yes, I did all updates between 1.8 and 1.11
    Yesterday I found the reason for the login problem.
    It was the a corrupted elgg_system_log table: [SQLSTATE[HY000]: General error: 145 Table
    After deleting all recorsets of that table, elgg login works.

    Note: I am not wondering about the corrupted table, because I was testing to make a new custom elgg object und interrupted the save process of the object several times.

     

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking