SMFHacks.com

SMF Classifieds => Support => Topic started by: Bar Nuthin on August 24, 2008, 09:16:05 pm

Title: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 24, 2008, 09:16:05 pm
can someone tell what the chod setting for classifiedsipn.php should be?

when purchasing ad credits, the transaction is going through paypal ok, but the credits never show up in the user's acct
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on August 25, 2008, 07:27:28 am
Should be at least 755
Title: Re: CHMOD for classifiedsipn
Post by: healthboss.com. on August 26, 2008, 01:25:26 pm
Should be at least 755
great day to you all, peace!
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 27, 2008, 10:24:52 pm
i've been trying to get my classifieds working but cannot get past purchasing credits

the money transfers ok through paypal (from buyer to me), but the credits never show up in the buyer's account.

i turned on debugging and created a txt file in my root "paypal_class_logs.txt" (writalble) but i receive nothing there or in email

i also noticed in my Classifieds Admin that it calls for the following IPN

Your Version: 1.2.7 Latest Version: 1.2.7
Settings
IPN Url: http://tiltbuster.com/classifieldsipn.php

notice the L in classifieLds


i thought maybe if renamed classifiedsipn.php to classifieldsipn.php it might help - but still no joy

any ideas?

Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on August 27, 2008, 10:34:31 pm
Fixed the ipn url display setting for next update

I clicked on that link and got an error on
Fatal error: Call to undefined function: file_put_contents() in /home/content/t/i/l/tiltbuster/html/classifieldsipn.php on line 46

To fix disable debug mode
Find
$paypal_debug = true;
Change to
$paypal_debug = false;

In classifiedsipn.php
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 27, 2008, 11:33:51 pm
ok set things back to normal

http://tiltbuster.com/classifiedsipn.php

debug set to false

same problem - when buying credits - transaction takes place in paypal ok, but no ad credits are given to buyer  ???
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on August 28, 2008, 10:13:21 pm
Ok. A couple other questions since this is strange. You have SMF Store which uses basically the same IPN code as the classifieds.

What PHP version are you running?

Do you see anything related in your forum's error log that could be from the classifieds?

The classifieds and store both require fscockopen to verify with paypal
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 29, 2008, 07:58:08 pm
PHP Version: PHP 5.x

these errors show up in my log - Bent Poker is my alias login as regular member i have been using to test the ads

