Page 1 of 1

logging files not updating

PostPosted: September 27th, 2011, 12:15 pm
by webnola
We are noticing that the two log files (paypal-rtn.log and paypal-ipn.log)haven't updated in months. We have had plenty of members since then and done plenty of tests so something should be showing.

Logging routines are enabled on s2member Paypal options. We are running s2member (110915) w/pro (110915) on wordpress 3.2.1. Using Paypal Pro with Paypal Pro forms.

Any ideas?

Re: logging files not updating

PostPosted: September 28th, 2011, 5:25 pm
by webnola
just posted this yesterday and already on page 4? Gotta bump as I have no other way of getting help.

Re: logging files not updating

PostPosted: September 30th, 2011, 5:16 pm
by Cristián Lávaque
Are you using s2Member generated buttons or did you create them over at PayPal? When users pay, are they given the right access they bought?

Re: logging files not updating

PostPosted: October 3rd, 2011, 3:20 pm
by webnola
Cristián Lávaque wrote:Are you using s2Member generated buttons or did you create them over at PayPal?


Created them with s2member Paypal Pro

Cristián Lávaque wrote:When users pay, are they given the right access they bought?


yes

Re: logging files not updating

PostPosted: October 7th, 2011, 8:06 pm
by Jason Caldwell
Thanks for reporting this important issue.
webnola wrote:We are noticing that the two log files (paypal-rtn.log and paypal-ipn.log)haven't updated in months. We have had plenty of members since then and done plenty of tests so something should be showing.

Logging routines are enabled on s2member Paypal options. We are running s2member (110915) w/pro (110915) on wordpress 3.2.1. Using Paypal Pro with Paypal Pro forms.

Any ideas?
Hmm, is logging still enabled? You might take another quick look at your configuration under: s2Member -> PayPal Options -> Account Details -> Logging/Debugging. If logging is enabled, but nothing is being written to these files, you might check permissions on those files. If you migrated the site to a new server or something like that, perhaps s2Member lost the ability to write data to these files due to server permissions? Also note, with PayPal Pro, the paypal-rtn.log file is not written, as there is no Auto-Return data processed/needed. With PayPal Pro Forms, you should have: /s2member-logs/paypal-api.log and /s2member-logs/paypal-ipn.log.

Re: logging files not updating

PostPosted: October 10th, 2011, 1:37 pm
by webnola
Jason Caldwell wrote:Thanks for reporting this important issue.
webnola wrote:We are noticing that the two log files (paypal-rtn.log and paypal-ipn.log)haven't updated in months. We have had plenty of members since then and done plenty of tests so something should be showing.

Logging routines are enabled on s2member Paypal options. We are running s2member (110915) w/pro (110915) on wordpress 3.2.1. Using Paypal Pro with Paypal Pro forms.

Any ideas?
Hmm, is logging still enabled? You might take another quick look at your configuration under: s2Member -> PayPal Options -> Account Details -> Logging/Debugging. If logging is enabled, but nothing is being written to these files, you might check permissions on those files. If you migrated the site to a new server or something like that, perhaps s2Member lost the ability to write data to these files due to server permissions? Also note, with PayPal Pro, the paypal-rtn.log file is not written, as there is no Auto-Return data processed/needed. With PayPal Pro Forms, you should have: /s2member-logs/paypal-api.log and /s2member-logs/paypal-ipn.log.


I just triple-checked, and logging routines are still enabled. All files and the directory have 777 permissions.
The only three files in the folder are a .htaccess (which simply says "deny from all"), paypal-ipn.log, and paypal-rtn.log. There is no paypal-api.log.

Re: logging files not updating

PostPosted: October 11th, 2011, 7:30 pm
by Jason Caldwell
Thanks for the follow-up.
~ Very sorry for the delayed response.

Forum account upgraded to Experienced User rank/icon.
( thanks for developing with s2Member! )

Interesting. If logging is enabled, a log entry should be written each time s2Member connects to the PayPal API for any reason. If you look inside your Dashboard, under the Logging/Debugging section, where does s2Member say the log files are stored? Did that change?

If not, please try this and let me know what you come up with.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_action
("init", "s2_debug");
function s2_debug(){
    if(!empty($_GET[__FUNCTION__]))
        exit($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["logs_dir"]);
}
?>
Now load up a browser with this URL and see where s2Member is storing your log files.
Code: Select all
http://example.com/?s2_debug=yes

Re: logging files not updating

PostPosted: October 13th, 2011, 12:28 pm
by webnola
I created the directory and file, and then accessed the url (swapped out the domain with ours), but it just loaded the site as if I was at the root of the domain. I didn't see anything on the plugins page to activate. Any idea what the problem might be?

Also, the logging location has not changed.

Re: logging files not updating

PostPosted: October 13th, 2011, 1:28 pm
by Jason Caldwell
Thanks for the follow-up.
You have me stumped, so sorry. If it's possible to send us a Dashboard login and FTP access, please do and I'll have a look at this for you. You can use this private contact form:
http://www.s2member.com/contact/

Re: logging files not updating

PostPosted: October 13th, 2011, 5:27 pm
by webnola
Strange, now the log files are updating. Is it possible that the s2-hack file you had me create knocked something loose and made it work? Other than that we didn't change anything.

Re: logging files not updating

PostPosted: October 13th, 2011, 7:52 pm
by Jason Caldwell
Interesting. That's great.
Ha, not sure. I doubt that did anything, as it just prints data to the screen.

Re: logging files not updating

PostPosted: October 14th, 2011, 11:50 am
by webnola
Ok, I now agree that the two were not related.

I was using two different FTP account, and for some reason on one of the FTP accounts the files were not updating. Not sure why this might be, but I'm not aware of this and will only use the one that works.