Skip to Content

Error: An error occurred while trying to submit the form (error: Forbidden)

Error: An error  occurred while trying to submit the form (error: Forbidden)


Overview: This article describes an error that arises when modifying the User-Server group in Access Control while handling a large volume of data, highlighting the need to adjust certain PHP configuration settings.


This error occurs when you attempt to modify the User-Server group in Access Control while handling a large amount of data.


  • To resolve the above error, you can increase the values for max_input_vars, max_execution_timememory_limitpost_max_size, and upload_max_filesize in the php.ini file by editing. Refer to the below step.

For Ubuntu 22,

root@gateway:~# nano /etc/php/8.1/apache2/php.ini      ---> (change into corresponding PHP version)

max_execution_time = 300
max_input_vars = 10000
memory_limit = 1G
post_max_size = 1G
upload_max_filesize = 1G

And restart the Apache web service. 

:~# systemctl restart apache2

Note:  In case you are using CentOS 7, Edit vi /etc/php.ini and follow these commands to check the config file and then restart the web service.

            :~# httpd -t

            :~# systemctl restart httpd

To check php.ini file :~# grep -v '^\s*#' /etc/php.ini | grep -i 'max_input_vars = \|max_execution_time\|post_max_size\|upload_max_filesize\|memory_limit'

To Check the php.ini file

:~# grep -v '^\s*#' /etc/php/8.1/apache2/php.ini | grep -i 'max_input_vars = \|max_execution_time\|post_max_size\|upload_max_filesize\|memory_limit'

max_execution_time = 300
max_input_vars = 10000
memory_limit = 1G
post_max_size = 1G
upload_max_filesize = 1G