1
Some people report a weird error in newbb.
in newbb/admin/admin_permissions.php after click on submit they return to XOOPS_URL/index.php and it said "Sorry, you don't have the permission to access this area"
I finally could find the root of this issue.
it is because of max_input_vars php config.
if you go to modules/system/admin you can find this error:
PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini
Quote:
How many input variables may be accepted. Use of this directive mitigates the possibility of denial of service attacks which use hash collisions. If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request. This limit applies only to each nesting level of a multi-dimensional input array.
you can see "further input variables are
truncated from the request"
so it truncate some data from $_POST and $_GET and finally the modid is set to 0 and you have that error.
i tried to increase max_input_vars bu this:
@ini_set( 'max_input_vars', 10000 );
but failed. it is still set to 1000.
what should we do?