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

Open
opened 9 months ago by ghost123321 · 3 comments
There is no content yet.
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 9 months ago

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.
Poster

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?
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.