Unofficial SMF API Documentation

./Sources/ManageErrors.php

ViewErrorLog

function ViewErrorLog(): void

View the forum’s error log.

This function sets all the context up to show the error log for maintenance. It requires the maintain_forum permission. It is accessed from ?action=admin;area=logs;sa=errorlog.

deleteErrors

function deleteErrors(): void

Delete all or some of the errors in the error log.

It applies any necessary filters to deletion. This should only be called by ViewErrorLog(). It attempts to TRUNCATE the table to reset the auto_increment. Redirects back to the error log when done.

ViewFile

function ViewFile(): void

View a file specified in $_REQUEST[‘file’], with php highlighting on it Preconditions:

The line number number is specified by $_REQUEST[‘line’]… The function will try to get the 20 lines before and after the specified line.

ViewBacktrace

function ViewBacktrace(): void

View a backtrace specified in $_REQUEST[‘backtrace’], with php highlighting on it Preconditions:

Suggest an edit to this page on GitHub