It's probably a mod_security thing that's triggering the 406 error due to a somewhat malformed URL ... the error message doesn't have a variable assigned to it.
I gather you're using PayPal Website Payments Pro in this case, since you posted in this section of the forum.
You have a couple options:
edit /includes/modules/payment/paypaldp.php
a) around line 363 you'll see a line like this:zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, [B]$error[/B], 'SSL', true, false));Change it to this:```
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, [B]'error=' . $error[/B], 'SSL', true, false));
or b) change it to this:```
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, [B]''[/B], 'SSL', true, false));
The first option will correctly form the URL with the error message. The second skips the error message from the URL altogether, allowing the message to simply happen by the built-in messageStack.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.