Permission

Hi Ross,

I am still having a problem making any adjustment in the “Permission Module”.  When I select the option an press the submit button i get this:You do not have access to this action. Then I am thrown out of my admin dashboard and this appears: If I logout and login I am still unable to access my admin dashboard. I then have to restore backup to get back to my admin dashboard. 
Can you look into this?

Willpro,

I am still mystified by this, and convinced it must be a server config issue of some kind or another. No one else has reported this since we put in the protection of checking max_input_vars before deciding whether or not to display the Submit button, and that was at least 12 months ago.

To try and get more information, can you please edit /modules/User Admin/permission_manageProcess.php and go to end of line 51, insert a new line, and paste this into the new line:

print ini_get(“max_input_vars”) . “

” ;
print count($_POST) . “

” ;
print_r($_POST) ; print “

” ;
exit() ;

The press the Submit button on Manage Permissions, copy the output and paste it here for us to see.

As a reminder, what kind of server are you using? Can you give us the contents of you php.ini file?

Thanks,

Ross


This is the contents of my Php.ini file:

max_input_vars=5000
max_file_uploads=50

ini_set(‘display_errors’, 1);
error_reporting(E_ALL & ~E_NOTICE or less aggressive);

<pre style="font-family: Arial, Verdana; font-size: 11px;">My server:
<ul style="font-family: sans-serif; font-size: 13.12px; vertical-align: middle; color: rgb(68, 68, 68); white-space: normal;"><li id="li_server_info" style="margin-bottom: 0.3em;">Server: Localhost via UNIX socket</li><li id="li_server_type" style="margin-bottom: 0.3em;">Server type: MariaDB</li><li id="li_server_version" style="margin-bottom: 0.3em;">Server version: 5.5.42-MariaDB-cll-lve - MariaDB Server</li><li id="li_mysql_proto" style="margin-bottom: 0.3em;">Protocol version: 10</li></ul><div><font color="#444444" face="sans-serif"><span style="font-size: 13.12px; white-space: normal;">I host with Arvixe Linux Hosting.</span></font></div><div><font color="#444444" face="sans-serif"><span style="font-size: 13.12px; white-space: normal;"><br></span></font></div><div><font color="#444444" face="sans-serif"><span style="font-size: 13.12px; white-space: normal;">Printout from manage permission:</span></font></div><div><font color="#444444" face="sans-serif"><span style="font-size: 13.12px; white-space: normal;"><br></span></font></div><div><font color="#444444" face="sans-serif"><span style="font-size: 13.12px; white-space: normal;"><br></span></font></div>

Print out is long so i have to send in 6 pieces. See below:



Willpro, it seems that whilst you are setting max_input_vars=5000, the effective value of max_input_vars is 1000. This means that most of your permissions are not making it through to the process file, and so are not getting saved. I would really recommend you speak to your hosting company, and ask them how you can increase max_input_vars so that the system reads it as 5000.

As I mentioned, there is supposed to be protection against this on the interface page for permissions, and so given your setup, you should not even see the Submit button, but I am not sure why this is not working for you.

Ross

Hi Ross,

 You were correct. It was my host problem. I told them the problem as you stated and they rectified the problem, so i am good to go.
Thank you very much. Keep up the great work. 

Excellent, glad to hear it was fixed : )