peterp Posted December 15, 2015 Share Posted December 15, 2015 Hi All, I have a client who decided they wanted to change the tax type on their shipping by zone screen, unfortunately they have a large amount of freight zones and rates, when they tried to save the change they get this errorInternal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.I have changed the max_input_vars field to be 8000 from 1000 in the php.ini file however this did not fix the error.I have since found the error log for php (I think) and discovered the following message[15-Dec-2015 00:23:51 UTC] PHP Warning: Invalid Security Token in /home/wewe2945/public_html/Shop/classes/sanitize.class.php on line 113What is a 'Invalid Security Token and can we fix it.I will appreciate any help with this issue.Regards,PeterpBlackDog Enterprises Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2015 Share Posted December 15, 2015 The security token is either wrong or missing. The security token is the last item included when submitting a form in CubeCart.So, we may have to assume that the AIOS module form is submitting more than 8000 key/value pairs. Or there may be other limits in play, such as total bytes submitted through the web server or into PHP. Quote Link to comment Share on other sites More sharing options...
peterp Posted December 15, 2015 Author Share Posted December 15, 2015 Thanks Brian for the response,I also changed the max_input_vars to 10000 and got the same error, should I maybe increase it 20000 and try again what do you think.There are a lot of zones/rates, which we are endeavouring to reduce but we must be able to delete the current ones first.What variable in the php.ini file would I have change to expand the number of bytes submittedBest Regards,Peterp Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2015 Share Posted December 15, 2015 In CubeCart's admin, PHP Info, look at the Core table, 'post_max_size'. My default is 8M. I doubt the AIOS module is posting that much.Also, you will see 'max_input_vars' set accordingly.But 10,000 POST pairs is a lot -- but if the form is actually posting that many... Quote Link to comment Share on other sites More sharing options...
peterp Posted December 15, 2015 Author Share Posted December 15, 2015 Hi Brian,This is starting become a little unbelievable, I have increased the Max_input_vars to 10000 and the post_max_size to 15M and I still get the same error. Is it possible to some how delete some of the zones and rates through a back door just so we can modify the whole thing later by using the the correct way. I'm grabbing at straws now, sorrybest regards,peterp Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2015 Share Posted December 15, 2015 Let me know if you get my email. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.