[4.1 Beta 1] Admin cp: The wiki currently appears as disabled because a deferred task has failed. Bad URLs and styling tweak (use block-rowMessage)
In the admin cp at the path admin.php?options/groups/vw_server_settings/, the following phrase appears beneath the vw_enabled checkbox:
The wiki currently appears as disabled because a deferred task has failed. Please check your Server Error Logs to determine the source of the problem. If you cannot find an issue in the logs, retry the failed task.
1) "Server Error Logs" and "retry the failed task" are bad hyperlinks:
- Server Error Logs: %7B$logUrl%7D
- The requested page could not be found. (Code: invalid_route, controller: -, action: -)
- retry the failed task: admin.php?wiki/counter&do=update&counter=unhold
- The requested page could not be found. (Code: invalid_action, controller: vw\vw\Admin\Controller\Wiki, action: Counter)
2) The CSS styling is a bit random with "!!!" and all red text. Why not change this span to use XF2 styling? It would look more consistent and remove the need for some custom CSS classes. For example,
find
Code:
class="vw-admin-option-enabled-status vw-admin-option-enabled-status-failed"
replace with
Code:
class="inputChoices-explain block-rowMessage block-rowMessage--error block-rowMessage--iconic"
Also, despite the error message suggestion, nothing was logged in the server error logs at path admin.php?logs/server-errors/. The vw_defer table reveals a number of defer=totals and defer=prefixkey rows, both with hold=1 and complete=0. After some time (several minutes or more) later, the wiki did eventually re-enable itself.