Does moderation log work or is it a work in progress? This is what I see #245

Closed
opened 2021-08-17 01:37:26 +00:00 by ghost123321 · 4 comments
No description provided.
ghost123321 changed title from Does moderation work or is it a work in progress? This is what I see to Does moderation log work or is it a work in progress? This is what I see 2021-08-17 02:25:40 +00:00

The moderation log works fine. This might be an issue with the Flatfile backend specifically.

The moderation log works fine. This might be an issue with the Flatfile backend specifically.
Author

yeah thats what I thought too, can anyone running flatfile confirm?

yeah thats what I thought too, can anyone running flatfile confirm?

Undefined offset errors.

Lines 207 - 209 in inc/database/flatfile.php

Original

207 $log['timestamp'] = $l[LOG_TIMESTAMP];
208 $log['account'] = $l[LOG_ACCOUNT];
209 $log['message'] = $l[LOG_MESSAGE];

Change to

207 $log['timestamp'] = isset($l[LOG_TIMESTAMP]) ? $l[LOG_TIMESTAMP] : null;
208 $log['account'] = isset($l[LOG_ACCOUNT]) ? $l[LOG_ACCOUNT] : null;
209 $log['message'] = isset($l[LOG_MESSAGE]) ? $l[LOG_MESSAGE] : null;

This will prevent errors from displaying, but I don't think it is the correct fix. Are these not being defined in settings.php?

Undefined offset errors. Lines 207 - 209 in inc/database/flatfile.php Original ``` 207 $log['timestamp'] = $l[LOG_TIMESTAMP]; 208 $log['account'] = $l[LOG_ACCOUNT]; 209 $log['message'] = $l[LOG_MESSAGE]; ``` Change to ``` 207 $log['timestamp'] = isset($l[LOG_TIMESTAMP]) ? $l[LOG_TIMESTAMP] : null; 208 $log['account'] = isset($l[LOG_ACCOUNT]) ? $l[LOG_ACCOUNT] : null; 209 $log['message'] = isset($l[LOG_MESSAGE]) ? $l[LOG_MESSAGE] : null; ``` This will prevent errors from displaying, but I don't think it is the correct fix. Are these not being defined in settings.php?
Owner

Thanks @PeterMartin. This should be resolved now, thanks to #257.

Thanks @PeterMartin. This should be resolved now, thanks to #257.
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#245
No description provided.