Support

Admin Tools

#14560 Paypal notifications (IPN) not received in Hikashop

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Monday, 07 January 2013 15:39 CST

user69357

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.8
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.4.4

Description of my issue:

I am having trouble receiving notifications from Paypal in Hikashop. This has been the case since i installed Admin Tools as i recall it. It would be great to get it working, since Paypal now says they will turn it off if I won't get it working soon.

I have the hikashop component in the AT firewall exceptions list. Last night I also tried disabling all kinds of features in Admin Tools, removed the .htaccess and disabled the firewall and features in it. 

Nothing seemed to help, since the order status didn't change in Hikashop. But later, I checked the IPN history on paypal, and it reported that for 20 minutes the IPN's were actually successfully sent. I suspect this was when I tried disabling the .htaccess generated by AT.

The notifications that didn't get sent successfully got http code 403.

The ones that did succeed took 5 or 6 attempts before getting sent and having http code 200 in return.

Ant idea of what might help?

nicholas
Akeeba Staff
Manager

Let's make sure that the problem is indeed caused by Admin Tools. In order to do so, try the following:

1. Try setting the Error Reporting level in your Global Configuration to "None". Many errors are caused by harmless PHP Notices and Warnings being output to the browser, breaking anything which requires HTTP header manipulation such as Joomla!'s session management, AJAX calls and download systems.

2. Try to replicate the issue after disabling the "System - Admin Tools" plugin. If you can still replicate the issue, it is not caused by Admin Tools. Disabling that plugin means that Admin Tools code (including the Web Application Firewall) is not running on your site.

3. If you suspect an issue with the .htaccess file, replace its contents with the contents of the stock htaccess.txt file shipped with every version of Joomla!. If you are on GoDaddy please wait for 1-30 minutes for the changes to be effective. Then, retry loading the problem page. If you can still reproduce the error, then it is not caused by .htaccess Maker.

If doing any of the above resulted in the issue still occurring, it's not related with Admin Tools and I can't help you. If doing any of the above did stop the issue from occurring, we'll have to do some troubleshooting.

First go to Admin Tools, Web Application Firewall, Configure WAF. Make sure "Log security exceptions" is set to Yes; if it's not, set it to Yes and click on Save. Now try reproducing your issue. Immediately after that, please go to Admin Tools, Web Application Firewall, Security Exceptions Log and go to the last page. The last log entry should have the date and time of when the issue occurred. Please copy the Reason and Target URL here so that I can help you.

If, however, you do not see a log entry, or the Date and/or IP address do not match your last access, this problem is not caused by Admin Tools' WAF. In this case, you will have to do some .htaccess troubleshooting. You may need to read the general .htaccess troubleshooting page, as well as the page on finding out necessary .htaccess exceptions.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user69357

Thank you for the swift reply, the email notifying me of the answer got stuck in gmail's new stricter spam filter, which i checked just now. Here are the results:

1. I could not see error reporting level or anything similar in the global configuration. Are you sure that's where it is found? Or is it for PHP or Apache?

2. Replicated the issue

3. Replicated the issue

I did however check the log and there were some entries there from I guess before I entered the hikashop component in the WAF exceptions list.

They were all logged due to "Bad Behaviour" (due to "A User Agent is required but none was provided"). This does however not help, unless WAF is still stopping them, though not logging them. I should just enter com_hikashop in the exceptions list, and that should work, right? Still wouldn't fix it entirely though since it still didn't work then AT was unpublished, unless paypal doesn't send the IPN straight away (which it arguably should?).

Then maybe the IPN isn't picked up OK by HikaShop? It seems that would be where the problem is at, since Paypal used to work before, and Paypal seems to try to post the information to the correct URL.

2013-01-01 17:32:59   66.211.170.66 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv 2013-01-01 17:30:18   66.211.170.66 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv 2013-01-01 17:28:56   66.211.170.66 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv 2013-01-01 17:28:15   66.211.170.66 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv 2013-01-01 17:27:54   66.211.170.66 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv 2013-01-01 17:27:41   173.0.81.1 Bad Behaviour tooltip.png http://webshop.kabbalakurser.info/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=sv

nicholas
Akeeba Staff
Manager

1. Very sure. Go to Global Configuration, click on the Server tab at the top. Now look towards the top left of the options. The third one from the top reads "Error reporting".

2 & 3. Since you can reproduce this issue with the Admin Tools plugin being disabled and using the stock Joomla! .htaccess file your issue is unrelated to both Admin Tools features and .htaccess Maker's features. Actually, looking at the log it seems that not only Admin Tools' WAF is the issue. I'd recommend turning off the Bad Behavior integration in WAF and then looking at which other third party plugin may be interfering with your Paypal IPN notifications.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!