Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – Blank IPN Debug and Paypal Shows 404 Error for Transaction
- This topic has 5 replies, 3 voices, and was last updated 11 years, 1 month ago by admin.
-
AuthorPosts
-
October 11, 2013 at 6:24 pm #9837andalisMember
Hi Ivy and Amin,
I’ve been searching the forum and can’t find an answer. I’m using WP eStore with WP eMember. I’ve enabled the debug log and tried a transaction. The Paypal payment goes through but I’m not receiving any post-payment emails and memberships aren’t created in the database. I’ve tried looking in the IPN Debug file but it’s blank – and I’ve tried all the solutions below – still blank.
So I went into my Paypal account to the “Instant Payment Notification (IPN) details” page and this is what I found:
Notification URL
[http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php]
HTTP response code
404
I’ve disabled all other plugins and did give the ipn_debug_handler write permissions, however, I don’t know why my debug log file is blank and why Paypal gets a 404 error page. When I go to directly to the link above …paypal.php, I also get the error. The only reason I can think of is it may have had something to do with the .htaccess file created with the All In One WP Security Plugin Version v2.6 (but I’m not sure if that’s the problem since it’s the security plugin written by Tips and Tricks so it shouldn’t conflict with your plugins).
I’ve already restored the .htaccess and wp-config files that were modified with the plugin (am I missing something else)?
Please help!
I’ve tried all the solutions below:
https://support.tipsandtricks-hq.com/forums/topic/how-and-when-to-enable-debug-and-what-does-it-do
https://support.tipsandtricks-hq.com/forums/topic/what-to-do-if-the-debug-file-is-empty
I have the following plugins active. All other plugins have been disabled:
eStore Version v6.9.9.3
WP eMember Version v8.7.6 (I bought this using another email address)
Extra Shortcodes for WP eStore Version v4.7.4
eStore Receipt Creator Addon Version 1.9
eMember Profile Extended Version v1.1.6
Thank you in advance.
October 11, 2013 at 11:04 pm #58302wpCommerceModeratorHi, for some reason your server is preventing the
paypal.php
file from executing. If you go to [http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php] you will see that your server redirects it to a 404 page [http://80-20educationalfoundation.com/page_not_found.php]. This is why PayPal is not being able to post ipn data to the URL above.Try the following solution:
Go to
WP eStore -> Settings -> Advanced Settings
and enableAlternate Redirection Method
.October 12, 2013 at 4:30 am #58303andalisMemberHi,
Thanks for helping out. I’ve tried the solution above and I’m still getting the 404 page:
Go to WP eStore -> Settings -> Advanced Settings and enable Alternate Redirection Method.
I double checked my .htaccess file and it’s bare bones:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} http://www.80-20educationalfoundation.xxxx.com$ [NC]
RewriteRule (.*)$ http://80-20educationalfoundation.com/$1 [R=301,L]
# ESSENTIALS
ServerSignature Off
Options All -Indexes
#PROTECT CONFIG FILES
<files wp-config.php>
Order deny,allow
deny from all
</files>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’ve been trying for a few hours searching the forum and other places and can’t figure out what’s wrong.
October 12, 2013 at 6:02 am #58304andalisMemberOkay, I’m getting somewhere now (I had a similar problem with eMemeber and trailing slashes a year or two ago.
Through Paypal’s “Instant Payment Notification (IPN) details” page, it’s getting a 404 page error because it’s trying to send the information to [http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php].
Notification URL
[http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php]
HTTP response code
404
However, I found that when I include a trailing slash after paypal.php/, the ipn_handle_debug.log actually logs and shows (and therefore, Paypal would probably be able to reach the correct page rather than a 404 page not found error):
“Debug is enabled. Check the ipn_handle_debug.log file for debug output.”
Therefore, on eStore, where can I edit the file(s) that communicate with Paypal to send data with the trailing slash at the end of the php file rather than the one that’s generated?
Instead of:
http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php
I need the link to be:
http://80-20educationalfoundation.com/wp-content/plugins/wp-cart-for-digital-products/paypal.php/
Thank you!
October 12, 2013 at 6:21 am #58305andalisMemberOr…if it’s easier for me to change the structure of my links to not including the trailing slash I need after paypal.php to work with the plugin, can you please let me know how I can do that?
.htaccess? Or permalinks settings in WP? Both?
Thank you so much!
October 12, 2013 at 10:27 pm #58306adminKeymasterWhen you enable the option @wpComerce mentioned above, you don’t need to worry about the paypal.php file anymore. You new IPN URL becomes the following:
[http://80-20educationalfoundation.com/?estore_pp_ipn=process]
Have you done a transaction after you enabled that option?
You can use the following in your .htaccess file to force a trailing slash in your URLs but I don’t think you need it when you use the other option:
RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]
-
AuthorPosts
- You must be logged in to reply to this topic.