SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 08:12:30 am

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 55
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 3
Guests: 54
Total: 57
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Problem with the order log  (Read 7110 times)
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« on: April 03, 2009, 01:56:32 pm »

Namely, when people order, the transaction goes through but nothing is appearing in the order log to tell me what they ordered.

Ideas?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: April 03, 2009, 08:33:56 pm »

Click on the order number or the order detail link under transactions.
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #2 on: April 06, 2009, 10:53:33 am »

Click on the order number or the order detail link under transactions.

Yeah, that's the problem - there's no orders in there.

I just edited one thing, waiting on someone to make another order to see if it works.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: April 06, 2009, 07:02:43 pm »

If you setup a paypal developer sandbox account you can test the store using paypal's sandbox mode and use fake money to make test transactions.
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #4 on: April 14, 2009, 04:41:09 pm »

Unfortunately it looks like this problem is still occuring.  Any ideas what would cause this, assuming that PayPal IPN is pointing to the correct URL? (storeipn2.php, which in my case is in the Themes folder - I replace all instances of homedir and homeurl in SMF STore with themedir and themeurl).
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: April 14, 2009, 08:42:07 pm »

Just ran a test with RC1 and works ok on myside with a test item.

That could be it if you moved the storeipn.php to the themes folder.
storeipn2.php does call SSI.php which is normally located in main root folder of SMF.

Also check the the code of the store.template.php and store2.php since it does also set the notify_url which points to the ipn file.
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #6 on: April 15, 2009, 01:28:34 pm »

Just ran a test with RC1 and works ok on myside with a test item.

That could be it if you moved the storeipn.php to the themes folder.
storeipn2.php does call SSI.php which is normally located in main root folder of SMF.

Also check the the code of the store.template.php and store2.php since it does also set the notify_url which points to the ipn file.

I changed the call to SSI.php in storeipn2.php to ../../storeipn2.php, so that should be good.
It says in Payment Modules:
Quote
So notify_url is correct then, right?

Also if I go to that URL, I get:
Quote
Array ( [fault] => [storeipn2_php] => [start] => 0 ) Verified
Which looks like correct output to me?

Also, it is the same URL that is in the PayPal IPN settings.
« Last Edit: April 15, 2009, 01:34:44 pm by drhamad » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #7 on: April 16, 2009, 07:51:33 am »

Inside storeipn2.php there is an option to turn on debugging. set STORE_DEBUG to 1 and inside that file in the StoreDebugLog function I belive make sure that the file it is writing to exists and is writable.
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #8 on: April 21, 2009, 07:06:53 pm »

Inside storeipn2.php there is an option to turn on debugging. set STORE_DEBUG to 1 and inside that file in the StoreDebugLog function I belive make sure that the file it is writing to exists and is writable.

Is this what you mean?  I changed paypal_debug to true from false.

Code:
// Enable Paypal debug
// Notes: make sure paypal_logs.txt exists and is writable
$paypal_debug = true;
StoreDebugLog('FOUND');
// Email address to which debug emails are sent to
$notify_email = $modSettings['store_set_contact_email'];

I also created paypal_logs.txt in both the root level and in /Themes/default, since I wasn't sure where it belonged.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #9 on: April 21, 2009, 08:01:29 pm »

Also do
Code:
define('DEBUG_STORE','0');
Change to
Code:
define('DEBUG_STORE','0');

And create and make writable store_debug.txt
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #10 on: April 21, 2009, 08:45:12 pm »

Great, done (I assume you mean change that to '1')
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #11 on: April 21, 2009, 09:24:16 pm »

I just noticed this in the SMF Error log:
Quote
http://www.mazda6drivers.com/index.php?http://www.fordfusionclub.com/Themes/default/storeipn2.php
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4
File: /home/ffc/public_html/Themes/default/storeipn2.php
Line: 235

235 is:

Quote
                                                $cartResult = $smcFunc['db_query']('', "
                                                SELECT
                                                         ID_ITEM, ID_CART, ID_MEMBER, date, quantity
                                                 FROM {db_prefix}store_cart
                                                 WHERE ID_CART = $id_cart LIMIT 1");
                                                $cartRow = $smcFunc['db_fetch_assoc']($cartResult);
                                                $smcFunc['db_free_result']($cartResult);
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #12 on: April 21, 2009, 10:30:24 pm »

Check the store log file. store_debug.txt the $id_cart should always be present unless if for some reason the cart id was not passed.
Logged
drhamad
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #13 on: April 21, 2009, 10:55:37 pm »

From store_debug.txt:
Quote
April 21, 2009, 9:50 pm
FOUND
April 21, 2009, 9:50 pm
Post Request1 REQ:cmd=_notify-validate&transaction_subject=&payment_date=04%3A42%3A10+Apr+21%2C+2009+PDT&txn_type=subscr_payment&subscr$
April 21, 2009, 9:51 pm
Verified
April 21, 2009, 9:51 pm
NM Value:0
April 21, 2009, 9:51 pm
Trans Type:subscr_payment
April 21, 2009, 9:51 pm
Begin query:SELECT
                                                        ID_ITEM, ID_CART, ID_MEMBER, date, quantity
                                                 FROM {db_prefix}store_CART
                                                 WHERE ID_CART =  LIMIT 1
April 21, 2009, 11:09 pm
FOUND
April 21, 2009, 11:09 pm
Post Request1 REQ:cmd=_notify-validate&mc_gross=234.00&protection_eligibility=Eligible&address_status=confirmed&payer_id=88NR6LVXWXA5E&$
April 21, 2009, 11:09 pm
Verified
April 21, 2009, 11:09 pm
NM Value:0
April 21, 2009, 11:09 pm
Trans Type:send_money

Also, the error found in the SMF error log (that I reported above) occurred at 9:51:00

Lastly, I didn't receive any payments in PayPal around that time, so this doesn't seem to be a completed order...

Edit:  The 9:50 information in the log above isn't about the store at all - it's a recurring payment that has nothing to do with the store or even with SMF.
« Last Edit: April 21, 2009, 11:03:06 pm by drhamad » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #14 on: April 22, 2009, 07:02:44 pm »

That would cause that sql error. I will add some filtering for the next update to help reduce those errors from non Store payments.
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.283 seconds with 20 queries.