SMFHacks.com

SMF Store => Support => Topic started by: sawz on February 24, 2010, 08:12:39 am

Title: transactions not being recorded, no download links for the buyer
Post by: sawz on February 24, 2010, 08:12:39 am
recently it was discovered that after paypal payment and redirection back to the forum, details of the transaction aren't being recorded into the transactions log and the download links aren't being listed in the MyOrders area of the store. has something changed recently to cause that?

it was working fine then just stopped.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 24, 2010, 08:52:29 am
Link to your main SMF Store. Going to first check permissions of the storeipn.php and storeipn2.php files
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on February 24, 2010, 09:12:55 am
http://societyofgilders.org/forum/index.php?action=store

0644 on both files
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 24, 2010, 09:31:24 am
Did you change anything in that file?

http://societyofgilders.org/forum/storeipn.php
It is spitting out odd information
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on February 24, 2010, 10:08:00 am
i've done nothing and haven't noticed that, should i replace it with another?
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 24, 2010, 10:11:51 am
I would try and make sure the permissions are correct for the replaced file.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on February 24, 2010, 10:24:44 am
the permissions are the same as before, nothing has changed that i'm aware of.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on February 25, 2010, 10:23:27 am
I am having same issue...At first I thought it was cause it was a guest, but permissions are set for guests.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 25, 2010, 10:44:04 am
Like to board?
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on February 25, 2010, 11:12:27 am
what does this error mean?
Array ( [reipn_php] => [start] => 0 ) Array ( [reipn_php] => [start] => 0 ) Error
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 25, 2010, 11:16:48 am
I have never seen that before my guess it would be some kind of url rewriting.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on February 25, 2010, 11:29:27 am
I have never seen that before my guess it would be some kind of url rewriting.
wouldn't that be due to htaccess or a redirect? neither exists.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 25, 2010, 11:39:44 am
Normally yes
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on February 26, 2010, 01:39:48 am
Like to board?

Permissions in store are set to allow guests to purchase...Just doesn't give a redirect back and show the purchase on the board.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 26, 2010, 08:39:15 am
Oops meant link to the board so I can see where the storeipn is
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on February 26, 2010, 09:53:58 am
Oops meant link to the board so I can see where the storeipn is

http://lakestclairrun.com/smf/index.php?action=store
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 26, 2010, 10:57:49 am
What I would suggest next to do enable debugging for both of you.

Open storeipn.php
Find
Code: [Select]
define('DEBUG_STORE','0');
Change to
Code: [Select]
define('DEBUG_STORE','1');

Create a text file in the main directory of your forum called store_debug.txt and make sure it is writable.

We should then be able to see what happens next time a transaction goes though.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on February 26, 2010, 11:56:23 am
What I would suggest next to do enable debugging for both of you.

Open storeipn.php


I don't have this folder in Store Pro
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on February 26, 2010, 12:19:33 pm
That file should be in the root directory of your forum.

storeipn.php for SMF 1.1.x or storeipn2.php for SMF 2.0.x
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on March 01, 2010, 12:36:17 pm
heres the error i got:

FOUND
March 1, 2010, 11:33 am
Post Request1 REQ:cmd=_notify-validate
March 1, 2010, 11:33 am
No Basket IS1

Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 01, 2010, 01:04:39 pm
Is that from a recent purchase from the store? That happened around the same time.
You might see that occur also if you have other paypal transactions not from the store but you have the store ipn url as the primary ipn in your paypal settings.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on March 01, 2010, 01:31:38 pm

theres only 1 ipn script and its from the store.so no other ipn transactrions are taking place.

also that error, wasn't generated by doing a transaction, it was created by just calling the ipn script in a browser. making a transaction did nothing to the debug text file.

sorry i should of said that.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 01, 2010, 04:43:39 pm
Yeah that error would occur if you manually call the script since it is looking for a shopping cart basket id that is not being passed.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on March 01, 2010, 06:38:51 pm
that doesn't help. and the debug.txt didn't record an error from a transaction.
the people who paid for this would like it to work properly.

transactions aren't being recorded in the database and download links aren't being provided.

what do we need to do to remedy this?
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 01, 2010, 06:47:20 pm
The debug should provide a log of the entire transaction so with a log we would be able to see what happened during a completed transaction.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on March 01, 2010, 06:48:43 pm
and i just told you it didn't record an error from transactions i have already made,

did you miss that?
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 01, 2010, 06:54:07 pm
Well from there you would need to wait till another transaction with an error is made.

For now you can use the send free product link under stats/download logs to send download links.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: sawz on March 01, 2010, 07:10:51 pm
i have already done another transaction and nothing in the debug file from it.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 01, 2010, 07:17:52 pm
Nothing at all? There should be at least a post request or something coming in.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 02, 2010, 10:56:42 pm
I'm not getting anything either it sends me a email but when they buy multiple items they are all grouped together and I have shared profits with certain people it's hard to determine without manually going in and figuring out what was bought.  Basically it's just showing a total payment from Paypal.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 02, 2010, 11:18:05 pm
We just send the total to paypal in order for the shopping cart to work.

The full transaction is then stored in under Transactions in the store itself
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 02, 2010, 11:35:38 pm
We just send the total to paypal in order for the shopping cart to work.

The full transaction is then stored in under Transactions in the store itself

For some reason they aren't being stored...I did what you asked and like the other person in this thread nothing is being recorded...I'll gladly let you view my info as I have in the past..I just need to know in a itemized fashion what is being sold. As like I said I'm in a profit sharing deal with a couple of the items in my store.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 03, 2010, 12:12:23 am
Nothing is being recoded in the text file when a transaction occurs?
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 03, 2010, 08:34:10 am
Nothing is being recoded in the text file when a transaction occurs?

Nope nothing.....
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 03, 2010, 12:15:10 pm
That would mean one of two things.
First either the permissions on the text file are not setting to writable or 777

Or second inside PayPal under Profile IPN is not enabled or pointed to the storeipn.php file
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 03, 2010, 03:04:29 pm
That would mean one of two things.
First either the permissions on the text file are not setting to writable or 777

Or second inside PayPal under Profile IPN is not enabled or pointed to the storeipn.php file

It showed adseller in the IPN file, but nothing regarding the store.  I edited it for the store file, but now I'm guessing I'll have a issue with adseller.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 03, 2010, 05:04:49 pm
It shouldn't matter which one is in paypal as long as you have at least one set and IPN enabled.
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 03, 2010, 07:52:00 pm
It shouldn't matter which one is in paypal as long as you have at least one set and IPN enabled.

Then thats not the issue
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 04, 2010, 01:39:35 pm
Is there any fix for this if not then I need to disable the store cause I can't determine whats being purchased other than by inventory
Title: Re: transactions not being recorded, no download links for the buyer
Post by: SMFHacks on March 04, 2010, 02:20:29 pm
I need a log to be able to see whats going on. Haven't touched the store in a while and works on my test site.

Make sure the log file is writable if possible set permissions to 777
Title: Re: transactions not being recorded, no download links for the buyer
Post by: lakestclair on March 04, 2010, 02:45:25 pm
I need a log to be able to see whats going on. Haven't touched the store in a while and works on my test site.

Make sure the log file is writable if possible set permissions to 777

How do I do this?  Keep in mind I'm not a computer guru so these are terms I don't understand...I'm not sure I even have the text file you wanted me to put in correct.

It worked correctly for the first customer purchase, but they only purchased one item then it stopped working and I've had several purchases since then.