Fixing VirtueMart Issues
If you enabled CloudProxy and VirtueMart is sending your errors like this:
Subject: PayPal IPN Transaction on your site: Possible fraud
Error code 506. Possible fraud. Error with REMOTE IP ADDRESS = 192.99.17.8. The remote address of the script posting to this notify script does not match a valid PayPal ip address
No worries, it’s easy to get it fixed!
This happens because VirtueMart is trying to check if your remote IP address matches the PayPal one. However, since your traffic is coming through our servers, they see Sucuri’s IP address instead of yours. Sucuri always provide the real IP address using multiple standard headers, but it seems like VirtuMart does not support it yet.
To fix this, just add the following code to the top of the notify.php file inside VirtueMart:
if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{
$_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
}
Adding these three lines will solve the problem. Or, if you prefer, just open a ticket in our system and we will do it for you!
0
0
Related Articles
- Signatures
- Protected Page
- Block User-agents
- Block HTTP Referers
- Block HTTP Cookies
- Country Blocking
- vBulletin Customizations
- Testing CloudProxy Before Changing the DNS
- SSL Displaying Incorrectly
- Fixing Vaultpress Issues
- Fixing osCommerce Who's Online