You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2.1]: Multiple cron.php errors: Trying to access array offset on null; database value you're trying to insert does not exist; given array of integer values is empty
#8301
After approving a requestable membergroup request, several errors may be logged. The background task is not processed successfully, and the task stays in the queue. Subsequent runs of cron add additional errors. Clearing the background tasks usually (not always) resolves the issues.
Errors include:
2: Trying to access array offset on null, Logging.php line 546
The database value you're trying to insert does not exist: id_member, Function: logActions, Logging.php line 559
Database error, given array of integer values is empty. (request_list), Function: execute, GroupAct-Notify.php line 33
Steps to reproduce
Install new forum
Create a requestable user group
Create a new user
Logon as that new user, and request entry into the requestable user group
As admin/moderator, approve the request
Users are added to the group, but the notifications are not sent. Errors are logged, and the background tasks remain in the queue.
3.0 seems to work fine!!!
Expected result
Approval completion with notification.
Actual result
Approval is completed, user is added to group, but the notification is not sent and the background tasks queue gets clogged.
The 3rd error, the empty request_list in GroupAct-Notify.php line 33, I have only seen on some fresh installs, and is difficult to reproduce. I suspect it is tied to group maintenance between the request & the approval.
The other two errors are caused by $user_info not being defined in the task. Attempting to access it produces the Logging.php line 546 error, $memIP remains not defined, so the line 559 error results on the DB call.
(Interestingly, 546 invokes the error handler, which creates a skeletal $user_info full of blanks & zeroes... I'm not sure we want the error handler to do that?)
Basic Information
After approving a requestable membergroup request, several errors may be logged. The background task is not processed successfully, and the task stays in the queue. Subsequent runs of cron add additional errors. Clearing the background tasks usually (not always) resolves the issues.
Errors include:
Steps to reproduce
Users are added to the group, but the notifications are not sent. Errors are logged, and the background tasks remain in the queue.
3.0 seems to work fine!!!
Expected result
Approval completion with notification.
Actual result
Approval is completed, user is added to group, but the notification is not sent and the background tasks queue gets clogged.
Version/Git revision
2.1.4
Database Engine
All
Database Version
8.4
PHP Version
8.3.8
Logs
Additional Information
From the forum:
https://www.simplemachines.org/community/index.php?topic=589416.0
https://www.simplemachines.org/community/index.php?topic=587401.0
The text was updated successfully, but these errors were encountered: