Jump to content

All in One Shipping module error


Recommended Posts

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 error

Internal Server Error

The 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 113

What is a 'Invalid Security Token and can we fix it.

I will appreciate any help with this issue.



BlackDog Enterprises

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 submitted

Best Regards,


Link to comment
Share on other sites

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...


Link to comment
Share on other sites

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, sorry

best regards,


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...