SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
HostRocket Webhosting for SMF
Site Showcase
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
May 24, 2012, 08:12:30 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
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
ApplianceJunk
b-machinery
SMFHacks.com
Forum
SMF Store
Support
Problem with the order log
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
2
Author
Topic: Problem with the order log (Read 7110 times)
drhamad
Newbie
Offline
Posts: 49
Problem with the order log
«
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
Reply #2 on:
April 06, 2009, 10:53:33 am »
Quote from: SMFHacks on April 03, 2009, 08:33:56 pm
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
Reply #6 on:
April 15, 2009, 01:28:34 pm »
Quote from: SMFHacks 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.
I changed the call to SSI.php in storeipn2.php to ../../storeipn2.php, so that should be good.
It says in Payment Modules:
Quote
IPN Url:
http://www.fordfusionclub.com/Themes/default/storeipn2.php
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
Reply #8 on:
April 21, 2009, 07:06:53 pm »
Quote from: SMFHacks 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.
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
Reply #10 on:
April 21, 2009, 08:45:12 pm »
Great, done (I assume you mean change that to '1')
Logged
drhamad
Newbie
Offline
Posts: 49
Re: Problem with the order log
«
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
Posts: 9678
Re: Problem with the order log
«
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
Posts: 49
Re: Problem with the order log
«
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
Posts: 9678
Re: Problem with the order log
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
Badge Awards
-----------------------------
=> Presales
-----------------------------
Tweet Topics/FB Post System
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
Feature Request: Ban indi...
by
ApplianceJunk
[
Today
at 08:02:50 am]
Custom Fields
by
davejo
[
Today
at 04:11:41 am]
Store IPN AMOUNT CHANGE
by
ApplianceJunk
[May 21, 2012, 08:54:11 am]
Transferring Db data from...
by
~ Phåråoh ~
[May 20, 2012, 11:06:52 am]
SMF vs PhpBB
by
channgam
[May 20, 2012, 05:58:11 am]
Any news?
by
SMFHacks
[May 19, 2012, 06:16:58 pm]
Social Login Pro domain c...
by
SMFHacks
[May 19, 2012, 05:42:37 pm]
licence information and q...
by
SMFHacks
[May 18, 2012, 03:08:38 pm]
no pictures after upgrade
by
SMFHacks
[May 17, 2012, 06:07:46 pm]
Viewers?
by
ApplianceJunk
[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...