(http://tiltbuster.com/Bar/errors.jpg)
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 30, 2008, 08:47:36 am
i also noticed that when i go to the transactions page, there are no transactions
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on August 30, 2008, 01:03:09 pm
Released an Update 1.2.9
Added sandbox option under payment modules
Adding a lot more debugging

Do the following
check permissions on classifiedsipn.php is 755
Change
define('DEBUG_CLASSIFIEDS','0');
to
define('DEBUG_CLASSIFIEDS','1');

Create a file in the root of your forum called classifieds_debug.txt and make it writable or 777

Run a transaction and look at the classifieds_debug.txt
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on August 31, 2008, 05:11:21 pm
Quote
August 31, 2008, 3:05 pm
Entering New Debug request
August 31, 2008, 3:05 pm
PayPal Post Variables: cmd=_notify-validate&mc_gross=5.00&address_status=confirmed&payer_id=JG4PMV5JU3YFG&tax=0.00&address_street=3466+N+Main+St&payment_date=15%3A05%3A09+Aug+31%2C+2008+PDT&payment_status=Completed&charset=windows-1252&address_zip=46714&first_name=Douglas&mc_fee=0.45&address_country_code=US&address_name=Douglas+Hoag&notify_version=2.4&custom=98%7Ca4bc4973d48181bb601539b3830d6c91&payer_status=verified&business=barnuthin%40tiltbuster.com&address_country=United+States&address_city=Bluffton&quantity=1&verify_sign=AsC6XWAK.mD9b8DQxy3wAs8VoLAOAvKHcNhkaiogwhdpTCiDWEMcRX4G&payer_email=barnuthin%40psthemes.com&txn_id=57072008KB1052010&payment_type=instant&last_name=Hoag&address_state=IN&receiver_email=barnuthin%40tiltbuster.com&payment_fee=0.45&receiver_id=3F4H4JZJUYWW8&txn_type=web_accept&item_name=Listing+Credit+for+Hard+Goods+For+Sale&mc_currency=USD&item_number=cat1&residence_country=US&payment_gross=5.00&shipping=0.00

this is the text returned to classifieds_debug.txt
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on August 31, 2008, 08:10:22 pm
Closer added some more debugging to help see where it is going on.
Download the latest from:
http://www.smfhacks.com/index.php/topic,1149.msg6645.html#msg6645
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on September 01, 2008, 10:36:03 am
Quote
September 1, 2008, 8:32 am
Entering New Debug request
September 1, 2008, 8:32 am
PayPal Post Variables: cmd=_notify-validate&mc_gross=5.00&address_status=confirmed&payer_id=JG4PMV5JU3YFG&tax=0.00&address_street=3466+N+Main+St&payment_date=08%3A32%3A29+Sep+01%2C+2008+PDT&payment_status=Completed&charset=windows-1252&address_zip=46714&first_name=Douglas&mc_fee=0.45&address_country_code=US&address_name=Douglas+Hoag&notify_version=2.4&custom=98%7Ca4bc4973d48181bb601539b3830d6c91&payer_status=verified&business=barnuthin%40tiltbuster.com&address_country=United+States&address_city=Bluffton&quantity=1&verify_sign=AnqGr.bUBPAKqaHVqvy1hyuvLH0HANHPO5x3YAOVnQlvZxGlXxh-PRKb&payer_email=barnuthin%40psthemes.com&txn_id=8AA234955B356253K&payment_type=instant&last_name=Hoag&address_state=IN&receiver_email=barnuthin%40tiltbuster.com&payment_fee=0.45&receiver_id=3F4H4JZJUYWW8&txn_type=web_accept&item_name=Listing+Credit+for+Hard+Goods+For+Sale&mc_currency=USD&item_number=cat1&residence_country=US&payment_gross=5.00&shipping=0.00

not sure how to interpret this, but this is with the newest download 1.2.9.1
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on September 01, 2008, 04:41:08 pm
Check to make sure the following is set to false then try to run the transaction again.
$paypal_debug = false;



Noticed: when I went to http://tiltbuster.com/classifiedsipn.php and saw the error
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on September 01, 2008, 05:14:36 pm
Quote
September 1, 2008, 2:40 pm
Entering New Debug request
September 1, 2008, 2:40 pm
PayPal Post Variables: cmd=_notify-validate
September 1, 2008, 2:42 pm
Entering New Debug request
September 1, 2008, 2:42 pm
PayPal Post Variables: cmd=_notify-validate
September 1, 2008, 3:09 pm
Entering New Debug request
September 1, 2008, 3:09 pm
PayPal Post Variables: cmd=_notify-validate&mc_gross=5.00&address_status=confirmed&payer_id=JG4PMV5JU3YFG&tax=0.00&address_street=3466+N+Main+St&payment_date=15%3A09%3A02+Sep+01%2C+2008+PDT&payment_status=Completed&charset=windows-1252&address_zip=46714&first_name=Douglas&mc_fee=0.45&address_country_code=US&address_name=Douglas+Hoag&notify_version=2.4&custom=98%7Ca4bc4973d48181bb601539b3830d6c91&payer_status=verified&business=barnuthin%40tiltbuster.com&address_country=United+States&address_city=Bluffton&quantity=1&verify_sign=A7JgjqJMuOEnIYjauU.XetI3n07PA66tJw6IInjgDiZ9CNpbMSBH-5c3&payer_email=barnuthin%40psthemes.com&txn_id=3H691739CU0968646&payment_type=instant&last_name=Hoag&address_state=IN&receiver_email=barnuthin%40tiltbuster.com&payment_fee=0.45&receiver_id=3F4H4JZJUYWW8&txn_type=web_accept&item_name=Listing+Credit+for+Hard+Goods+For+Sale&mc_currency=USD&item_number=cat1&residence_country=US&payment_gross=5.00&shipping=0.00
September 1, 2008, 3:09 pm
Begin fsock test:
September 1, 2008, 3:09 pm
End fsock test:
September 1, 2008, 3:09 pm
Entering FP check
September 1, 2008, 3:09 pm
Doing Get:POST /cgi-bin/webscr HTTP/1.0

Content-Type: application/x-www-form-urlencoded

Content-Length: 921



cmd=_notify-validate&mc_gross=5.00&address_status=confirmed&payer_id=JG4PMV5JU3YFG&tax=0.00&address_street=3466+N+Main+St&payment_date=15%3A09%3A02+Sep+01%2C+2008+PDT&payment_status=Completed&charset=windows-1252&address_zip=46714&first_name=Douglas&mc_fee=0.45&address_country_code=US&address_name=Douglas+Hoag&notify_version=2.4&custom=98%7Ca4bc4973d48181bb601539b3830d6c91&payer_status=verified&business=barnuthin%40tiltbuster.com&address_country=United+States&address_city=Bluffton&quantity=1&verify_sign=A7JgjqJMuOEnIYjauU.XetI3n07PA66tJw6IInjgDiZ9CNpbMSBH-5c3&payer_email=barnuthin%40psthemes.com&txn_id=3H691739CU0968646&payment_type=instant&last_name=Hoag&address_state=IN&receiver_email=barnuthin%40tiltbuster.com&payment_fee=0.45&receiver_id=3F4H4JZJUYWW8&txn_type=web_accept&item_name=Listing+Credit+for+Hard+Goods+For+Sale&mc_currency=USD&item_number=cat1&residence_country=US&payment_gross=5.00&shipping=0.00
September 1, 2008, 3:09 pm
Res:</BODY></HTML>

with debug=false
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on September 01, 2008, 05:22:11 pm
Hmm try changing the following
$res = fgets ($fp, 1024)
To
$res .= fgets ($fp, 1024)

If it still fails change this line
Code: [Select]
if ( preg_match( '/VERIFIED/is', $res ) || $paypal_debug == true || $modSettings['class_sandbox'] == 1)
To
Code: [Select]
//if ( preg_match( '/VERIFIED/is', $res ) || $paypal_debug == true || $modSettings['class_sandbox'] == 1)
And try again
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on September 01, 2008, 06:02:51 pm
using the first suggestion - (nothing came back using the 2nd suggestion)

Quote
September 1, 2008, 3:09 pm
Begin fsock test:
September 1, 2008, 3:09 pm
End fsock test:
September 1, 2008, 3:09 pm
Entering FP check
September 1, 2008, 3:09 pm
Doing Get:POST /cgi-bin/webscr HTTP/1.0

Content-Type: application/x-www-form-urlencoded

Content-Length: 921



cmd=_notify-validate&mc_gross=5.00&address_status=confirmed&payer_id=JG4PMV5JU3YFG&tax=0.00&address_street=3466+N+Main+St&payment_date=15%3A09%3A02+Sep+01%2C+2008+PDT&payment_status=Completed&charset=windows-1252&address_zip=46714&first_name=Douglas&mc_fee=0.45&address_country_code=US&address_name=Douglas+Hoag&notify_version=2.4&custom=98%7Ca4bc4973d48181bb601539b3830d6c91&payer_status=verified&business=barnuthin%40tiltbuster.com&address_country=United+States&address_city=Bluffton&quantity=1&verify_sign=A7JgjqJMuOEnIYjauU.XetI3n07PA66tJw6IInjgDiZ9CNpbMSBH-5c3&payer_email=barnuthin%40psthemes.com&txn_id=3H691739CU0968646&payment_type=instant&last_name=Hoag&address_state=IN&receiver_email=barnuthin%40tiltbuster.com&payment_fee=0.45&receiver_id=3F4H4JZJUYWW8&txn_type=web_accept&item_name=Listing+Credit+for+Hard+Goods+For+Sale&mc_currency=USD&item_number=cat1&residence_country=US&payment_gross=5.00&shipping=0.00
September 1, 2008, 3:09 pm
Res:</BODY></HTML>
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on September 01, 2008, 06:36:47 pm
Looks like a parse error occurred please attach that file and I can fix it.
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on September 01, 2008, 06:42:16 pm
that would be awesome
Title: Re: CHMOD for classifiedsipn
Post by: SMFHacks on September 01, 2008, 07:07:44 pm
Try this file
Title: Re: CHMOD for classifiedsipn
Post by: Bar Nuthin on September 01, 2008, 07:20:21 pm
thanks for sticking with it!!  it appears to be working now :)