User Level Permission Page doesn't send updates - userpriv.html

v2025

A re-occurring issue with submitting changes to permissions has yielded an error is submission

192.168.0.37 didn’t send any data.

ERR_EMPTY_RESPONSE

I update userpriv.html page to ensure the tabulator is loaded :

I replaced :

ew.ready(["load", "tabulator"], ew.PATH_BASE + "js/userpriv.min.js?v=25.10.2");

To ensure tabulator.min.js is loaded before calling ew.ready():

loadjs.ready("tabulator", function () {

ew.ready("load", ew.PATH_BASE + "js/userpriv.min.js?v=25.10.2");

});

This guards against ew.ready() running before Tabulator is defined. So far it runs with out error. I integrated the change into the template page userpriv.html.

Initially this worked. Still having the same issue.

That is wrong code, try:

ew.ready(["load", "tabulator"], ew.PATH_BASE + "js/userpriv.min.js?v=25.10.2");

I’m still having the same issue with the page not sending any information. I believe the large number of tables and views maybe the issue. The array has 331 rows. My next step is to use pagination to limit the number of rows

I edited the userpriv.js file and changed:

let options = ew.deepAssign({
    index: "index",
    data: getRecords(), // Load row data from array
    layout: "fitDataFill", // Fit columns to Data
    initialSort: [
        { column: "table", dir: "asc" },
    ],
    columnHeaderSortMulti: false,
    columns: getColumns()
}, tableOptions);

to:

let options = ew.deepAssign({
    index: "index",
    data: getRecords(),
    layout: "fitDataFill",
    initialSort: [
        { column: "table", dir: "asc" },
    ],
    columnHeaderSortMulti: false,
    pagination: "local", // Enable client-side pagination
    paginationSize: 20, // Show 20 rows per page
    paginationSizeSelector: [20, 50], // Optional page size dropdown
    columns: getColumns()
}, tableOptions);

I edited the Userpriv.php page to call the userpriv.js file instead of the userpriv.min.js

<script <?= Nonce() ?>>
loadjs.ready("tabulator", function () {
    ew.ready(["load", "tabulator"], ew.PATH_BASE + "js/userpriv.js?v=25.10.2");
	console.log("Tabulator load triggered");
});
</script>

My thought was that minimizing the number of rows would help. I ran through the array over the course of 8 pages, updating one page at a time and hitting the update button with out any data errors.

After more review it appears that due to the large number of rows in the array that my php.ini setting for inputs may be the solution. I set:

max_input_vars = 5000

I have been able to submit without changing the phpmaker template files. More to follow if it starts failing.